bpp-seq-omics
2.4.1
|
MAF file parser. More...
#include <Bpp/Seq/Io/Maf/MafParser.h>
Public Member Functions | |
MafParser (std::istream *stream, bool parseMask=false, bool checkSize=true, short dotOption=DOT_ERROR) | |
Create a new instance of MafParser. More... | |
void | addIterationListener (IterationListener *listener) |
MafBlock * | nextBlock () |
Get the next available alignment block. More... | |
bool | isVerbose () const |
void | setVerbose (bool yn) |
Static Public Attributes | |
static constexpr short | DOT_ERROR = 0 |
static constexpr short | DOT_ASGAP = 1 |
static constexpr short | DOT_ASUNRES = 2 |
Protected Member Functions | |
virtual void | fireIterationStartSignal_ () |
virtual void | fireIterationMoveSignal_ (const MafBlock ¤tBlock) |
virtual void | fireIterationStopSignal_ () |
Protected Attributes | |
std::vector< IterationListener * > | iterationListeners_ |
bool | started_ |
bool | verbose_ |
Private Member Functions | |
MafParser (const MafParser &maf) | |
MafParser & | operator= (const MafParser &maf) |
MafBlock * | analyseCurrentBlock_ () |
Private Attributes | |
std::istream * | stream_ |
bool | mask_ |
bool | checkSequenceSize_ |
CaseMaskedAlphabet | cmAlphabet_ |
bool | firstBlock_ |
short | dotOption_ |
MAF file parser.
This class parses synteny blocks from Maf file.
The MAF format is documented on the UCSC Genome Browser website: http://genome.ucsc.edu/FAQ/FAQformat.html#format5
Definition at line 61 of file MafParser.h.
|
inline |
Create a new instance of MafParser.
stream | The input stream to read text from |
parseMask | Tell is masking (lower case) should be kept |
checkSize | Tell if the size of sequence found should be compared to the specified one. An exception is thrown in case of mismatch (default). If set to no, a warning will be displayed if verbose is set to true. |
dotOption | (one of DOT_ERROR, DOT_ASGAP or DOT_ASUNRES) tells how dot should be treated. DOT_ERROR, the default, will return an exception. DOT_ASGAP will convert all dots to gaps and DOT_ASUNRES will convert them to 'N', which will increase parsing time. |
Definition at line 88 of file MafParser.h.
|
inlineprivate |
Definition at line 94 of file MafParser.h.
|
inlinevirtualinherited |
Implements bpp::MafIterator.
Definition at line 99 of file MafIterator.h.
References bpp::AbstractMafIterator::iterationListeners_.
|
privatevirtual |
Implements bpp::AbstractMafIterator.
Definition at line 51 of file MafParser.cpp.
References bpp::MafBlock::addSequence(), bpp::StringTokenizer::hasMoreToken(), bpp::StringTokenizer::nextToken(), bpp::MafBlock::setPass(), bpp::MafBlock::setScore(), and bpp::SequenceQuality::setScore().
|
protectedvirtualinherited |
Definition at line 57 of file MafIterator.cpp.
Referenced by bpp::AbstractMafIterator::nextBlock().
|
protectedvirtualinherited |
Definition at line 51 of file MafIterator.cpp.
Referenced by bpp::AbstractMafIterator::nextBlock().
|
protectedvirtualinherited |
Definition at line 63 of file MafIterator.cpp.
Referenced by bpp::AbstractMafIterator::nextBlock().
|
inlinevirtualinherited |
Implements bpp::MafIterator.
Definition at line 116 of file MafIterator.h.
References bpp::AbstractMafIterator::verbose_.
|
inlinevirtualinherited |
Get the next available alignment block.
Implements bpp::MafIterator.
Definition at line 103 of file MafIterator.h.
References bpp::AbstractMafIterator::analyseCurrentBlock_(), bpp::AbstractMafIterator::fireIterationMoveSignal_(), bpp::AbstractMafIterator::fireIterationStartSignal_(), bpp::AbstractMafIterator::fireIterationStopSignal_(), and bpp::AbstractMafIterator::started_.
Definition at line 99 of file MafParser.h.
References checkSequenceSize_, dotOption_, firstBlock_, mask_, and stream_.
|
inlinevirtualinherited |
Implements bpp::MafIterator.
Definition at line 117 of file MafIterator.h.
References bpp::AbstractMafIterator::verbose_.
|
private |
Definition at line 67 of file MafParser.h.
Referenced by operator=().
|
private |
Definition at line 68 of file MafParser.h.
|
staticconstexpr |
Definition at line 113 of file MafParser.h.
|
staticconstexpr |
Definition at line 114 of file MafParser.h.
|
staticconstexpr |
Definition at line 112 of file MafParser.h.
|
private |
Definition at line 70 of file MafParser.h.
Referenced by operator=().
|
private |
Definition at line 69 of file MafParser.h.
Referenced by operator=().
|
protectedinherited |
Definition at line 89 of file MafIterator.h.
Referenced by bpp::AbstractMafIterator::addIterationListener().
|
private |
Definition at line 66 of file MafParser.h.
Referenced by operator=().
|
protectedinherited |
Definition at line 90 of file MafIterator.h.
Referenced by bpp::AbstractMafIterator::nextBlock().
|
private |
Definition at line 65 of file MafParser.h.
Referenced by operator=().
|
protectedinherited |
Definition at line 91 of file MafIterator.h.
Referenced by bpp::AbstractMafIterator::isVerbose(), and bpp::AbstractMafIterator::setVerbose().