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

Function markSeenInPath

Common/ContigPath.h:62–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62static inline void markSeenInPath(std::istream& in,
63 std::vector<bool>& marked)
64{
65 assert(in.good());
66 std::string s;
67 ContigPath path;
68 while (in >> s >> path) {
69 if (path.empty()) {
70 size_t i = get(g_contigNames, s);
71 assert(i < marked.size());
72 marked[i] = true;
73 }
74 for (ContigPath::const_iterator it = path.begin();
75 it != path.end(); ++it) {
76 if (!it->ambiguous()) {
77 size_t i = it->contigIndex();
78 assert(i < marked.size());
79 marked[i] = true;
80 }
81 }
82 }
83 assert(in.eof());
84}
85
86#endif

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 9

goodMethod · 0.80
ambiguousMethod · 0.80
contigIndexMethod · 0.80
getFunction · 0.70
emptyMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
eofMethod · 0.45

Tested by

no test coverage detected