From 8a2bbd1c3bfc7d2fee69cc550a7d8875e5637d1e Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Mon, 11 Mar 2024 10:53:25 +0100 Subject: [PATCH] Patch a bug in the genbank reader when reading CONTIG entries Former-commit-id: dfe1433fbb68a79d59a3ee45e7e5b58c1599dad6 --- pkg/obiformats/genbank_read.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/obiformats/genbank_read.go b/pkg/obiformats/genbank_read.go index 15ad756..d287521 100644 --- a/pkg/obiformats/genbank_read.go +++ b/pkg/obiformats/genbank_read.go @@ -182,7 +182,7 @@ func _ParseGenbankFile(source string, processed = true case state == inSequence: - log.Debugf("Chunk %d : Genbank: line %d, state = %d : %s", chunks.order, nl, state, line) + // log.Debugf("Chunk %d : Genbank: line %d, state = %d : %s", chunks.order, nl, state, line) sl++ parts := strings.SplitN(line[10:], " ", 6) @@ -207,6 +207,10 @@ func _ParseGenbankFile(source string, processed = true case inEntry: processed = true + case inContig: + processed = true + default: + log.Fatalf("Unexpected state %d while reading: %s", state, line) } } }