mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 00:30:27 +00:00
18 lines
440 B
Go
18 lines
440 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) (obiiter.IBioSequence, error) {
|
|
|
|
if onMemory {
|
|
return ISequenceChunkOnMemory(iterator, classifier)
|
|
} else {
|
|
return ISequenceChunkOnDisk(iterator, classifier)
|
|
}
|
|
}
|