56 MafBlock* block = iterator_->nextBlock();
61 for (
size_t i = 0; i < species_.size(); ++i) {
74 vector <size_t> start;
75 vector <unsigned int>
count;
77 for (
size_t i = 0; i < n; ++i) {
92 size_t totalRemoved = 0;
93 for(
size_t i = start.size(); i > 0; --i) {
97 totalRemoved +=
count[i - 1];
103 if (totalRemoved > 0) {
112 (*logstream_ <<
"FULL GAP CLEANER: " << totalRemoved <<
" positions have been removed.").endLine();
void deleteSites(size_t siteIndex, size_t length)
MafBlock * analyseCurrentBlock_()
A synteny block data structure, the basic unit of a MAF alignement file.
size_t getNumberOfSequences() const
size_t getNumberOfSites() const
const MafSequence & getSequence(const std::string &name) const
AlignedSequenceContainer & getAlignment()
void removeCoordinatesFromSequence(size_t i)
bool hasSequenceForSpecies(const std::string &species) 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
void addSequence(const Sequence &sequence, bool checkName=true)
const Site & getSite(size_t siteIndex) const
size_t getNumberOfSequences() const
std::size_t count(const std::string &s, const std::string &pattern)