mirror of
https://github.com/metabarcoding/obitools4.git
synced 2026-11-10 01:24:41 +00:00
small code refactoring
This commit is contained in:
1 parent
d2f4919bc8
commit
d04161a0fb
2 files changed
+7
-17
No files matched your search
@@ -13,7 +13,7 @@ func DistributeSequence(sequences obiiter.IBioSequenceBatch) {
|
||||
|
||||
opts := make([]obiformats.WithOption, 0, 10)
|
||||
|
||||
switch obiconvert.OutputFastHeaderFormat() {
|
||||
switch obiconvert.CLIOutputFastHeaderFormat() {
|
||||
case "json":
|
||||
log.Println("On output use JSON headers")
|
||||
opts = append(opts, obiformats.OptionsFastSeqHeaderFormat(obiformats.FormatFastSeqJsonHeader))
|
||||
@@ -34,11 +34,11 @@ func DistributeSequence(sequences obiiter.IBioSequenceBatch) {
|
||||
opts = append(opts, obiformats.OptionsBufferSize(obioptions.CLIBufferSize()))
|
||||
opts = append(opts, obiformats.OptionsBatchSize(obioptions.CLIBatchSize()))
|
||||
|
||||
opts = append(opts, obiformats.OptionsQualityShift(obiconvert.OutputQualityShift()))
|
||||
opts = append(opts, obiformats.OptionsQualityShift(obiconvert.CLIOutputQualityShift()))
|
||||
|
||||
var formater obiformats.SequenceBatchWriterToFile
|
||||
|
||||
switch obiconvert.OutputFormat() {
|
||||
switch obiconvert.CLIOutputFormat() {
|
||||
case "fastq":
|
||||
formater = obiformats.WriteFastqBatchToFile
|
||||
case "fasta":
|
||||
|
||||
Reference in new issue
Block a user