hmmfetch
Quick Start
- Command:
hmmfetch [options] <hmmfile> <key> - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/hmmfetch - Version: HMMER 3.4 / Easel 0.49
- Full reference: See
references/help.md
When To Use This Tool
- Extract one named model from a combined HMM library.
- Pull many models from a large collection using a key list.
- Create an
.ssiindex once so repeated model lookups are fast. - Split a large HMM set into smaller, task-specific subsets before scanning or searching.
Common Patterns
# 1) Index an HMM library once for fast retrieval
hmmfetch --index Pfam-A.hmm
# 2) Fetch a single HMM by name or accession
hmmfetch Pfam-A.hmm PF00069 > PF00069.hmm
# 3) Fetch many models from a key list
hmmfetch \
-f \
Pfam-A.hmm \
ids.txt \
> subset.hmm
Recommended Workflow
- Index the source HMM file first if you expect repeated extractions.
- Use exact model identifiers from the library header lines.
- Fetch one model by key or many with
-fand a plain-text key file. - Save the subset immediately and use it for downstream
hmmpress,hmmscan, or curation.
Guardrails
--indexcreates a sidecar<hmmfile>.ssifile.-fchanges the meaning of the second positional argument from a single key to a keyfile.-Owrites to a file named after the requested key, which is convenient but easy to scatter across the current directory.- Use
-hfor help;--helpand--versionare not valid here.