mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
patch a bug related to csv and qualities
This commit is contained in:
@ -8,7 +8,7 @@ import (
|
|||||||
// corresponds to the last commit, and not the one when the file will be
|
// corresponds to the last commit, and not the one when the file will be
|
||||||
// commited
|
// commited
|
||||||
|
|
||||||
var _Commit = "ceca339"
|
var _Commit = "773e549"
|
||||||
var _Version = "Release 4.2.0"
|
var _Version = "Release 4.2.0"
|
||||||
|
|
||||||
// Version returns the version of the obitools package.
|
// Version returns the version of the obitools package.
|
||||||
|
@ -33,6 +33,7 @@ func CLIWriteSequenceCSV(iterator obiiter.IBioSequence,
|
|||||||
CSVDefinition(CLIPrintDefinition()),
|
CSVDefinition(CLIPrintDefinition()),
|
||||||
CSVKeys(CLIToBeKeptAttributes()),
|
CSVKeys(CLIToBeKeptAttributes()),
|
||||||
CSVSequence(CLIPrintSequence()),
|
CSVSequence(CLIPrintSequence()),
|
||||||
|
CSVQuality(CLIPrintQuality()),
|
||||||
CSVAutoColumn(CLIAutoColumns()),
|
CSVAutoColumn(CLIAutoColumns()),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ func CSVSequenceHeader(opt Options) obiitercsv.CSVHeader {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if opt.CSVQuality() {
|
if opt.CSVQuality() {
|
||||||
record.AppendField("quality")
|
record.AppendField("qualities")
|
||||||
}
|
}
|
||||||
|
|
||||||
return record
|
return record
|
||||||
@ -100,9 +100,9 @@ func CSVBatchFromSequences(batch obiiter.BioSequenceBatch, opt Options) obiiterc
|
|||||||
for j := 0; j < l; j++ {
|
for j := 0; j < l; j++ {
|
||||||
ascii[j] = uint8(q[j]) + uint8(quality_shift)
|
ascii[j] = uint8(q[j]) + uint8(quality_shift)
|
||||||
}
|
}
|
||||||
record["quality"] = string(ascii)
|
record["qualities"] = string(ascii)
|
||||||
} else {
|
} else {
|
||||||
record["quality"] = opt.CSVNAValue()
|
record["qualities"] = opt.CSVNAValue()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user