mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-06-29 16:20:46 +00:00
Patch a tricky bug in parsing of json header and save the last sequence from files
Former-commit-id: bfe3d0e9eb8e65113699d535bd1d9a5fe0d3ce1d
This commit is contained in:
@ -285,11 +285,17 @@ func ParseOBIFeatures(text string, annotations obiseq.Annotation) string {
|
||||
|
||||
func ParseFastSeqOBIHeader(sequence *obiseq.BioSequence) {
|
||||
annotations := sequence.Annotations()
|
||||
definition := sequence.Definition()
|
||||
sequence.SetDefinition("")
|
||||
|
||||
definition := ParseOBIFeatures(sequence.Definition(),
|
||||
annotations)
|
||||
definition = ParseOBIFeatures(definition, annotations)
|
||||
|
||||
sequence.SetDefinition(definition)
|
||||
if len(definition) > 0 {
|
||||
if sequence.HasDefinition() {
|
||||
definition = sequence.Definition() + " " + definition
|
||||
}
|
||||
sequence.SetDefinition(definition)
|
||||
}
|
||||
}
|
||||
|
||||
func FormatFastSeqOBIHeader(sequence *obiseq.BioSequence) string {
|
||||
|
Reference in New Issue
Block a user