esl-sfetch
Quick Start
- Command:
esl-sfetch [options] <sqfile> <name>(single sequence) oresl-sfetch [options] -f <sqfile> <namefile>(multiple sequences) oresl-sfetch [options] --index <sqfile>(index file) - Local executable:
/home/vimalinx/miniforge3/envs/bio/bin/esl-sfetch - Full reference: See references/help.md for complete options and usage details
When To Use This Tool
- Use
esl-sfetchwhen you need random access to one or more named sequences from a sequence file. - It is especially useful after creating an SSI index on a large FASTA or other Easel-supported sequence file.
- Use
-ffor batch extraction from a list of identifiers, and-c/-Cwhen you need subsequences rather than whole records. - Reach for it when plain
grepis too brittle and you want indexed, format-aware retrieval.
Common Patterns
# Index a sequence file for fast lookup
esl-sfetch --index sequences.fa
# Fetch one sequence by name
esl-sfetch sequences.fa seq123
# Fetch many sequences listed one-per-line in a file
esl-sfetch -f sequences.fa ids.txt > subset.fa
# Fetch a subsequence range from one record
esl-sfetch -c 23..100 sequences.fa seq123 > subseq.fa
Recommended Workflow
- Index the sequence file first:
esl-sfetch --index <sqfile> - Identify the sequence name(s) to extract
- Fetch sequence(s) using either single name or
-fwith a name file - Verify output matches expected sequences
Guardrails
- Sequence file must exist and be readable before indexing or fetching
- Use
-h(not--help) to view available options - Run
--indexon large files before fetching to enable fast lookups -Cchanges the expected format of the name file: each line must carry subsequence coordinates, not just an identifier