mirror of
https://github.com/metabarcoding/obitools4.git
synced 2025-12-08 16:50:27 +00:00
Patch sequence writers to remove definition from header when json format is used.
Former-commit-id: a8a74cccb52d577d4ea1c0ad88b121a8e511149d
This commit is contained in:
@@ -63,9 +63,8 @@ func FormatFasta(seq *obiseq.BioSequence, formater FormatHeader) string {
|
||||
}
|
||||
|
||||
info := formater(seq)
|
||||
return fmt.Sprintf(">%s %s %s\n%s",
|
||||
return fmt.Sprintf(">%s %s\n%s",
|
||||
seq.Id(), info,
|
||||
seq.Definition(),
|
||||
folded)
|
||||
}
|
||||
|
||||
@@ -199,7 +198,7 @@ func WriteFasta(iterator obiiter.IBioSequence,
|
||||
// configuration options as variadic arguments. It appends the option to not close the file
|
||||
// to the options slice and then calls the WriteFasta function passing the iterator,
|
||||
// os.Stdout as the output file, and the options slice.
|
||||
//
|
||||
//
|
||||
// The function returns the same bio sequence iterator and an error if any occurred.
|
||||
func WriteFastaToStdout(iterator obiiter.IBioSequence,
|
||||
options ...WithOption) (obiiter.IBioSequence, error) {
|
||||
|
||||
Reference in New Issue
Block a user