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

Function readContigLengths

MergePaths/MergePaths.cpp:889–907  ·  view source on GitHub ↗

Read contig lengths. */

Source from the content-addressed store, hash-verified

887
888/** Read contig lengths. */
889static Lengths
890readContigLengths(istream& in)
891{
892 assert(in);
893 assert(g_contigNames.empty());
894 Lengths lengths;
895 string s;
896 unsigned len;
897 while (in >> s >> len) {
898 in.ignore(numeric_limits<streamsize>::max(), '\n');
899 put(g_contigNames, lengths.size(), s);
900 assert(len >= opt::k);
901 lengths.push_back(len - opt::k + 1);
902 }
903 assert(in.eof());
904 assert(!lengths.empty());
905 g_contigNames.lock();
906 return lengths;
907}
908
909/** Read contig lengths. */
910static Lengths

Callers 1

mainFunction · 0.70

Calls 8

assert_goodFunction · 0.85
lockMethod · 0.80
putFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
eofMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected