gbf2fsa
Quick Start
- Command:
gbf2fsa [input.gbf] > output.fsa - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/gbf2fsa - Reference: See
references/help.mdfor full documentation
When To Use This Tool
- Convert GenBank flatfiles into plain FASTA sequences.
- Flatten annotation-rich GenBank records down to sequence headers plus raw sequence for downstream sequence tools.
- Reuse the existing
gbf2xml | xml2fsapipeline without rebuilding it by hand.
Common Patterns
# 1) Convert a GenBank flatfile into FASTA
gbf2fsa < records.gbf > records.fsa
# 2) Stream GenBank output straight from efetch into FASTA
efetch -db nuccore -id TEST0001 -format gb | gbf2fsa > TEST0001.fsa
Recommended Workflow
- Verify input file is valid GenBank format (.gbf)
- Run
gbf2fsathrough stdin redirection or a pipe. - Inspect the FASTA header and sequence on a small sample first.
- Proceed with downstream FASTA-based analysis
Guardrails
- Input must be valid GenBank format
- This wrapper is just
gbf2xml | xml2fsa, sotransmute,xtract, and the companion wrappers must all be onPATH. - The wrapper does not provide meaningful
--help/--versionoutput. - Output FASTA headers follow the
xml2fsaaccession-plus-definition pattern, so confirm they match downstream expectations.