bb_get_fasta_length - ampinzonv/BB3 GitHub Wiki
Report sequence lengths from a FASTA file.
This function calculates and reports the length of each sequence in a FASTA file. It prints the ID of each sequence along with its length.
- A FASTA file with biological sequences.
- STDIN is supported via
--input -
.
- Two-column output:
<ID> <LENGTH>
, one line per sequence.
bb_get_fasta_length --input sequences.fasta
cat sequences.fasta | bb_get_fasta_length --input -
bb_get_fasta_length --input sequences.fasta --outfile lengths.tsv
bb_get_fasta_length --input FILE [--outfile FILE] [--quiet] [--force]
Option | Description |
---|---|
--input FILE |
Input FASTA file or - for STDIN (required) |
--outfile FILE |
Path to output file (optional, default: STDOUT) |
--quiet |
Suppress log messages |
--force |
Overwrite output file if it exists |
- Handles multi-line FASTA entries properly.
- Output is compatible with other BioBASH tools expecting tabular formats.