Expand description
Rereplicate: expand ;size=N abundance annotations back into N individual
FASTA records. Inverse of vsearch --derep_fulllength.
Behaviour matches vsearch --rereplicate v2.31.0 (BSD-2):
- Each input record with
;size=Nis emitted N times in order. - The
;size=Nannotation is stripped from the output header (vsearch setsopt_xsize=trueunconditionally for this command). - With
--sizeout, each copy receives;size=1appended instead. - Records with no
;size=annotation are treated as abundance 1 (emitted once), with a warning logged. - No
minseqlengthormaxseqlengthfiltering is applied (those options are not in the--rereplicateallowed-option set). - Sequence bytes are preserved exactly (case + U kept); the tool does not normalise for this operation.
- FASTA output wraps at
fasta_widthcolumns (default 80). - Output order mirrors input order; each record’s copies appear together.
Structs§
- Fasta
Record - One parsed FASTA record.
Functions§
- parse_
fasta - Parse FASTA records from a buffered reader.
- rereplicate
- Core rereplicate logic.
- strip_
size - Strip the first
;size=Ntoken from a label. - write_
record - Write one FASTA record to
out, wrapping sequence atwidthcolumns.width == 0means no wrapping.