5 #ifndef BPP_SEQ_IO_PHREDPHD_H
6 #define BPP_SEQ_IO_PHREDPHD_H
9 #include "../Sequence.h"
10 #include "../SequenceWithQuality.h"
81 std::vector<size_t>& pos
89 const std::string
getDataType()
const {
return "SequenceWithQuality"; }
93 return "Sequences following the phd format as describe in the phred documentation.";
107 bool parseFile_(std::istream& input, std::string& name, std::string& sequence, std::vector<int>& qual, std::vector<size_t>& pos)
const;
119 bool parseDNA_(std::istream& input, std::string& sequence, std::vector<int>& qual, std::vector<size_t>& pos)
const;
The phd sequence file format from phred software.
bool nextSequence(std::istream &input, Sequence &seq) const
bool parseDNA_(std::istream &input, std::string &sequence, std::vector< int > &qual, std::vector< size_t > &pos) const
Parse the DNA part of the file.
const std::string getFormatName() const
const std::string getDataType() const
const std::string getFormatDescription() const
bool parseFile_(std::istream &input, std::string &name, std::string &sequence, std::vector< int > &qual, std::vector< size_t > &pos) const
Global file parser.
PhredPhd()
Build a new PhredPhd object.
A basic implementation of the Sequence interface.
The ISequenceStream interface.
This alphabet is used to deal NumericAlphabet.