filter-genbank
Quick Start
- Command:
filter-genbank < records.gbf > filtered.gbf - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/filter-genbank - Reference: See
references/help.mdfor detailed usage information
When To Use This Tool
- Apply EDirect's built-in GenBank flatfile filtering/normalization step to a GenBank stream.
- Clean or reshape GenBank-format records before a downstream transmutation or extraction stage.
- Keep GenBank filtering inside the EDirect toolchain instead of writing a custom parser.
Common Patterns
# 1) Filter a saved GenBank flatfile stream
filter-genbank < records.gbf > filtered.gbf
# 2) Filter GenBank output directly from an Entrez pipeline
efetch -db nuccore -id ABC123.1 -format gbwithparts | filter-genbank
Recommended Workflow
- Start from real GenBank flatfile content, typically from
efetch. - Pipe it through
filter-genbankrather than relying on positional filenames. - Inspect the first filtered records before running a large batch.
- Pass the result to the next EDirect or archival step once the output looks right.
Guardrails
- This is a thin wrapper around
transmute -gbf, sotransmutemust be onPATH. --helpand--versionare not implemented here; both are reported as unrecognized arguments.- Prefer stdin or pipes over undocumented positional-file behavior.
- Because the actual filtering rules live inside
transmute, validate on a representative GenBank sample before batching.