40 #ifndef _COORDINATETRANSLATORMAFITERATOR_H_
41 #define _COORDINATETRANSLATORMAFITERATOR_H_
85 const std::string& referenceSpecies,
86 const std::string& targetSpecies,
89 bool outputClosestCoordinate =
true) :
99 for (std::set<std::string>::iterator it = seqIds.begin();
106 output_ <<
"chr.ref\tstrand.ref\tbegin.ref\tend.ref\tchr.target\tstrand.target\tbegin.target\tend.target" << std::endl;
Helper class for developping filter for maf blocks.
Translate features coordinates from one species to another, based on the alignment.
std::string referenceSpecies_
bool outputClosestCoordinate_
std::string targetSpecies_
virtual ~CoordinateTranslatorMafIterator()
CoordinateTranslatorMafIterator(MafIterator *iterator, const std::string &referenceSpecies, const std::string &targetSpecies, const SequenceFeatureSet &features, std::ostream &output, bool outputClosestCoordinate=true)
Build a new CoordinateTranslator iterator.
std::map< std::string, SequenceFeatureSet * > inputFeaturesPerChr_
MafBlock * analyseCurrentBlock_()
A synteny block data structure, the basic unit of a MAF alignement file.
Interface to loop over maf alignment blocks.
A simple ensemble of sequence features.
SequenceFeatureSet * getSubsetForSequence(const std::string &id) const
std::set< std::string > getSequences() const