bpp-seq3
3.0.0
|
The poly sequence file format from phred software. More...
#include <Bpp/Seq/Io/PhredPoly.h>
Public Member Functions | |
PhredPoly (double ratio=0.8) | |
Build a new PhredPoly object. More... | |
virtual | ~PhredPoly () |
virtual bool | nextSequence (std::istream &input, SequenceType &seq) const =0 |
Read sequence from stream. More... | |
The AbstractISequence interface. | |
bool | nextSequence (std::istream &input, Sequence &seq) const |
The IOSequence interface. | |
const std::string | getDataType () const |
const std::string | getFormatName () const |
const std::string | getFormatDescription () const |
Protected Attributes | |
double | ratio_ |
The poly sequence file format from phred software.
This class read DNA sequence from poly files produced by the phred program from the University of Washington. For now, only read raw sequences and do a basic filter on heterozygous site.
Definition at line 21 of file PhredPoly.h.
PhredPoly::PhredPoly | ( | double | ratio = 0.8 | ) |
Build a new PhredPoly object.
Definition at line 16 of file PhredPoly.cpp.
|
inlinevirtual |
Definition at line 32 of file PhredPoly.h.
|
inlinevirtual |
Implements bpp::IOFormat.
Definition at line 48 of file PhredPoly.h.
|
inlinevirtual |
Implements bpp::IOFormat.
Definition at line 50 of file PhredPoly.h.
|
inlinevirtual |
Implements bpp::IOFormat.
Definition at line 49 of file PhredPoly.h.
bool PhredPoly::nextSequence | ( | std::istream & | input, |
Sequence & | seq | ||
) | const |
Definition at line 20 of file PhredPoly.cpp.
References bpp::AbstractTemplateSymbolList< T >::getAlphabet(), bpp::StringTokenizer::getToken(), bpp::StringTokenizer::numberOfRemainingTokens(), ratio_, bpp::Sequence::setContent(), bpp::AbstractCoreSequence::setName(), bpp::NumTools::swap(), and bpp::TextTools::toDouble().
|
pure virtualinherited |
|
protected |
Definition at line 24 of file PhredPoly.h.
Referenced by nextSequence().