mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-02-02 22:30:34 +00:00
22 lines
536 B
Go
22 lines
536 B
Go
package obichunk
|
|
|
|
import (
|
|
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obiiter"
|
|
"git.metabarcoding.org/obitools/obitools4/obitools4/pkg/obiseq"
|
|
)
|
|
|
|
func ISequenceChunk(iterator obiiter.IBioSequence,
|
|
classifier *obiseq.BioSequenceClassifier,
|
|
onMemory bool,
|
|
dereplicate bool,
|
|
na string,
|
|
statsOn obiseq.StatsOnDescriptions,
|
|
) (obiiter.IBioSequence, error) {
|
|
|
|
if onMemory {
|
|
return ISequenceChunkOnMemory(iterator, classifier)
|
|
} else {
|
|
return ISequenceChunkOnDisk(iterator, classifier, dereplicate, na, statsOn)
|
|
}
|
|
}
|