Debian Codegraph @

hmmer/easel/miniapps/esl-sfetch.man.in

raw
1 .TH "esl\-sfetch" 1 "@EASEL_DATE@" "Easel @EASEL_VERSION@" "Easel Manual"
2
3 .SH NAME
4 esl\-sfetch \- retrieve (sub-)sequences from a sequence file
5
6 .SH SYNOPSIS
7
8 .nf
9 \fBesl\-sfetch\fR [\fIoptions\fR] \fIseqfile key\fR
10 (retrieve a single sequence by key)
11
12 \fBesl\-sfetch \-c \fR\fIfrom\fR\fB..\fR\fIto \fR[\fIoptions\fR]\fI seqfile key\fR
13 (retrieve a single subsequence by key and coords)
14
15 \fBesl\-sfetch \-f \fR[\fIoptions\fR] \fIseqfile keyfile\fR
16 (retrieve multiple sequences using a file of keys)
17
18 \fBesl\-sfetch \-Cf \fR[\fIoptions\fR] \fIseqfile subseq\-coord\-file\fR
19 (retrieve multiple subsequences using file of keys and coords)
20
21 \fBesl\-sfetch \-\-index\fR\fI msafile\fR
22 (index a sequence file for retrievals)
23 .fi
24
25
26 .SH DESCRIPTION
27
28 .PP
29 .B esl\-sfetch
30 retrieves one or more sequences or subsequences from
31 .IR seqfile .
32
33 .PP
34 The
35 .I seqfile
36 must be indexed using
37 \fBesl\-sfetch \-\-index\fR\fI seqfile\fR.
38 This creates an SSI index file
39 .IR seqfile .ssi.
40
41 .PP
42 To retrieve a single complete sequence, do
43 \fBesl\-sfetch\fR\fI seqfile key\fR,
44 where
45 .I key
46 is the name or accession of the desired sequence.
47
48 .PP
49 To retrieve a single subsequence rather than a complete
50 sequence, use the
51 \fB\-c \fR\fIstart\fR..\fIend\fR
52 option to provide
53 .I start
54 and
55 .I end
56 coordinates. The
57 .I start
58 and
59 .I end
60 coordinates are provided as one string, separated
61 by any nonnumeric, nonwhitespace character or characters you like;
62 see the
63 .B \-c
64 option below for more details.
65
66 .PP
67 To retrieve more than one complete sequence at once, you may use the
68 .B \-f
69 option, and the second command line argument will specify the
70 name of a
71 .I keyfile
72 that contains a list of names or accessions, one per line; the first
73 whitespace-delimited field on each line of this file is parsed as the
74 name/accession.
75
76 .PP
77 To retrieve more than one subsequence at once, use the
78 .B \-C
79 option in addition to
80 .BR \-f ,
81 and now the second argument is parsed as a list of subsequence
82 coordinate lines. See the
83 .B \-C
84 option below for more details, including the format of these lines.
85
86
87 .PP
88 In DNA/RNA files, you may extract (sub-)sequences in reverse complement
89 orientation in two different ways: either by providing a
90 .I from
91 coordinate that is greater than
92 .IR to ,
93 or by providing the
94 .I \-r
95 option.
96
97 .PP
98 When the
99 .B \-f
100 option is used to do multiple (sub-)sequence retrieval, the file
101 argument may be \- (a single dash), in which case the list of
102 names/accessions (or subsequence coordinate lines) is read from
103 standard input. However, because a standard input stream can't be SSI indexed,
104 (sub-)sequence retrieval from stdin may be slow.
105
106
107 .SH OPTIONS
108
109 .TP
110 .B \-h
111 Print brief help; includes version number and summary of
112 all options, including expert options.
113
114 .TP
115 .BI \-c " coords"
116 Retrieve a subsequence with start and end coordinates specified by the
117 .I coords
118 string. This string consists of start
119 and end coordinates separated
120 by any nonnumeric, nonwhitespace character or characters you like;
121 for example,
122 \fB\-c 23..100\fR,
123 \fB\-c 23/100\fR, or
124 \fB\-c 23\-100\fR
125 all work. To retrieve a suffix of a subsequence, you
126 can omit the
127 .I end
128 ; for example,
129 .B \-c 23:
130 would work.
131 To specify reverse complement (for DNA/RNA sequence),
132 you can specify
133 .I from
134 greater than
135 .IR to ;
136 for example,
137 .B \-c 100..23
138 retrieves the reverse complement strand from 100 to 23.
139
140 .TP
141 .B \-f
142 Interpret the second argument as a
143 .I keyfile
144 instead of as just one
145 .I key.
146 The first whitespace-limited field on each line of
147 .I keyfile
148 is interpreted as a name or accession to be fetched.
149 This option doesn't work with the
150 .B \-\-index
151 option. Any other fields on a line after the first one are
152 ignored. Blank lines and lines beginning with # are ignored.
153
154 .TP
155 .BI \-o " <f>"
156 Output retrieved sequences to a file
157 .I <f>
158 instead of to stdout.
159
160
161 .TP
162 .BI \-n " <s>"
163 Rename the retrieved (sub-)sequence
164 .IR <s> .
165 Incompatible with
166 .BR \-f .
167
168 .TP
169 .B \-r
170 Reverse complement the retrieved (sub-)sequence. Only accepted for
171 DNA/RNA sequences.
172
173 .TP
174 .B \-C
175 Multiple subsequence retrieval mode, with
176 .B \-f
177 option (required). Specifies that the second command line argument
178 is to be parsed as a subsequence coordinate file, consisting of
179 lines containing four whitespace-delimited fields:
180 .IR new_name ,
181 .IR from ,
182 .IR to ,
183 .IR name/accession .
184 For each such line, sequence
185 .I name/accession
186 is found, a subsequence
187 \fIfrom\fR..\fIto\fR is extracted,
188 and the subsequence is renamed
189 .I new_name
190 before being output.
191 Any other fields after the first four are ignored. Blank lines
192 and lines beginning with # are ignored.
193
194
195 .TP
196 .B \-O
197 Output retrieved sequence to a file named
198 .IR key .
199 This is a convenience for saving some typing:
200 instead of
201 .nf
202 \fB% esl\-sfetch \-o SRPA_HUMAN swissprot SRPA_HUMAN
203 .fi
204 you can just type
205 .nf
206 \fB% esl\-sfetch \-O swissprot SRPA_HUMAN
207 .fi
208 The
209 .B \-O
210 option only works if you're retrieving a
211 single alignment; it is incompatible with
212 .BR \-f .
213
214 .TP
215 .B \-\-index
216 Instead of retrieving a
217 .I key,
218 the special command
219 .B esl\-sfetch \-\-index
220 .I seqfile
221 produces an SSI index of the names and accessions
222 of the alignments in
223 the
224 .I seqfile.
225 Indexing should be done once on the
226 .I seqfile
227 to prepare it for all future fetches.
228
229
230 .SH EXPERT OPTIONS
231
232 .TP
233 .BI \-\-informat " <s>"
234 Assert that
235 .I seqfile
236 is in format
237 .IR <s> ,
238 bypassing format autodetection.
239 Common choices for
240 .I <s>
241 include:
242 .BR fasta ,
243 .BR embl ,
244 .BR genbank.
245 Alignment formats also work;
246 common choices include:
247 .BR stockholm ,
248 .BR a2m ,
249 .BR afa ,
250 .BR psiblast ,
251 .BR clustal ,
252 .BR phylip .
253 For more information, and for codes for some less common formats,
254 see main documentation.
255 The string
256 .I <s>
257 is case-insensitive (\fBfasta\fR or \fBFASTA\fR both work).
258
259
260
261 .SH SEE ALSO
262
263 .nf
264 @EASEL_URL@
265 .fi
266
267 .SH COPYRIGHT
268
269 .nf
270 @EASEL_COPYRIGHT@
271 @EASEL_LICENSE@
272 .fi
273
274 .SH AUTHOR
275
276 .nf
277 http://eddylab.org
278 .fi