bpp-seq-omics
2.4.1
|
A synteny block data structure, the basic unit of a MAF alignement file. More...
#include <Bpp/Seq/Io/Maf/MafBlock.h>
Public Member Functions | |
MafBlock () | |
MafBlock (const MafBlock &block) | |
MafBlock & | operator= (const MafBlock &block) |
MafBlock * | clone () const |
virtual | ~MafBlock () |
void | setScore (double score) |
void | setPass (unsigned int pass) |
double | getScore () const |
unsigned int | getPass () const |
AlignedSequenceContainer & | getAlignment () |
const AlignedSequenceContainer & | getAlignment () const |
size_t | getNumberOfSequences () const |
size_t | getNumberOfSites () const |
void | addSequence (const MafSequence &sequence) |
bool | hasSequence (const std::string &name) const |
const MafSequence & | getSequence (const std::string &name) const |
const MafSequence & | getSequence (size_t i) const |
bool | hasSequenceForSpecies (const std::string &species) const |
const MafSequence & | getSequenceForSpecies (const std::string &species) const |
std::vector< const MafSequence * > | getSequencesForSpecies (const std::string &species) const |
std::vector< std::string > | getSpeciesList () const |
void | removeCoordinatesFromSequence (size_t i) |
std::string | getDescription () const |
bool | hasProperty (const std::string &property) const |
const Clonable & | getProperty (const std::string &property) const |
Get the data associated to a query property. More... | |
void | deleteProperty (const std::string &property) |
Delete the data associated to a query property. More... | |
void | setProperty (const std::string &property, Clonable *data) |
Set the data associated to a query property. More... | |
Private Member Functions | |
void | deleteProperties_ () |
Private Attributes | |
double | score_ |
unsigned int | pass_ |
AlignedSequenceContainer | alignment_ |
std::map< std::string, Clonable * > | properties_ |
A synteny block data structure, the basic unit of a MAF alignement file.
This class basically contains a AlignedSequenceContainer made of MafSequence objects.
Definition at line 55 of file MafBlock.h.
|
inline |
Definition at line 65 of file MafBlock.h.
Referenced by clone().
|
inline |
Definition at line 72 of file MafBlock.h.
References properties_.
|
inlinevirtual |
Definition at line 99 of file MafBlock.h.
References deleteProperties_().
|
inline |
Definition at line 115 of file MafBlock.h.
References bpp::AlignedSequenceContainer::addSequence(), and alignment_.
Referenced by bpp::AlignmentFilterMafIterator::analyseCurrentBlock_(), bpp::AlignmentFilter2MafIterator::analyseCurrentBlock_(), bpp::BlockMergerMafIterator::analyseCurrentBlock_(), bpp::ConcatenateMafIterator::analyseCurrentBlock_(), bpp::EntropyFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureExtractorMafIterator::analyseCurrentBlock_(), bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::MafParser::analyseCurrentBlock_(), bpp::MaskFilterMafIterator::analyseCurrentBlock_(), bpp::QualityFilterMafIterator::analyseCurrentBlock_(), and bpp::WindowSplitMafIterator::analyseCurrentBlock_().
|
inlinevirtual |
|
inlineprivate |
Definition at line 241 of file MafBlock.h.
References properties_.
Referenced by operator=(), and ~MafBlock().
|
inline |
Delete the data associated to a query property.
property | The property to look for. |
Exception | if no data is associated to the given property. |
Definition at line 214 of file MafBlock.h.
References properties_.
Referenced by setProperty().
|
inline |
Definition at line 108 of file MafBlock.h.
References alignment_.
Referenced by bpp::FullGapFilterMafIterator::analyseCurrentBlock_(), getSequence(), bpp::AbstractSpeciesSelectionMafStatistics::getSiteContainer_(), bpp::AbstractSpeciesMultipleSelectionMafStatistics::getSiteContainers_(), hasSequence(), bpp::OutputAlignmentMafIterator::writeBlock(), bpp::SequenceLDhotOutputMafIterator::writeBlock(), and bpp::VcfOutputMafIterator::writeBlock_().
|
inline |
Definition at line 109 of file MafBlock.h.
References alignment_.
|
inline |
Definition at line 177 of file MafBlock.h.
References getNumberOfSequences(), getNumberOfSites(), and bpp::TextTools::toString().
Referenced by bpp::AlignmentFilterMafIterator::analyseCurrentBlock_(), bpp::AlignmentFilter2MafIterator::analyseCurrentBlock_(), bpp::BlockLengthMafIterator::analyseCurrentBlock_(), bpp::BlockSizeMafIterator::analyseCurrentBlock_(), bpp::EntropyFilterMafIterator::analyseCurrentBlock_(), and bpp::FeatureFilterMafIterator::analyseCurrentBlock_().
|
inline |
Definition at line 111 of file MafBlock.h.
References alignment_, and bpp::AlignedSequenceContainer::getNumberOfSequences().
Referenced by bpp::AlignmentFilterMafIterator::analyseCurrentBlock_(), bpp::AlignmentFilter2MafIterator::analyseCurrentBlock_(), bpp::BlockSizeMafIterator::analyseCurrentBlock_(), bpp::EntropyFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::FullGapFilterMafIterator::analyseCurrentBlock_(), bpp::MaskFilterMafIterator::analyseCurrentBlock_(), bpp::QualityFilterMafIterator::analyseCurrentBlock_(), bpp::WindowSplitMafIterator::analyseCurrentBlock_(), bpp::BlockSizeMafStatistics::compute(), bpp::SiteFrequencySpectrumMafStatistics::compute(), getDescription(), getSequenceForSpecies(), getSequencesForSpecies(), getSpeciesList(), hasSequenceForSpecies(), and bpp::OutputMafIterator::writeBlock().
|
inline |
Definition at line 113 of file MafBlock.h.
References alignment_, and bpp::AlignedSequenceContainer::getNumberOfSites().
Referenced by bpp::AlignmentFilterMafIterator::analyseCurrentBlock_(), bpp::AlignmentFilter2MafIterator::analyseCurrentBlock_(), bpp::BlockLengthMafIterator::analyseCurrentBlock_(), bpp::BlockSizeMafIterator::analyseCurrentBlock_(), bpp::EntropyFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::FullGapFilterMafIterator::analyseCurrentBlock_(), bpp::MaskFilterMafIterator::analyseCurrentBlock_(), bpp::QualityFilterMafIterator::analyseCurrentBlock_(), bpp::WindowSplitMafIterator::analyseCurrentBlock_(), bpp::BlockLengthMafStatistics::compute(), bpp::FourSpeciesPatternCountsMafStatistics::compute(), bpp::PolymorphismMafStatistics::compute(), getDescription(), and bpp::TableOutputMafIterator::writeBlock_().
|
inline |
Definition at line 106 of file MafBlock.h.
References pass_.
Referenced by bpp::AlignmentFilterMafIterator::analyseCurrentBlock_(), bpp::AlignmentFilter2MafIterator::analyseCurrentBlock_(), bpp::EntropyFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::MaskFilterMafIterator::analyseCurrentBlock_(), bpp::QualityFilterMafIterator::analyseCurrentBlock_(), bpp::WindowSplitMafIterator::analyseCurrentBlock_(), and bpp::OutputMafIterator::writeBlock().
|
inline |
Get the data associated to a query property.
property | The property to look for. |
Exception | if no data is associated to the given property. |
Definition at line 200 of file MafBlock.h.
References properties_.
|
inline |
Definition at line 105 of file MafBlock.h.
References score_.
Referenced by bpp::AlignmentFilterMafIterator::analyseCurrentBlock_(), bpp::AlignmentFilter2MafIterator::analyseCurrentBlock_(), bpp::EntropyFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::MaskFilterMafIterator::analyseCurrentBlock_(), bpp::QualityFilterMafIterator::analyseCurrentBlock_(), bpp::WindowSplitMafIterator::analyseCurrentBlock_(), bpp::AlignmentScoreMafStatistics::compute(), and bpp::OutputMafIterator::writeBlock().
|
inline |
Definition at line 121 of file MafBlock.h.
References getAlignment(), and bpp::AlignedSequenceContainer::getSequence().
Referenced by bpp::AlignmentFilterMafIterator::analyseCurrentBlock_(), bpp::AlignmentFilter2MafIterator::analyseCurrentBlock_(), bpp::ChromosomeMafIterator::analyseCurrentBlock_(), bpp::DuplicateFilterMafIterator::analyseCurrentBlock_(), bpp::EntropyFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::FullGapFilterMafIterator::analyseCurrentBlock_(), bpp::MaskFilterMafIterator::analyseCurrentBlock_(), bpp::OrphanSequenceFilterMafIterator::analyseCurrentBlock_(), bpp::QualityFilterMafIterator::analyseCurrentBlock_(), bpp::SequenceFilterMafIterator::analyseCurrentBlock_(), bpp::WindowSplitMafIterator::analyseCurrentBlock_(), getSequenceForSpecies(), getSequencesForSpecies(), getSpeciesList(), hasSequenceForSpecies(), removeCoordinatesFromSequence(), bpp::OutputAlignmentMafIterator::writeBlock(), and bpp::OutputMafIterator::writeBlock().
|
inline |
Definition at line 125 of file MafBlock.h.
References getAlignment(), and bpp::AlignedSequenceContainer::getSequence().
|
inline |
Definition at line 139 of file MafBlock.h.
References getNumberOfSequences(), getSequence(), and bpp::MafSequence::getSpecies().
Referenced by bpp::AlignmentFilterMafIterator::analyseCurrentBlock_(), bpp::AlignmentFilter2MafIterator::analyseCurrentBlock_(), bpp::EntropyFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::FullGapFilterMafIterator::analyseCurrentBlock_(), bpp::MaskFilterMafIterator::analyseCurrentBlock_(), bpp::OutputAlignmentMafIterator::analyseCurrentBlock_(), bpp::QualityFilterMafIterator::analyseCurrentBlock_(), bpp::SequenceLDhotOutputMafIterator::analyseCurrentBlock_(), bpp::SiteFrequencySpectrumMafStatistics::compute(), bpp::CsvStatisticsOutputIterationListener::iterationMoves(), bpp::OrderFilterMafIterator::parseBlock_(), bpp::PlinkOutputMafIterator::parseBlock_(), bpp::MsmcOutputMafIterator::writeBlock_(), bpp::TableOutputMafIterator::writeBlock_(), and bpp::VcfOutputMafIterator::writeBlock_().
|
inline |
Definition at line 149 of file MafBlock.h.
References getNumberOfSequences(), getSequence(), and bpp::MafSequence::getSpecies().
Referenced by bpp::CoordinatesOutputMafIterator::analyseCurrentBlock_(), bpp::PairwiseDivergenceMafStatistics::compute(), bpp::SequenceLengthMafStatistics::compute(), bpp::AbstractSpeciesSelectionMafStatistics::getSiteContainer_(), bpp::AbstractSpeciesMultipleSelectionMafStatistics::getSiteContainers_(), and bpp::VcfOutputMafIterator::writeBlock_().
|
inline |
Definition at line 162 of file MafBlock.h.
References getNumberOfSequences(), getSequence(), and bpp::MafSequence::getSpecies().
Referenced by bpp::AlignmentFilterMafIterator::analyseCurrentBlock_(), bpp::AlignmentFilter2MafIterator::analyseCurrentBlock_(), and bpp::EntropyFilterMafIterator::analyseCurrentBlock_().
|
inline |
property | The name of the property to look for. |
Definition at line 187 of file MafBlock.h.
References properties_.
Referenced by setProperty().
|
inline |
Definition at line 117 of file MafBlock.h.
References getAlignment(), and bpp::AlignedSequenceContainer::hasSequence().
|
inline |
Definition at line 129 of file MafBlock.h.
References getNumberOfSequences(), getSequence(), and bpp::MafSequence::getSpecies().
Referenced by bpp::AlignmentFilterMafIterator::analyseCurrentBlock_(), bpp::AlignmentFilter2MafIterator::analyseCurrentBlock_(), bpp::EntropyFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::FullGapFilterMafIterator::analyseCurrentBlock_(), bpp::MaskFilterMafIterator::analyseCurrentBlock_(), bpp::OutputAlignmentMafIterator::analyseCurrentBlock_(), bpp::SequenceLDhotOutputMafIterator::analyseCurrentBlock_(), bpp::SiteFrequencySpectrumMafStatistics::compute(), bpp::AbstractSpeciesSelectionMafStatistics::getSiteContainer_(), bpp::AbstractSpeciesMultipleSelectionMafStatistics::getSiteContainers_(), bpp::CsvStatisticsOutputIterationListener::iterationMoves(), bpp::OrderFilterMafIterator::parseBlock_(), bpp::PlinkOutputMafIterator::parseBlock_(), bpp::MsmcOutputMafIterator::writeBlock_(), and bpp::TableOutputMafIterator::writeBlock_().
Definition at line 84 of file MafBlock.h.
References alignment_, deleteProperties_(), pass_, properties_, and score_.
|
inline |
Definition at line 170 of file MafBlock.h.
References getSequence().
Referenced by bpp::FullGapFilterMafIterator::analyseCurrentBlock_().
|
inline |
Definition at line 103 of file MafBlock.h.
References pass_.
Referenced by bpp::AlignmentFilterMafIterator::analyseCurrentBlock_(), bpp::AlignmentFilter2MafIterator::analyseCurrentBlock_(), bpp::BlockMergerMafIterator::analyseCurrentBlock_(), bpp::ConcatenateMafIterator::analyseCurrentBlock_(), bpp::EntropyFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureExtractorMafIterator::analyseCurrentBlock_(), bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::MafParser::analyseCurrentBlock_(), bpp::MaskFilterMafIterator::analyseCurrentBlock_(), bpp::QualityFilterMafIterator::analyseCurrentBlock_(), and bpp::WindowSplitMafIterator::analyseCurrentBlock_().
|
inline |
Set the data associated to a query property.
An existing data associated to this property will be deleted and replaced by the new one.
property | The property to look for. |
data | The data to associate to this property. |
Exception | if the pointer toward the input data is NULL. |
Definition at line 231 of file MafBlock.h.
References deleteProperty(), hasProperty(), and properties_.
|
inline |
Definition at line 102 of file MafBlock.h.
References score_.
Referenced by bpp::AlignmentFilterMafIterator::analyseCurrentBlock_(), bpp::AlignmentFilter2MafIterator::analyseCurrentBlock_(), bpp::BlockMergerMafIterator::analyseCurrentBlock_(), bpp::ConcatenateMafIterator::analyseCurrentBlock_(), bpp::EntropyFilterMafIterator::analyseCurrentBlock_(), bpp::FeatureExtractorMafIterator::analyseCurrentBlock_(), bpp::FeatureFilterMafIterator::analyseCurrentBlock_(), bpp::MafParser::analyseCurrentBlock_(), bpp::MaskFilterMafIterator::analyseCurrentBlock_(), bpp::QualityFilterMafIterator::analyseCurrentBlock_(), and bpp::WindowSplitMafIterator::analyseCurrentBlock_().
|
private |
Definition at line 61 of file MafBlock.h.
Referenced by addSequence(), getAlignment(), getNumberOfSequences(), getNumberOfSites(), and operator=().
|
private |
Definition at line 60 of file MafBlock.h.
Referenced by getPass(), operator=(), and setPass().
|
private |
Definition at line 62 of file MafBlock.h.
Referenced by deleteProperties_(), deleteProperty(), getProperty(), hasProperty(), MafBlock(), operator=(), and setProperty().
|
private |
Definition at line 59 of file MafBlock.h.
Referenced by getScore(), operator=(), and setScore().