Convert first nucleotide of sequence to lower case in fasta reader

Former-commit-id: 856bb3a39a4f1143a34b1f8b4d8d12b0151c0c3e
This commit is contained in:
2023-09-01 09:40:02 +02:00
parent 62b57f4ede
commit 6d1ac60c48

View File

@ -219,6 +219,9 @@ func ParseFastaChunk(source string, ch FastxChunk) *obiiter.BioSequenceBatch {
if !is_end_of_line { if !is_end_of_line {
// Beginning of sequence // Beginning of sequence
start = i start = i
if C >= 'A' && C <= 'Z' {
ch.Bytes[current] = C + 'a' - 'A'
}
current = i + 1 current = i + 1
state = 6 state = 6
} }