63 for (
size_t i = 0; i < species_.size(); ++i) {
77 if (chr != currentChr_) {
83 if (refSeq.
start() < lastPosition_)
85 lastPosition_ = refSeq.
stop();
89 size_t offset = refSeq.
start();
103 if (refSeq[i] != gap) {
106 out << chr <<
"\t" << pos <<
"\t" << nbOfCalledSites_ <<
"\t" << sites.
getSite(i).
toString() << endl;
108 nbOfCalledSites_ = 0;
virtual int getGapCharacterCode() const=0
virtual std::string toString() const=0
virtual const Alphabet * getAlphabet() const=0
A synteny block data structure, the basic unit of a MAF alignement file.
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.
std::string getDescription() const
const std::string & getChromosome() const
void writeBlock_(std::ostream &out, const MafBlock &block)
size_t getSequencePosition(size_t alnPos)
void addSequence(const Sequence &sequence, bool checkName=true)
const Site & getSite(size_t siteIndex) const
size_t getNumberOfSites() const
std::string toString(T t)