Patch a bug in the genbank reader when reading CONTIG entries

Former-commit-id: dfe1433fbb68a79d59a3ee45e7e5b58c1599dad6
This commit is contained in:
2024-03-11 10:53:25 +01:00
parent 65933ca031
commit 8a2bbd1c3b

View File

@ -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)
}
}
}