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

Function isColourSpace

DataLayer/FastaReader.cpp:122–127  ·  view source on GitHub ↗

Return whether the read seq is in colour space. */

Source from the content-addressed store, hash-verified

120
121/** Return whether the read seq is in colour space. */
122static bool isColourSpace(const string& seq)
123{
124 assert(!seq.empty());
125 size_t i = seq.find_first_of("ACGTacgt0123", 1);
126 return i != string::npos && isdigit(seq[i]);
127}
128
129/** Read a single record. */
130Sequence FastaReader::read(string& id, string& comment,

Callers 1

readMethod · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected