mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 08:40:26 +00:00
Correction on obiformat of bug leading to partial parsing and add godocs
Former-commit-id: b27105355f1a330eedf6eaa72c8ac94f06806c28
This commit is contained in:
@@ -108,6 +108,8 @@ func _ParseFastaFile(source string,
|
||||
if is_end_of_line {
|
||||
definition = defBytes.String()
|
||||
state = 5
|
||||
} else {
|
||||
defBytes.WriteByte(C)
|
||||
}
|
||||
case 5:
|
||||
if !is_end_of_line {
|
||||
|
||||
@@ -229,6 +229,8 @@ func _ParseFastqFile(source string,
|
||||
// End of identifier
|
||||
identifier = idBytes.String()
|
||||
state = 3
|
||||
} else {
|
||||
idBytes.WriteByte(C)
|
||||
}
|
||||
if is_end_of_line {
|
||||
// Definition empty
|
||||
@@ -250,6 +252,8 @@ func _ParseFastqFile(source string,
|
||||
if is_end_of_line {
|
||||
definition = defBytes.String()
|
||||
state = 5
|
||||
} else {
|
||||
defBytes.WriteByte(C)
|
||||
}
|
||||
case 5: // Beginning of sequence
|
||||
if !is_end_of_line {
|
||||
@@ -308,6 +312,8 @@ func _ParseFastqFile(source string,
|
||||
}
|
||||
sequences[len(sequences)-1].SetQualities(q)
|
||||
state = 11
|
||||
} else {
|
||||
qualBytes.WriteByte(C)
|
||||
}
|
||||
case 11:
|
||||
if is_end_of_line {
|
||||
|
||||
Reference in New Issue
Block a user