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

Function sequence

MergePaths/MergeContigs.cpp:159–171  ·  view source on GitHub ↗

Return the sequence of the specified contig node. The sequence * may be ambiguous or reverse complemented. */

Source from the content-addressed store, hash-verified

157 * may be ambiguous or reverse complemented.
158 */
159static Sequence
160sequence(const Contigs& contigs, const ContigNode& id)
161{
162 if (id.ambiguous()) {
163 string s(id.ambiguousSequence());
164 if (s.length() < opt::k)
165 transform(s.begin(), s.end(), s.begin(), ::tolower);
166 return string(opt::k - 1, 'N') + s;
167 } else {
168 const Sequence& seq = contigs[id.id()].seq;
169 return id.sense() ? reverseComplement(seq) : seq;
170 }
171}
172
173/** Return a consensus sequence of a and b.
174 * @return an empty string if a consensus could not be found

Callers 2

mergeContigsFunction · 0.70
mergePathFunction · 0.70

Calls 8

ambiguousMethod · 0.80
ambiguousSequenceMethod · 0.80
idMethod · 0.80
senseMethod · 0.80
reverseComplementFunction · 0.50
lengthMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected