mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Correct a bug when sequence length is shorter than kmer size in debruijngraph
Former-commit-id: 56cd670d24065d8774abdcbf685ff4a13e7c4132
This commit is contained in:
@ -361,12 +361,13 @@ func (graph *DeBruijnGraph) Push(sequence *obiseq.BioSequence) {
|
|||||||
init = append(init, key&graph.kmermask)
|
init = append(init, key&graph.kmermask)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if sequence.Len() > graph.kmersize {
|
||||||
f(0, key)
|
f(0, key)
|
||||||
|
|
||||||
for _, idx := range init {
|
for _, idx := range init {
|
||||||
graph.append(s[graph.kmersize:], idx)
|
graph.append(s[graph.kmersize:], idx)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (graph *DeBruijnGraph) Gml() string {
|
func (graph *DeBruijnGraph) Gml() string {
|
||||||
|
Reference in New Issue
Block a user