mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Replace MakeBioSequence call by NewBioSequence call,
Implements a new file format guesser Adds some more API doc Former-commit-id: 9837bf1c28beca6ddb599b367f93548950ba83c1
This commit is contained in:
@ -226,13 +226,13 @@ func (g *DeBruijnGraph) LongestConsensus(id string) (*obiseq.BioSequence, error)
|
||||
s := g.DecodePath(path)
|
||||
|
||||
if len(s) > 0 {
|
||||
seq := obiseq.MakeBioSequence(
|
||||
seq := obiseq.NewBioSequence(
|
||||
id,
|
||||
[]byte(s),
|
||||
"",
|
||||
)
|
||||
|
||||
return &seq, nil
|
||||
return seq, nil
|
||||
}
|
||||
|
||||
return nil, fmt.Errorf("cannot identify optimum path")
|
||||
@ -295,13 +295,13 @@ func (g *DeBruijnGraph) BestConsensus(id string) (*obiseq.BioSequence, error) {
|
||||
s := g.DecodePath(path)
|
||||
|
||||
if len(s) > 0 {
|
||||
seq := obiseq.MakeBioSequence(
|
||||
seq := obiseq.NewBioSequence(
|
||||
id,
|
||||
[]byte(s),
|
||||
"",
|
||||
)
|
||||
|
||||
return &seq, nil
|
||||
return seq, nil
|
||||
}
|
||||
|
||||
return nil, fmt.Errorf("cannot identify optimum path")
|
||||
@ -366,7 +366,7 @@ func (graph *DeBruijnGraph) Push(sequence *obiseq.BioSequence) {
|
||||
|
||||
for _, idx := range init {
|
||||
graph.append(s[graph.kmersize:], idx)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user