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

Method removeExtension

Assembly/DBG.h:212–229  ·  view source on GitHub ↗

Remove the specified extensions from this k-mer. */

Source from the content-addressed store, hash-verified

210
211/** Remove the specified extensions from this k-mer. */
212void removeExtension(const key_type& kmer,
213 extDirection dir, SymbolSet ext)
214{
215 bool rc;
216 iterator it = find(kmer, rc);
217 assert(it != m_data.end());
218 if (opt::ss) {
219 assert(!rc);
220 it->second.removeExtension(dir, ext);
221 } else {
222 bool palindrome = kmer.isPalindrome();
223 if (!rc || palindrome)
224 it->second.removeExtension(dir, ext);
225 if (rc || palindrome)
226 it->second.removeExtension(!dir, ext.complement());
227 }
228 notify(*it);
229}
230
231/** Remove the specified edge of this vertex. */
232void removeExtension(const key_type& seq, extDirection dir, Symbol base)

Callers 1

remove_edgeFunction · 0.45

Calls 4

findFunction · 0.85
endMethod · 0.45
isPalindromeMethod · 0.45
complementMethod · 0.45

Tested by

no test coverage detected