mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-10 09:40:27 +00:00
Patch for some lost of data during sequence writing
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"os"
|
||||
|
||||
"git.metabarcoding.org/lecasofts/go/obitools/pkg/obiiter"
|
||||
"git.metabarcoding.org/lecasofts/go/obitools/pkg/obitools/obiconvert"
|
||||
"git.metabarcoding.org/lecasofts/go/obitools/pkg/obitools/obirefidx"
|
||||
|
||||
@@ -17,6 +18,7 @@ func main() {
|
||||
fs, _ := obiconvert.ReadBioSequences(args...)
|
||||
indexed := obirefidx.IndexReferenceDB(fs)
|
||||
|
||||
written, _ := obiconvert.WriteBioSequences(indexed, false)
|
||||
written.Consume()
|
||||
obiconvert.WriteBioSequences(indexed, true)
|
||||
obiiter.WaitForLastPipe()
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user