bpp-seq-omics
2.2.0
|
A sequence class which is used to store data from MAF files. More...
#include <Bpp/Seq/Io/Maf/MafSequence.h>
Public Member Functions | |
MafSequence () | |
MafSequence (const std::string &name, const std::string &sequence, bool parseName=true) | |
MafSequence (const std::string &name, const std::string &sequence, size_t begin, char strand, size_t srcSize, bool parseName=true) | |
MafSequence * | clone () const |
~MafSequence () | |
bool | hasCoordinates () const |
void | removeCoordinates () |
size_t | start () const throw (Exception) |
size_t | stop () const |
Range< size_t > | getRange (bool origin=true) const |
void | setName (const std::string &name) |
const std::string & | getSpecies () const |
const std::string & | getChromosome () const |
char | getStrand () const |
size_t | getGenomicSize () const |
size_t | getSrcSize () const |
void | setStart (size_t begin) |
void | setChromosome (const std::string &chr) |
void | setSpecies (const std::string &species) |
void | setStrand (char s) |
void | setSrcSize (size_t srcSize) |
std::string | getDescription () const |
MafSequence * | subSequence (size_t startAt, size_t length) const |
Extract a sub-sequence. More... | |
Static Public Member Functions | |
static void | splitNameIntoSpeciesAndChromosome (const std::string &name, std::string &species, std::string &chr) |
Private Member Functions | |
void | beforeSequenceChanged (const SymbolListEditionEvent &event) |
void | afterSequenceChanged (const SymbolListEditionEvent &event) |
void | beforeSequenceInserted (const SymbolListInsertionEvent &event) |
void | afterSequenceInserted (const SymbolListInsertionEvent &event) |
void | beforeSequenceDeleted (const SymbolListDeletionEvent &event) |
void | afterSequenceDeleted (const SymbolListDeletionEvent &event) |
void | beforeSequenceSubstituted (const SymbolListSubstitutionEvent &event) |
void | afterSequenceSubstituted (const SymbolListSubstitutionEvent &event) |
Private Attributes | |
bool | hasCoordinates_ |
size_t | begin_ |
std::string | species_ |
std::string | chromosome_ |
char | strand_ |
size_t | size_ |
size_t | srcSize_ |
A sequence class which is used to store data from MAF files.
It extends the SequenceWithAnnotation class to store MAF-specific features, like the chromosome position. The sequence is its own listener, and recomputes its "genomic" site by using the SequenceTools::getNumberOfSites function when a content modification is performed. Tags like begin and stop, hovever, have to be set by hand.
A MAF sequence is necessarily a DNA sequence.
Definition at line 62 of file MafSequence.h.
|
inline |
|
inline |
Definition at line 81 of file MafSequence.h.
References chromosome_, size_, species_, and splitNameIntoSpeciesAndChromosome().
|
inline |
Definition at line 89 of file MafSequence.h.
References chromosome_, size_, species_, and splitNameIntoSpeciesAndChromosome().
|
inline |
Definition at line 99 of file MafSequence.h.
|
inlineprivate |
Definition at line 191 of file MafSequence.h.
References size_.
|
inlineprivate |
Definition at line 195 of file MafSequence.h.
References size_.
|
inlineprivate |
Definition at line 193 of file MafSequence.h.
References size_.
|
inlineprivate |
Definition at line 197 of file MafSequence.h.
|
inlineprivate |
Definition at line 190 of file MafSequence.h.
|
inlineprivate |
Definition at line 194 of file MafSequence.h.
|
inlineprivate |
Definition at line 192 of file MafSequence.h.
|
inlineprivate |
Definition at line 196 of file MafSequence.h.
|
inline |
Definition at line 97 of file MafSequence.h.
References MafSequence().
|
inline |
Definition at line 154 of file MafSequence.h.
References chromosome_.
Referenced by bpp::ConcatenateMafIterator::analyseCurrentBlock_(), bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureExtractor::analyseCurrentBlock_(), bpp::BlockMergerMafIterator::analyseCurrentBlock_(), bpp::CsvStatisticsOutputIterationListener::iterationMoves(), bpp::OutputAlignmentMafIterator::writeBlock(), and bpp::VcfOutputMafIterator::writeBlock_().
|
inline |
Definition at line 178 of file MafSequence.h.
References hasCoordinates_, start(), stop(), and strand_.
Referenced by bpp::ConcatenateMafIterator::analyseCurrentBlock_(), bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), and bpp::BlockMergerMafIterator::analyseCurrentBlock_().
|
inline |
Definition at line 158 of file MafSequence.h.
References size_.
Referenced by bpp::MafParser::analyseCurrentBlock_(), and bpp::OutputMafIterator::writeBlock().
|
inline |
origin | Tell if coorinates according to original sequence should be used. If 'yes' and the sequence is on the negative strand, the returned rang will be computed as [SrcSize-Stop, SrcSize-Start[ |
Definition at line 121 of file MafSequence.h.
References hasCoordinates_, srcSize_, start(), stop(), and strand_.
Referenced by bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), and bpp::FeatureExtractor::analyseCurrentBlock_().
|
inline |
Definition at line 152 of file MafSequence.h.
References species_.
Referenced by bpp::FullGapFilterMafIterator::analyseCurrentBlock_(), bpp::ChromosomeMafIterator::analyseCurrentBlock_(), bpp::DuplicateFilterMafIterator::analyseCurrentBlock_(), bpp::OrphanSequenceFilterMafIterator::analyseCurrentBlock_(), bpp::SequenceFilterMafIterator::analyseCurrentBlock_(), bpp::MafBlock::getSequenceForSpecies(), bpp::MafBlock::getSequencesForSpecies(), bpp::MafBlock::hasSequenceForSpecies(), and bpp::OutputAlignmentMafIterator::writeBlock().
|
inline |
Definition at line 160 of file MafSequence.h.
References srcSize_.
Referenced by bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureExtractor::analyseCurrentBlock_(), bpp::BlockMergerMafIterator::analyseCurrentBlock_(), and bpp::OutputMafIterator::writeBlock().
|
inline |
Definition at line 156 of file MafSequence.h.
References strand_.
Referenced by bpp::ConcatenateMafIterator::analyseCurrentBlock_(), bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureExtractor::analyseCurrentBlock_(), bpp::BlockMergerMafIterator::analyseCurrentBlock_(), bpp::OutputMafIterator::writeBlock(), and bpp::OutputAlignmentMafIterator::writeBlock().
|
inline |
Definition at line 102 of file MafSequence.h.
References hasCoordinates_.
Referenced by bpp::BlockMergerMafIterator::analyseCurrentBlock_(), bpp::CsvStatisticsOutputIterationListener::iterationMoves(), bpp::OutputMafIterator::writeBlock(), and bpp::OutputAlignmentMafIterator::writeBlock().
|
inline |
Definition at line 104 of file MafSequence.h.
References begin_, and hasCoordinates_.
Referenced by bpp::ConcatenateMafIterator::analyseCurrentBlock_(), bpp::BlockMergerMafIterator::analyseCurrentBlock_(), and subSequence().
|
inline |
Definition at line 164 of file MafSequence.h.
References chromosome_, and species_.
Referenced by bpp::ConcatenateMafIterator::analyseCurrentBlock_(), and bpp::BlockMergerMafIterator::analyseCurrentBlock_().
|
inline |
Definition at line 132 of file MafSequence.h.
References chromosome_, species_, and splitNameIntoSpeciesAndChromosome().
Referenced by bpp::SequenceStreamToMafIterator::analyseCurrentBlock_(), bpp::ConcatenateMafIterator::analyseCurrentBlock_(), and bpp::BlockMergerMafIterator::analyseCurrentBlock_().
|
inline |
Definition at line 169 of file MafSequence.h.
References chromosome_, and species_.
|
inline |
Definition at line 176 of file MafSequence.h.
References srcSize_.
|
inline |
Definition at line 162 of file MafSequence.h.
References begin_, and hasCoordinates_.
Referenced by bpp::SequenceStreamToMafIterator::analyseCurrentBlock_().
|
inline |
Definition at line 174 of file MafSequence.h.
References strand_.
Referenced by bpp::SequenceStreamToMafIterator::analyseCurrentBlock_(), bpp::ConcatenateMafIterator::analyseCurrentBlock_(), and bpp::BlockMergerMafIterator::analyseCurrentBlock_().
|
inlinestatic |
Definition at line 142 of file MafSequence.h.
Referenced by MafSequence(), and setName().
|
inline |
Definition at line 106 of file MafSequence.h.
References begin_, and hasCoordinates_.
Referenced by bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureExtractor::analyseCurrentBlock_(), bpp::BlockMergerMafIterator::analyseCurrentBlock_(), getDescription(), getRange(), bpp::CsvStatisticsOutputIterationListener::iterationMoves(), bpp::OutputMafIterator::writeBlock(), bpp::OutputAlignmentMafIterator::writeBlock(), and bpp::VcfOutputMafIterator::writeBlock_().
|
inline |
Definition at line 111 of file MafSequence.h.
References begin_, hasCoordinates_, and size_.
Referenced by bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::BlockMergerMafIterator::analyseCurrentBlock_(), getDescription(), getRange(), bpp::CsvStatisticsOutputIterationListener::iterationMoves(), and bpp::OutputAlignmentMafIterator::writeBlock().
MafSequence * MafSequence::subSequence | ( | size_t | startAt, |
size_t | length | ||
) | const |
Extract a sub-sequence.
startAt | Begining of sub-sequence. |
length | the length of the sub-sequence. |
Definition at line 48 of file MafSequence.cpp.
References removeCoordinates().
Referenced by bpp::WindowSplitMafIterator::analyseCurrentBlock_(), bpp::MaskFilterMafIterator::analyseCurrentBlock_(), bpp::QualityFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureExtractor::analyseCurrentBlock_(), bpp::EntropyFilterMafIterator::analyseCurrentBlock_(), bpp::AlignmentFilterMafIterator::analyseCurrentBlock_(), and bpp::AlignmentFilter2MafIterator::analyseCurrentBlock_().
|
private |
Definition at line 67 of file MafSequence.h.
Referenced by removeCoordinates(), setStart(), start(), and stop().
|
private |
Definition at line 69 of file MafSequence.h.
Referenced by getChromosome(), MafSequence(), setChromosome(), setName(), and setSpecies().
|
private |
Definition at line 66 of file MafSequence.h.
Referenced by getDescription(), getRange(), hasCoordinates(), removeCoordinates(), setStart(), start(), and stop().
|
private |
Definition at line 71 of file MafSequence.h.
Referenced by afterSequenceChanged(), afterSequenceDeleted(), afterSequenceInserted(), getGenomicSize(), MafSequence(), and stop().
|
private |
Definition at line 68 of file MafSequence.h.
Referenced by getSpecies(), MafSequence(), setChromosome(), setName(), and setSpecies().
|
private |
Definition at line 72 of file MafSequence.h.
Referenced by getRange(), getSrcSize(), and setSrcSize().
|
private |
Definition at line 70 of file MafSequence.h.
Referenced by getDescription(), getRange(), getStrand(), and setStrand().