mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 16:50:27 +00:00
Patch a bug in fasta and fastq reading
Former-commit-id: bcaa264b4c4a7c67617eb909b199176bf09913db
This commit is contained in:
@@ -50,13 +50,12 @@ func _ParseFastaFile(source string,
|
||||
var identifier string
|
||||
var definition string
|
||||
|
||||
state := 0
|
||||
|
||||
idBytes := new(bytes.Buffer)
|
||||
defBytes := new(bytes.Buffer)
|
||||
seqBytes := new(bytes.Buffer)
|
||||
idBytes := bytes.Buffer{}
|
||||
defBytes := bytes.Buffer{}
|
||||
seqBytes := bytes.Buffer{}
|
||||
|
||||
for chunks := range input {
|
||||
state := 0
|
||||
scanner := bufio.NewReader(chunks.raw)
|
||||
start, _ := scanner.Peek(20)
|
||||
if start[0] != '>' {
|
||||
|
||||
Reference in New Issue
Block a user