esl-sfetch(1)
π esl-sfetch β straight from the Easel manual, bestie π
okay so. this is the manual page for esl-sfetch, coming at you from the Easel manual set. it is iconic, it is useful, and by the end of this you will be fetching sequences like the main character you are. no cap. π¦
β¨ NAME β¨
esl-sfetch β grab (sub-)sequences out of a sequence file, like a lil' sequence vending machine πΈ
β¨ SYNOPSIS β¨
esl-sfetch [options] seqfile key
(retrieve a single sequence by key)
esl-sfetch -c from..to [options] seqfile key
(retrieve a single subsequence by key and coords)
esl-sfetch -f [options] seqfile keyfile
(retrieve multiple sequences using a file of keys)
esl-sfetch -Cf [options] seqfile subseq-coord-file
(retrieve multiple subsequences using file of keys and coords)
esl-sfetch --index msafile
(index a sequence file for retrievals)
β¨ DESCRIPTION β¨
so esl-sfetch pulls one or more sequences, or subsequences, out of seqfile. that's the whole vibe. π
but first β the tea β β your seqfile must be indexed first, using esl-sfetch --index seqfile. that makes an SSI index file called seqfile.ssi. do it once, thank yourself forever.
wanna grab one whole sequence? just do esl-sfetch seqfile key, where key is the name or the accession of the sequence you're obsessed with. simple as.
wanna grab one subsequence instead of the whole thing? use the -c start..end option and hand over start and end coordinates. those two coords go in as one single string, separated by any nonnumeric, nonwhitespace character (or characters!) you feel like β pick your fave separator, it's your world. more deets down in the -c option below π
wanna grab more than one complete sequence at once? that's the -f option, and now the second command line argument is the name of a keyfile β a file holding a list of names or accessions, one per line. the first whitespace-delimited field on each line is what gets parsed as the name/accession. periodt.
wanna grab more than one subsequence at once? add -C on top of -f, and now that second argument gets parsed as a list of subsequence coordinate lines instead. the format of those lines lives down in the -C option below β go peek π
now for the DNA/RNA girlies 𧬠β you can extract (sub-)sequences in reverse complement orientation in two different ways: either hand over a from coordinate that's greater than to, or just use the -r option. two paths, same slay.
and when you're using -f for multiple (sub-)sequence retrieval, the file argument can be - (a single dash), and then the list of names/accessions (or subsequence coordinate lines) gets read from standard input instead. cute! BUT β and this is the important part, bestie β a standard input stream can't be SSI indexed, so (sub-)sequence retrieval from stdin may be slow. i'm just saying. π
β¨ OPTIONS β¨
-hβ print a brief help message, and yeah it throws in the version number plus a summary of all the options, even the expert ones. a little snack. π-c coordsβ retrieve a subsequence, with start and end coordinates given by thecoordsstring. that string is just start and end coords separated by any nonnumeric, nonwhitespace character or characters you like; for example,-c 23..100,-c 23/100, or-c 23-100all work. want a suffix of a subsequence? you can straight up omit the end; for example,-c 23:works. and to specify reverse complement (for DNA/RNA sequence), you can specifyfromgreater thanto; for example,-c 100..23retrieves the reverse complement strand from 100 to 23. β¨-fβ interpret the second argument as a keyfile instead of just one key. the first whitespace-limited field on each line ofkeyfileis interpreted as a name or accession to be fetched. β οΈ this option doesn't work with the--indexoption. any other fields on a line after the first one are ignored. blank lines and lines beginning with#are ignored. so you can comment your keyfiles, bestie, live your truth.-o <f>β output the retrieved sequences to a file<f>instead of to stdout.-n <s>β rename the retrieved (sub-)sequence<s>. π« incompatible with-f.-rβ reverse complement the retrieved (sub-)sequence. only accepted for DNA/RNA sequences. π§¬-Cβ multiple subsequence retrieval mode, with the-foption (required). this says the second command line argument is to be parsed as a subsequence coordinate file, made of lines containing four whitespace-delimited fields:new_name,from,to,name/accession. for each such line, the sequencename/accessionis found, a subsequencefrom..tois extracted, and that subsequence gets renamed tonew_namebefore it's output. any other fields after the first four are ignored. blank lines and lines beginning with#are ignored. π-Oβ output the retrieved sequence to a file namedkey. this is a convenience so you save some typing: instead of
% esl-sfetch -o SRPA_HUMAN swissprot SRPA_HUMAN
you can just type
% esl-sfetch -O swissprot SRPA_HUMAN
the -O option only works if you're retrieving a single alignment; it is incompatible with -f.
--indexβ instead of retrieving a key, the special commandesl-sfetch --index seqfileproduces an SSI index of the names and accessions of the alignments in theseqfile. indexing should be done once on theseqfileto prepare it for all future fetches. do it once, fetch forever. π
β¨ EXPERT OPTIONS β¨
these are for when you're feeling fancy, bestie. π
--informat <s>β assert thatseqfileis in format<s>, bypassing format autodetection. common choices for<s>include:fasta,embl,genbank. alignment formats also work; common choices include:stockholm,a2m,afa,psiblast,clustal,phylip. for more information, and for codes for some less common formats, see the main documentation. the string<s>is case-insensitive (fastaorFASTAboth work). π
β¨ SEE ALSO β¨
β¨ COPYRIGHT β¨
Copyright (C) 2020 Howard Hughes Medical Institute.
Freely distributed under the BSD open source license.
β¨ AUTHOR β¨
and that's the whole page, bestie π«Ά this was Easel 0.48, from Nov 2020 β go forth and fetch, you absolute legend. πβ¨
π¦ where this page comes from
- fedora 43: hmmer-easel 3.3.2-11.fc43 Β· GPL-3.0-only
- fedora 44: hmmer-easel 3.3.2-12.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms