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

Function makeSeedMap

PathOverlap/PathOverlap.cpp:257–270  ·  view source on GitHub ↗

Index the first and last contig of each path to facilitate finding * overlaps between paths. */

Source from the content-addressed store, hash-verified

255/** Index the first and last contig of each path to facilitate finding
256 * overlaps between paths. */
257static SeedMap
258makeSeedMap(const Paths& paths)
259{
260 SeedMap seedMap;
261 for (Paths::const_iterator it = paths.begin(); it != paths.end(); ++it) {
262 if (it->empty())
263 continue;
264 assert(!it->front().ambiguous());
265 seedMap.insert(make_pair(it->front(), Vertex(it - paths.begin(), false)));
266 assert(!it->back().ambiguous());
267 seedMap.insert(make_pair(it->back() ^ 1, Vertex(it - paths.begin(), true)));
268 }
269 return seedMap;
270}
271
272/** Check whether path starts with the sequence [first, last). */
273static bool

Callers 1

findOverlapsFunction · 0.85

Calls 8

ambiguousMethod · 0.80
VertexClass · 0.70
beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45
frontMethod · 0.45
insertMethod · 0.45
backMethod · 0.45

Tested by

no test coverage detected