56 out <<
"##maf version=1 program=Bio++" << endl <<
"#" << endl;
64 out <<
" score=" << block.
getScore();
66 out <<
" pass=" << block.
getPass();
70 size_t mxcSrc = 0, mxcStart = 0, mxcSize = 0, mxcSrcSize = 0;
76 mxcSrc = max(mxcSrc , seq->
getName().size());
97 for (
size_t j = 0; j < seqstr.size(); ++j) {
98 char c = ((*mask)[j] ?
static_cast<char>(tolower(
static_cast<int>(seqstr[j]))) : seqstr[j]);
111 for (
size_t j = 0; j < seq->
size(); ++j) {
115 }
else if (s == -2) {
117 }
else if (s >=0 && s < 10) {
119 }
else if (s == 10) {
125 out << qualStr << endl;
virtual std::string toString() const=0
virtual size_t size() const=0
A synteny block data structure, the basic unit of a MAF alignement file.
unsigned int getPass() const
size_t getNumberOfSequences() const
const MafSequence & getSequence(const std::string &name) const
A sequence class which is used to store data from MAF files.
bool hasCoordinates() const
size_t getSrcSize() const
size_t getGenomicSize() const
void writeHeader(std::ostream &out) const
void writeBlock(std::ostream &out, const MafBlock &block) const
static const std::string MASK
static const std::string QUALITY_SCORE
virtual bool hasAnnotation(const std::string &type) const
virtual const SequenceAnnotation & getAnnotation(const std::string &type) const
const std::string & getName() const
std::string resizeLeft(const std::string &s, std::size_t newSize, char fill)
std::string toString(T t)
std::string resizeRight(const std::string &s, std::size_t newSize, char fill)