Debian Codegraph @

documentation/man/cmfetch.man.in

raw
1 .TH "cmfetch" 1 "@INFERNAL_DATE@" "Infernal @INFERNAL_VERSION@" "Infernal Manual"
2
3 .SH NAME
4 cmfetch - retrieve covariance model(s) from a file
5
6 .SH SYNOPSIS
7
8 .B cmfetch
9 .I [options]
10 .I <cmfile>
11 .I <key>
12 (retrieves CM named <key>)
13
14 .B cmfetch -f
15 .I [options]
16 .I <cmfile>
17 .I <keyfile>
18 (retrieves all CMs listed in <keyfile>)
19
20 .B cmfetch --index
21 .I [options]
22 .I <cmfile>
23 (indexes <cmfile> for fetching)
24
25
26 .SH DESCRIPTION
27
28 .PP
29 Retrieves one or more CMs from an
30 .I <cmfile>
31 (a large Rfam database, for example).
32
33 .PP
34 To enable very fast retrieval, index the
35 .I <cmfile>
36 first, using
37 .B cmfetch --index.
38 The index is a binary file named
39 .I <cmfile>.ssi.
40
41 .PP
42 The default mode is to retrieve a single CM by name
43 or accession, called the
44 .I <key>.
45 For example:
46
47 .nf
48 % cmfetch Rfam.cm tRNA
49 % cmfetch Rfam.cm RF00005
50 .fi
51
52 .PP
53 With the
54 .I -f
55 option, a
56 .I <keyfile>
57 containing a list of one or more keys is read instead.
58 The first whitespace-delimited field on each non-blank non-comment
59 line of the
60 .I <keyfile>
61 is used as a
62 .I <key>,
63 and any remaining data on the line is ignored. This allows
64 a variety of whitespace delimited datafiles to be used
65 as
66 .I <keyfile>s.
67
68 .PP
69 When using
70 .I -f
71 and a
72 .I <keyfile>,
73 if
74 .B <cmfile>
75 has been indexed, the keys are retrieved in the order
76 they occur in the
77 .I <keyfile>,
78 but if
79 .B <cmfile>
80 isn't indexed, keys are retrieved in the order they occur
81 in the
82 .B <cmfile>.
83 This is a side effect of an implementation that allows
84 multiple keys to be retrieved even if the
85 .B <cmfile>
86 is a nonrewindable stream, like a standard input pipe.
87
88 .PP
89 In normal use
90 (without
91 .I --index
92 or
93 .I -f
94 options),
95 .I <cmfile>
96 may be '-' (dash), which
97 means reading input from
98 .I stdin
99 rather than a file.
100 With the
101 .I --index
102 option,
103 .I <cmfile>
104 may not be '-'; it does not make sense
105 to index a standard input stream.
106 With the
107 .I -f
108 option,
109 either
110 .I <cmfile>
111 or
112 .I <keyfile>
113 (but not both) may be '-'.
114 It is often particularly useful to read
115 .I <keyfile>
116 from standard input, because this allows
117 use to use arbitrary command line invocations to
118 create a list of CM names or accessions, then fetch them all
119 to a new file, just with one command.
120
121 .PP
122 By default, the CM is printed to standard output in Infernal-1.1 format.
123
124 .SH OPTIONS
125
126 .TP
127 .B -h
128 Help; print a brief reminder of command line usage and all available
129 options.
130
131 .TP
132 .B -f
133 The second commandline argument is a
134 .I <keyfile>
135 instead of a single
136 .I <key>.
137 The first field on each line of the
138 .I <keyfile>
139 is used as a retrieval
140 .I <key>
141 (a CM name or accession).
142 Blank lines and comment lines (that start with
143 a # character) are ignored.
144
145 .TP
146 .BI -o " <f>"
147 Output CM(s) to file
148 .I <f>
149 instead of to standard output.
150
151 .TP
152 .B -O
153 Output CM(s) to individual file(s) named
154 .I <key>
155 instead of standard output.
156
157 .TP
158 .B --index
159 Instead of retrieving one or more profiles from
160 .I <cmfile>,
161 index the
162 .I <cmfile>
163 for future retrievals.
164 This creates a
165 .I <cmfile>.ssi
166 binary index file.
167
168
169 .SH SEE ALSO
170
171 See
172 .B infernal(1)
173 for a master man page with a list of all the individual man pages
174 for programs in the Infernal package.
175
176 .PP
177 For complete documentation, see the user guide that came with your
178 Infernal distribution (Userguide.pdf); or see the Infernal web page
179 (@INFERNAL_URL@).
180
181
182 .SH COPYRIGHT
183
184 .nf
185 @INFERNAL_COPYRIGHT@
186 @INFERNAL_LICENSE@
187 .fi
188
189 For additional information on copyright and licensing, see the file
190 called COPYRIGHT in your Infernal source distribution, or see the Infernal
191 web page
192 (@INFERNAL_URL@).
193
194 .SH AUTHOR
195
196 .nf
197 http://eddylab.org
198 .fi
199
200
201