44 #include <Bpp/Seq/Container/AlignedSequenceContainer.h> 46 #include <Bpp/Clonable.h> 56 public virtual Clonable
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);
149 std::vector<const MafSequence*>
getSequencesForSpecies(
const std::string& species)
const throw (SequenceNotFoundException) {
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);
200 const Clonable&
getProperty(
const std::string& property)
const throw (Exception)
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.");
231 void setProperty(
const std::string& property, Clonable* data)
throw (Exception)
234 throw Exception(
"MafBlock::setProperty. Pointer to data is NULL.");
243 std::map<std::string, Clonable*>::iterator it;
253 #endif //_MAFBLOCK_H_ const MafSequence & getSequenceForSpecies(const std::string &species) const
AlignedSequenceContainer alignment_
void setScore(double score)
const Clonable & getProperty(const std::string &property) const
Get the data associated to a query property.
const AlignedSequenceContainer & getAlignment() const
unsigned int getPass() const
std::vector< const MafSequence * > getSequencesForSpecies(const std::string &species) const
const std::string & getSpecies() const
std::map< std::string, Clonable * > properties_
size_t getNumberOfSites() const
void setProperty(const std::string &property, Clonable *data)
Set the data associated to a query property.
AlignedSequenceContainer & getAlignment()
bool hasSequenceForSpecies(const std::string &species) const
A synteny block data structure, the basic unit of a MAF alignement file.
void addSequence(const MafSequence &sequence)
const MafSequence & getSequence(size_t i) const
MafBlock & operator=(const MafBlock &block)
bool hasSequence(const std::string &name) const
std::vector< std::string > getSpeciesList() const
void deleteProperty(const std::string &property)
Delete the data associated to a query property.
bool hasProperty(const std::string &property) const
void removeCoordinatesFromSequence(size_t i)
void setPass(unsigned int pass)
size_t getNumberOfSequences() const
std::string getDescription() const
MafBlock(const MafBlock &block)
const MafSequence & getSequence(const std::string &name) const
A sequence class which is used to store data from MAF files.