本文整理汇总了C++中Sequence::getComment方法的典型用法代码示例。如果您正苦于以下问题:C++ Sequence::getComment方法的具体用法?C++ Sequence::getComment怎么用?C++ Sequence::getComment使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Sequence
的用法示例。
在下文中一共展示了Sequence::getComment方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: convertQual
FastqRead::FastqRead(Sequence s, QualityScores q, string f) {
try {
m = MothurOut::getInstance(); format = f;
//fill convert table - goes from solexa to sanger. Used fq_all2std.pl as a reference.
for (int i = -64; i < 65; i++) {
char temp = (char) ((int)(33 + 10*log(1+pow(10,(i/10.0)))/log(10)+0.499));
convertTable.push_back(temp);
convertBackTable.push_back(((int)(33 + 10*log(1+pow(10,(i/10.0)))/log(10)+0.499)));
}
if (s.getName() != q.getName()) { m->mothurOut("[ERROR]: sequence name does not match quality score name. Cannot construct fastq object.\n"); m->control_pressed = true; }
else {
name = s.getName();
comment = s.getComment();
sequence = s.getUnaligned();
scores = q.getScores();
scoreString = convertQual(scores);
}
}
catch(exception& e) {
m->errorOut(e, "FastqRead", "FastqRead");
exit(1);
}
}
示例2: operator
struct Functor { void operator () (Sequence& s) const
{
// We dump the data size and the comment
std::cout << "[" << s.getDataSize() << "] " << s.getComment() << std::endl;
// We dump the data
std::cout << s.toString () << std::endl;
}};