From 6d1ac60c48ac355808d3b0ee18229aab662d72b2 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Fri, 1 Sep 2023 09:40:02 +0200 Subject: [PATCH] Convert first nucleotide of sequence to lower case in fasta reader Former-commit-id: 856bb3a39a4f1143a34b1f8b4d8d12b0151c0c3e --- pkg/obiformats/fastaseq_read.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/obiformats/fastaseq_read.go b/pkg/obiformats/fastaseq_read.go index eb6e9cf..c902857 100644 --- a/pkg/obiformats/fastaseq_read.go +++ b/pkg/obiformats/fastaseq_read.go @@ -219,6 +219,9 @@ func ParseFastaChunk(source string, ch FastxChunk) *obiiter.BioSequenceBatch { if !is_end_of_line { // Beginning of sequence start = i + if C >= 'A' && C <= 'Z' { + ch.Bytes[current] = C + 'a' - 'A' + } current = i + 1 state = 6 }