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

Function getContigType

BloomDBG/bloom-dbg.h:630–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628
629template<typename GraphT>
630static inline ContigType
631getContigType(const Path<Vertex>& contigPath, const GraphT& dbg)
632{
633 if (edge(contigPath.back(), contigPath.front(), dbg).second) {
634
635 Vertex v = contigPath.front().clone();
636 v.shift(ANTISENSE, contigPath.back().kmer().getBase(0));
637
638 if (v.kmer() == contigPath.back().kmer())
639 return CT_CIRCULAR;
640 else
641 return CT_HAIRPIN;
642 }
643
644 return CT_LINEAR;
645}
646
647/** Special case behaviour for circular/hairpin contigs */
648template<typename GraphT>

Callers 2

preprocessCircularContigFunction · 0.85
trimBranchKmersFunction · 0.85

Calls 7

cloneMethod · 0.80
getBaseMethod · 0.80
kmerMethod · 0.80
edgeFunction · 0.70
backMethod · 0.45
frontMethod · 0.45
shiftMethod · 0.45

Tested by

no test coverage detected