efilter
Quick Start
- Command:
efilter - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/efilter - Full reference: See
references/help.md
When To Use This Tool
- Narrow an existing Entrez result set by date, organism, publication type, sequence feature, SNP class, or assembly status.
- Add database-specific shortcuts after
esearchorelinkwithout rewriting the whole query string. - Prototype filters interactively before folding them back into a single
esearchcommand.
Common Patterns
# 1) Keep only recent PubMed hits from a pipeline
esearch -db pubmed -query "opsin gene conversion" \
| efilter -mindate 2015 \
| efetch -format docsum
# 2) Restrict sequence results to mammalian RefSeq entries
esearch -db protein -query hemoglobin \
| efilter -organism mammals -source refseq
# 3) Keep only latest assemblies
esearch -db assembly -query "Escherichia coli" \
| efilter -status latest
Recommended Workflow
- Start with an
esearchorelinkpipeline that already identifies the right Entrez database. - Apply only the shortcut family that matches that database category, such as
-pubfor PubMed or-organismfor sequence databases. - Inspect counts or summaries if the filter logic is non-obvious.
- Fetch full records only after the filter stage is stable.
Guardrails
- The local executable is just a wrapper around
esearch -filter, so it depends on valid Entrez pipeline state and is not an offline post-processor. - Shortcut families are database-specific; mixing incompatible groups produces confusing or empty results.
- Many
efiltershortcuts can also be expressed directly inesearch, which is often cleaner once you know the final query. - In this local install, help output can still emit network-version-check noise from EDirect before printing the real usage text.