MCPcopy Create free account
hub / github.com/BirolLab/RNA-Bloom / greedyExtendLeft

Method greedyExtendLeft

src/rnabloom/util/GraphUtils.java:1906–1921  ·  view source on GitHub ↗
(BloomFilterDeBruijnGraph graph, Kmer source, int lookahead, int bound)

Source from the content-addressed store, hash-verified

1904 }
1905
1906 public static ArrayDeque<Kmer> greedyExtendLeft(BloomFilterDeBruijnGraph graph, Kmer source, int lookahead, int bound) {
1907 ArrayDeque<Kmer> extension = new ArrayDeque<>(bound);
1908
1909 Kmer nextKmer = source;
1910 for (int i=0; i<bound; ++i) {
1911 nextKmer = greedyExtendLeftOnce(graph, nextKmer, lookahead);
1912
1913 if (nextKmer == null) {
1914 break;
1915 }
1916
1917 extension.addFirst(nextKmer);
1918 }
1919
1920 return extension;
1921 }
1922
1923 public static ArrayDeque<Kmer> greedyExtendLeftReversed(BloomFilterDeBruijnGraph graph, Kmer source, int lookahead, int bound) {
1924 ArrayDeque<Kmer> extension = new ArrayDeque<>(bound);

Callers 7

representedMethod · 0.95
correctErrorHelper2Method · 0.95
correctEdgeErrorsMethod · 0.95
correctErrorHelperMethod · 0.95
isChimeraMethod · 0.95
isTemplateSwitch2Method · 0.95
isTemplateSwitchMethod · 0.95

Calls 1

greedyExtendLeftOnceMethod · 0.95

Tested by

no test coverage detected