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

Function processTerminatedBranchTrim

Assembly/TrimAlgorithm.h:185–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 */
184template <typename Graph>
185bool processTerminatedBranchTrim(Graph* seqCollection, BranchRecord& branch)
186{
187 assert(!branch.isActive());
188 assert(!branch.empty());
189 if (branch.getState() == BS_NOEXT
190 || branch.getState() == BS_AMBI_OPP) {
191 logger(5) << "Pruning " << branch.size() << ' '
192 << branch.front().first << '\n';
193 for (BranchRecord::iterator it = branch.begin();
194 it != branch.end(); ++it)
195 seqCollection->mark(it->first);
196 return true;
197 } else
198 return false;
199}
200
201} // namespace AssemblyAlgorithms
202

Callers 2

processBranchesTrimMethod · 0.85
trimSequencesFunction · 0.85

Calls 8

getStateMethod · 0.80
isActiveMethod · 0.45
emptyMethod · 0.45
sizeMethod · 0.45
frontMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
markMethod · 0.45

Tested by

no test coverage detected