Debian Codegraph @

easel/miniapps/esl-reformat.man.in

raw
1 .TH "esl\-reformat" 1 "@EASEL_DATE@" "Easel @EASEL_VERSION@" "Easel Manual"
2
3 .SH NAME
4 esl\-reformat \- convert sequence file formats
5
6 .SH SYNOPSIS
7 .B esl\-reformat
8 [\fIoptions\fR]
9 .I format
10 .I seqfile
11
12
13 .SH DESCRIPTION
14
15 .PP
16 .B esl\-reformat
17 reads the sequence file
18 .I seqfile
19 in any supported format, reformats it
20 into a new format specified by
21 .IR format ,
22 then outputs the reformatted text.
23
24 .PP
25 The
26 .I format
27 argument must (case-insensitively) match a supported sequence file format.
28 Common choices for
29 .I format
30 include:
31 .BR fasta ,
32 .BR embl ,
33 .BR genbank.
34 If
35 .I seqfile
36 is an alignment file,
37 alignment output formats also work.
38 Common choices include:
39 .BR stockholm ,
40 .BR a2m ,
41 .BR afa ,
42 .BR psiblast ,
43 .BR clustal ,
44 .BR phylip .
45 For more information, and for codes for some less common formats,
46 see main documentation.
47 The string
48 .I <s>
49 is case-insensitive (\fBfasta\fR or \fBFASTA\fR both work).
50
51 .PP
52 Unaligned format files cannot be reformatted to
53 aligned formats.
54 However, aligned formats can be reformatted
55 to unaligned formats, in which case gap characters are
56 simply stripped out.
57
58 .SH OPTIONS
59
60 .TP
61 .B \-d
62 DNA; convert U's to T's, to make sure a nucleic acid
63 sequence is shown as DNA not RNA. See
64 .B \-r.
65
66
67 .TP
68 .B \-h
69 Print brief help; includes version number and summary of
70 all options, including expert options.
71
72
73 .TP
74 .B \-l
75 Lowercase; convert all sequence residues to lower case.
76 See
77 .BR \-u .
78
79
80 .TP
81 .B \-n
82 For DNA/RNA sequences, converts any character that's not unambiguous
83 RNA/DNA (e.g. ACGTU/acgtu) to an N. Used to convert IUPAC ambiguity
84 codes to N's, for software that can't handle all IUPAC codes (some
85 public RNA folding codes, for example). If the file is an alignment,
86 gap characters are also left unchanged. If sequences are not
87 nucleic acid sequences, this option will corrupt the data in
88 a predictable fashion.
89
90
91 .TP
92 .BI \-o " <f>"
93 Send output to file
94 .I <f>
95 instead of stdout.
96
97
98 .TP
99 .B \-r
100 RNA; convert T's to U's, to make sure a nucleic acid
101 sequence is shown as RNA not DNA. See
102 .BR \-d .
103
104
105 .TP
106 .B \-u
107 Uppercase; convert all sequence residues to upper case.
108 See
109 .BR \-l .
110
111
112 .TP
113 .B \-x
114 For DNA sequences, convert non-IUPAC characters (such as X's) to N's.
115 This is for compatibility with benighted people who insist on using X
116 instead of the IUPAC ambiguity character N. (X is for ambiguity
117 in an amino acid residue).
118 .IP
119 Warning: like the
120 .B \-n
121 option, the code doesn't check that you are actually giving it DNA. It
122 simply literally just converts non-IUPAC DNA symbols to N. So if you
123 accidentally give it protein sequence, it will happily convert most
124 every amino acid residue to an N.
125
126
127
128
129 .SH EXPERT OPTIONS
130
131
132 .TP
133 .BI \-\-gapsym " <c>"
134 Convert all gap characters to
135 .IR <c> .
136 Used to prepare alignment files for programs with strict
137 requirements for gap symbols. Only makes sense if
138 the input
139 .I seqfile
140 is an alignment.
141
142 .TP
143 .BI \-\-informat " <s>"
144 Assert that input
145 .I seqfile
146 is in format
147 .IR <s> ,
148 bypassing format autodetection.
149 Common choices for
150 .I <s>
151 include:
152 .BR fasta ,
153 .BR embl ,
154 .BR genbank.
155 Alignment formats also work;
156 common choices include:
157 .BR stockholm ,
158 .BR a2m ,
159 .BR afa ,
160 .BR psiblast ,
161 .BR clustal ,
162 .BR phylip .
163 For more information, and for codes for some less common formats,
164 see main documentation.
165 The string
166 .I <s>
167 is case-insensitive (\fBfasta\fR or \fBFASTA\fR both work).
168
169 .TP
170 .B \-\-mingap
171 If
172 .I seqfile
173 is an alignment, remove any columns that contain 100% gap or missing
174 data characters, minimizing the overall length of the alignment.
175 (Often useful if you've extracted a subset of aligned sequences from a
176 larger alignment.)
177
178 .TP
179 .B \-\-keeprf
180 When used in combination with
181 .BR \-\-mingap ,
182 never remove a column that is not a gap in the reference (#=GC RF)
183 annotation, even if the column contains 100% gap characters in
184 all aligned sequences. By default with
185 .BR \-\-mingap ,
186 nongap RF columns that are 100% gaps in all sequences are removed.
187
188 .TP
189 .B \-\-nogap
190 Remove any aligned columns that contain any gap or missing data
191 symbols at all. Useful as a prelude to phylogenetic analyses, where
192 you only want to analyze columns containing 100% residues, so you want
193 to strip out any columns with gaps in them. Only makes sense if the
194 file is an alignment file.
195
196 .TP
197 .B \-\-wussify
198 Convert RNA secondary structure annotation strings (both consensus
199 and individual) from old "KHS" format, ><, to the new WUSS notation,
200 <>. If the notation is already in WUSS format, this option will screw it
201 up, without warning. Only SELEX and Stockholm format files have
202 secondary structure markup at present.
203
204 .TP
205 .B \-\-dewuss
206 Convert RNA secondary structure annotation strings from the new
207 WUSS notation, <>, back to the old KHS format, ><. If the annotation
208 is already in KHS, this option will corrupt it, without warning.
209 Only SELEX and Stockholm format files have secondary structure
210 markup.
211
212 .TP
213 .B \-\-fullwuss
214 Convert RNA secondary structure annotation strings from simple
215 (input) WUSS notation to full (output) WUSS notation.
216
217 .TP
218 .BI \-\-replace " <s>"
219 .I <s>
220 must be in the format
221 .I <s1>:<s2>
222 with equal numbers of characters in
223 .I <s1>
224 and
225 .I <s2>
226 separated by a ":" symbol. Each character from
227 .I <s1>
228 in the input file will be replaced by its counterpart (at the same
229 position) from
230 .IR <s2> .
231 Note that special characters in
232 .I <s>
233 (such as "~") may need to be prefixed by
234 a "\\" character.
235
236 .TP
237 .B \-\-small
238 Operate in small memory mode for input alignment files in
239 Pfam format. If not used, each alignment is stored in memory so the
240 required memory will be roughly the size of the largest alignment
241 in the input file. With
242 .BR \-\-small ,
243 input alignments are not stored in memory.
244 This option only works in combination with
245 .B \-\-informat pfam
246 and output format
247 .I pfam
248 or
249 .IR afa .
250
251
252
253 .SH SEE ALSO
254
255 .nf
256 @EASEL_URL@
257 .fi
258
259 .SH COPYRIGHT
260
261 .nf
262 @EASEL_COPYRIGHT@
263 @EASEL_LICENSE@
264 .fi
265
266 .SH AUTHOR
267
268 .nf
269 http://eddylab.org
270 .fi
271