mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 16:50:27 +00:00
Patch the empty batch bug
Former-commit-id: fcee04b58f2c4a0bf2c27792f991391c0b6ce78e
This commit is contained in:
@@ -138,7 +138,7 @@ func CLIReadBioSequences(filenames ...string) (obiiter.IBioSequence, error) {
|
||||
}
|
||||
|
||||
iterator = obiformats.ReadSequencesBatchFromFiles(
|
||||
filenames,
|
||||
list_of_files,
|
||||
reader,
|
||||
nreader,
|
||||
opts...,
|
||||
@@ -162,34 +162,11 @@ func CLIReadBioSequences(filenames ...string) (obiiter.IBioSequence, error) {
|
||||
|
||||
}
|
||||
|
||||
// list_of_files = list_of_files[1:]
|
||||
// others := make([]obiiter.IBioSequenceBatch, 0, len(list_of_files))
|
||||
|
||||
// for _, fn := range list_of_files {
|
||||
// r, err := reader(fn, opts...)
|
||||
// if err != nil {
|
||||
// return obiiter.NilIBioSequenceBatch, err
|
||||
// }
|
||||
// others = append(others, r)
|
||||
// }
|
||||
|
||||
// if len(others) > 0 {
|
||||
// if CLINoInputOrder() {
|
||||
// iterator = iterator.Pool(others...)
|
||||
// } else {
|
||||
// iterator = iterator.Concat(others...)
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
// if SequencesToSkip() > 0 {
|
||||
// iterator = iterator.Skip(SequencesToSkip())
|
||||
// }
|
||||
|
||||
// if AnalyzeOnly() > 0 {
|
||||
// iterator = iterator.Head(AnalyzeOnly())
|
||||
// }
|
||||
if CLIProgressBar() {
|
||||
iterator = iterator.Speed()
|
||||
}
|
||||
|
||||
return iterator, nil
|
||||
}
|
||||
|
||||
@@ -35,9 +35,6 @@ func BuildPairedFileNames(filename string) (string, string) {
|
||||
func CLIWriteBioSequences(iterator obiiter.IBioSequence,
|
||||
terminalAction bool, filenames ...string) (obiiter.IBioSequence, error) {
|
||||
|
||||
if CLIProgressBar() {
|
||||
iterator = iterator.Speed()
|
||||
}
|
||||
var newIter obiiter.IBioSequence
|
||||
|
||||
opts := make([]obiformats.WithOption, 0, 10)
|
||||
|
||||
Reference in New Issue
Block a user