78 std::map<std::string, Clonable*>::const_iterator it;
90 std::map<std::string, Clonable*>::const_iterator it;
145 throw SequenceNotFoundException(
"MafBlock::getSequenceForSpecies. No sequence with the given species name in this block.", species);
150 std::vector<const MafSequence*> selection;
154 selection.push_back(seq);
163 std::vector<std::string> lst;
189 std::map<std::string, Clonable*>::const_iterator it =
properties_.find(property);
202 std::map<std::string, Clonable*>::const_iterator it =
properties_.find(property);
204 throw Exception(
"MafBlock::getProperty. No data for property: " + property +
" in block.");
216 std::map<std::string, Clonable*>::iterator it =
properties_.find(property);
218 throw Exception(
"MafBlock::deleteProperty. No data for property: " + property +
" in block.");
234 throw Exception(
"MafBlock::setProperty. Pointer to data is NULL.");
243 std::map<std::string, Clonable*>::iterator it;
size_t getNumberOfSites() const
void addSequence(const Sequence &sequence, bool checkName=true)
A synteny block data structure, the basic unit of a MAF alignement file.
unsigned int getPass() const
MafBlock & operator=(const MafBlock &block)
void setScore(double score)
void setPass(unsigned int pass)
size_t getNumberOfSequences() const
std::vector< const MafSequence * > getSequencesForSpecies(const std::string &species) const
bool hasProperty(const std::string &property) const
size_t getNumberOfSites() const
const Clonable & getProperty(const std::string &property) const
Get the data associated to a query property.
const MafSequence & getSequence(const std::string &name) const
std::map< std::string, Clonable * > properties_
std::string getDescription() const
AlignedSequenceContainer & getAlignment()
void addSequence(const MafSequence &sequence)
void removeCoordinatesFromSequence(size_t i)
bool hasSequence(const std::string &name) const
bool hasSequenceForSpecies(const std::string &species) const
void deleteProperty(const std::string &property)
Delete the data associated to a query property.
std::vector< std::string > getSpeciesList() const
void setProperty(const std::string &property, Clonable *data)
Set the data associated to a query property.
const AlignedSequenceContainer & getAlignment() const
MafBlock(const MafBlock &block)
AlignedSequenceContainer alignment_
const MafSequence & getSequence(size_t i) const
const MafSequence & getSequenceForSpecies(const std::string &species) const
A sequence class which is used to store data from MAF files.
const std::string & getSpecies() const
size_t getNumberOfSequences() const
const Sequence & getSequence(const std::string &name) const
bool hasSequence(const std::string &name) const
std::string toString(T t)