MCPcopy Create free account
hub / github.com/BirolLab/abyss / alignFile

Function alignFile

Align/align.cc:110–124  ·  view source on GitHub ↗

Align multiple sequences. */

Source from the content-addressed store, hash-verified

108
109/** Align multiple sequences. */
110static void alignFile(const char* path) {
111 if (opt::verbose > 0)
112 cerr << "Aligning `" << path << "'\n";
113 FastaReader in(path, FastaReader::NO_FOLD_CASE);
114 for (vector<string> seq; in;) {
115 seq.clear();
116 FastaRecord fa;
117 if (in >> fa)
118 seq.push_back(fa.seq);
119 while (in.peek() == '>' && in >> fa)
120 seq.push_back(fa.seq);
121 align(seq, cout);
122 }
123 assert(in.eof());
124}
125
126int main(int argc, char** argv)
127{

Callers 1

mainFunction · 0.85

Calls 5

peekMethod · 0.80
alignFunction · 0.70
clearMethod · 0.45
push_backMethod · 0.45
eofMethod · 0.45

Tested by

no test coverage detected