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

Function writeBubble

Assembly/BubbleAlgorithm.h:224–241  ·  view source on GitHub ↗

Write a bubble to the specified file. */

Source from the content-addressed store, hash-verified

222
223/** Write a bubble to the specified file. */
224static inline
225void writeBubble(std::ostream& out, const BranchGroup& group, unsigned id)
226{
227 if (opt::snpPath.empty())
228 return;
229
230 char allele = 'A';
231 for (BranchGroup::const_iterator it = group.begin();
232 it != group.end(); ++it) {
233 const BranchRecord& currBranch = *it;
234 Sequence contig(currBranch);
235 out << '>' << id << allele++ << ' '
236 << contig.length() << ' '
237 << currBranch.calculateBranchMultiplicity() << '\n'
238 << contig.c_str() << '\n';
239 }
240 assert_good(out, opt::snpPath);
241}
242
243/** Collapse a bubble to a single path. */
244template <typename Graph>

Callers 2

popBubblesFunction · 0.85

Calls 7

assert_goodFunction · 0.85
emptyMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
lengthMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected