bpp-seq3  3.0.0
PhredPoly.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 #ifndef BPP_SEQ_IO_PHREDPOLY_H
6 #define BPP_SEQ_IO_PHREDPOLY_H
7 
8 
9 #include "../Sequence.h"
10 #include "ISequenceStream.h"
11 
12 namespace bpp
13 {
21 class PhredPoly : public ISequenceStream
22 {
23 protected:
24  double ratio_;
25 
26 public:
30  PhredPoly(double ratio = 0.8);
31 
32  virtual ~PhredPoly() {}
33 
34 public:
40  bool nextSequence(std::istream& input, Sequence& seq) const;
48  const std::string getDataType() const { return "Sequence"; }
49  const std::string getFormatName() const { return "poly file"; }
50  const std::string getFormatDescription() const
51  {
52  return "Sequences following the poly format as describe in the phred documentation.";
53  }
55 };
56 } // end of namespace bpp
57 #endif // BPP_SEQ_IO_PHREDPOLY_H
The poly sequence file format from phred software.
Definition: PhredPoly.h:22
const std::string getDataType() const
Definition: PhredPoly.h:48
bool nextSequence(std::istream &input, Sequence &seq) const
Definition: PhredPoly.cpp:20
virtual ~PhredPoly()
Definition: PhredPoly.h:32
PhredPoly(double ratio=0.8)
Build a new PhredPoly object.
Definition: PhredPoly.cpp:16
double ratio_
Definition: PhredPoly.h:24
const std::string getFormatName() const
Definition: PhredPoly.h:49
const std::string getFormatDescription() const
Definition: PhredPoly.h:50
A basic implementation of the Sequence interface.
Definition: Sequence.h:117
The ISequenceStream interface.
This alphabet is used to deal NumericAlphabet.