bpp-seq-omics
2.4.1
|
Extract alignments corresponding to sequence features given as a vector of SequenceFeature objects. More...
#include <Bpp/Seq/Io/Maf/FeatureExtractorMafIterator.h>
Public Member Functions | |
FeatureExtractorMafIterator (MafIterator *iterator, const std::string &refSpecies, const SequenceFeatureSet &features, bool complete=false, bool ignoreStrand=false) | |
Build a new FeatureExtractor iterator. More... | |
void | setLogStream (std::shared_ptr< OutputStream > logstream) |
void | addIterationListener (IterationListener *listener) |
MafBlock * | nextBlock () |
Get the next available alignment block. More... | |
bool | isVerbose () const |
void | setVerbose (bool yn) |
Protected Member Functions | |
virtual void | fireIterationStartSignal_ () |
virtual void | fireIterationMoveSignal_ (const MafBlock ¤tBlock) |
virtual void | fireIterationStopSignal_ () |
Protected Attributes | |
MafIterator * | iterator_ |
MafBlock * | currentBlock_ |
std::shared_ptr< OutputStream > | logstream_ |
std::vector< IterationListener * > | iterationListeners_ |
bool | started_ |
bool | verbose_ |
Private Member Functions | |
MafBlock * | analyseCurrentBlock_ () |
Private Attributes | |
std::string | refSpecies_ |
bool | completeOnly_ |
bool | ignoreStrand_ |
std::deque< MafBlock * > | blockBuffer_ |
std::map< std::string, RangeSet< size_t > > | ranges_ |
Extract alignments corresponding to sequence features given as a vector of SequenceFeature objects.
The resulting blocks will contain the specified annotated regions. Note that this iterator is not the opposite of FeatureFilterMafIterator, as overlapping features will all be extracted. This iterator may therefore results in duplication of original data.
Definition at line 60 of file FeatureExtractorMafIterator.h.
|
inline |
Build a new FeatureExtractor iterator.
iterator | The input iterator |
refSpecies | The reference species for feature coordinates |
complete | Tell if features should be extracted only if they can be extracted in full |
features | The set of features to extract |
ignoreStrand | If true, features will be extracted 'as is', without being reversed in case they are on the negative strand. |
Definition at line 80 of file FeatureExtractorMafIterator.h.
References bpp::SequenceFeatureSet::fillRangeCollectionForSequence(), bpp::SequenceFeatureSet::getSequences(), and ranges_.
|
inlinevirtualinherited |
Implements bpp::MafIterator.
Definition at line 99 of file MafIterator.h.
References bpp::AbstractMafIterator::iterationListeners_.
|
privatevirtual |
Implements bpp::AbstractMafIterator.
Definition at line 53 of file FeatureExtractorMafIterator.cpp.
References bpp::RangeSet< class >::addRange(), bpp::MafBlock::addSequence(), bpp::ApplicationTools::displayGauge(), bpp::ApplicationTools::displayTask(), bpp::ApplicationTools::displayTaskDone(), bpp::RangeSet< class >::filterWithin(), bpp::SequenceWalker::getAlignmentPosition(), bpp::MafSequence::getChromosome(), bpp::MafSequence::getRange(), bpp::RangeSet< class >::getSet(), bpp::MafSequence::getSrcSize(), bpp::SeqRange::getStrand(), bpp::MafSequence::getStrand(), bpp::SequenceTools::invertComplement(), bpp::RangeSet< class >::isEmpty(), bpp::SeqRange::isNegativeStrand(), bpp::ApplicationTools::message, bpp::RangeSet< class >::restrictTo(), bpp::MafBlock::setPass(), bpp::MafBlock::setScore(), and bpp::MafSequence::start().
|
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_.
|
inlineinherited |
Definition at line 178 of file MafIterator.h.
References bpp::AbstractFilterMafIterator::logstream_.
|
inlinevirtualinherited |
Implements bpp::MafIterator.
Definition at line 117 of file MafIterator.h.
References bpp::AbstractMafIterator::verbose_.
|
private |
Definition at line 67 of file FeatureExtractorMafIterator.h.
|
private |
Definition at line 65 of file FeatureExtractorMafIterator.h.
|
protectedinherited |
Definition at line 154 of file MafIterator.h.
Referenced by bpp::BlockLengthMafIterator::analyseCurrentBlock_(), bpp::BlockSizeMafIterator::analyseCurrentBlock_(), bpp::MafIteratorSynchronizer::analyseCurrentBlock_(), bpp::MsmcOutputMafIterator::analyseCurrentBlock_(), bpp::OrderFilterMafIterator::analyseCurrentBlock_(), bpp::OutputMafIterator::analyseCurrentBlock_(), bpp::PlinkOutputMafIterator::analyseCurrentBlock_(), bpp::SequenceStatisticsMafIterator::analyseCurrentBlock_(), bpp::TableOutputMafIterator::analyseCurrentBlock_(), bpp::VcfOutputMafIterator::analyseCurrentBlock_(), and bpp::AbstractFilterMafIterator::operator=().
|
private |
Definition at line 66 of file FeatureExtractorMafIterator.h.
|
protectedinherited |
Definition at line 89 of file MafIterator.h.
Referenced by bpp::AbstractMafIterator::addIterationListener().
|
protectedinherited |
Definition at line 153 of file MafIterator.h.
Referenced by bpp::BlockLengthMafIterator::analyseCurrentBlock_(), bpp::BlockSizeMafIterator::analyseCurrentBlock_(), bpp::MafIteratorSynchronizer::analyseCurrentBlock_(), bpp::MsmcOutputMafIterator::analyseCurrentBlock_(), bpp::OrderFilterMafIterator::analyseCurrentBlock_(), bpp::OutputMafIterator::analyseCurrentBlock_(), bpp::PlinkOutputMafIterator::analyseCurrentBlock_(), bpp::SequenceStatisticsMafIterator::analyseCurrentBlock_(), bpp::TableOutputMafIterator::analyseCurrentBlock_(), bpp::VcfOutputMafIterator::analyseCurrentBlock_(), and bpp::AbstractFilterMafIterator::operator=().
|
protectedinherited |
Definition at line 155 of file MafIterator.h.
Referenced by bpp::BlockLengthMafIterator::analyseCurrentBlock_(), bpp::BlockSizeMafIterator::analyseCurrentBlock_(), bpp::AbstractFilterMafIterator::operator=(), and bpp::AbstractFilterMafIterator::setLogStream().
|
private |
Definition at line 68 of file FeatureExtractorMafIterator.h.
Referenced by FeatureExtractorMafIterator().
|
private |
Definition at line 64 of file FeatureExtractorMafIterator.h.
|
protectedinherited |
Definition at line 90 of file MafIterator.h.
Referenced by bpp::AbstractMafIterator::nextBlock().
|
protectedinherited |
Definition at line 91 of file MafIterator.h.
Referenced by bpp::AbstractMafIterator::isVerbose(), and bpp::AbstractMafIterator::setVerbose().