Debian Codegraph @

rmark/00README

raw
1 Benchmarking methodology used internally in Infernal testing: the
2 "rmark" benchmark, based on HMMER's "profmark" benchmark.
3
4
5 Table of contents:
6 1. Overview of files in the rmark directory.
7 2. rmark-create: creating a new benchmark dataset
8 3. format of {.tbl,.msa,.fa,.pfa,.pos,.ppos} files in a benchmark dataset
9 4. finding summary statistics of a benchmark dataset
10 5. rmark-master.pl: running a rmark benchmark, in parallel using SGE qsub
11 6. rmark-<benchmark>: benchmark driver scripts
12 7. format of benchmark results output files
13 8. Calculating benchmark results
14
15
16 ================================================================
17 = 1. Overview of files
18 ================================================================
19
20 rmark-create.c : Creates a new benchmark dataset.
21
22 rmark-master.pl : Master script that parallelizes the running of a benchmark.
23
24 x-cmsearch : Infernal cmsearch benchmark
25
26 x-nhmmer : H3 nhmmer benchmark (subsidiary to rmark-master.pl)
27
28 rmark-idpositives.pl : Helper script called by all x-* drivers to identify
29 positives test sequences in a hit list
30 returned by a search.
31
32 rmark-pp.sh : Simple shell script that calls rmark-rocplot,
33 rmark-mer.pl and rmark-time.pl for a finished
34 full benchmark.
35
36 rmark-po-pp.sh : Simple shell script that calls rmark-mer.pl and
37 rmark-time.pl for a finished positives-only
38 benchmark.
39
40 rmark-mer.pl : Computes per-family and summary MER (minimum error
41 rate) statistics for a finished benchmark.
42
43 rmark-time.pl : Simple script that reports total running time of
44 a benchmark. Relies on "CPU time" lines in benchmark
45 ".search" output. (May not be work for
46 non-Infernal, non-HMMER programs.)
47
48 rmark-rocplot.c : Constructs ROC plot of results, with bootstrapped
49 confidence intervals.
50
51 rmark-Rroc.pl : Creates a pdf ROC plot using R from .xy output of
52 rmark-rocplot, .time output from rmark-time.pl
53 and .mer output from rmark-mer.pl. The time and
54 MER are included in the ROC curve's legend.
55
56 rmark3-bg.hmm : The 15-state HMM file used to generate
57 the background in the rmark-2 and rmark3
58 datasets. Used as input to rmark-create.
59
60 ================================================================
61 = 2. rmark-create: creating a new benchmark dataset
62 ================================================================
63
64 rmark-create is compiled from ANSI C source rmark-create.c; see
65 Makefile.in for build.
66
67 Usage: ./rmark-create <benchmark_prefix> <Stockholm MSA file> <HMM file>
68 Example: ./rmark-create rmark3 Rfam10.seed rmark3-bg.hmm
69
70 Creates six output files:
71 <benchmark_prefix>.tbl - table summarizing the benchmark
72 <benchmark_prefix>.msa - MSA queries, stockholm format
73 <benchmark_prefix>.fa - benchmark sequence targets, fasta format
74 <benchmark_prefix>.pfa - test sequence targets, fasta format
75 <benchmark_prefix>.pos - table summarizing positive test set
76 embedded within benchmark seqs (.fa file)
77 <benchmark_prefix>.ppos - table summarizing positive test set
78 non-embedded (.pfa file)
79 The format of these files is described in the following section.
80
81 Briefly: each input alignment in the <Stockholm MSA file> is split
82 into a query alignment and a nonredundant set of test sequences by two
83 single-linkage clustering steps, such that no test sequence has >= 60%
84 identity to any query sequence and no test sequence is >= 70%
85 identical to any other test sequence. Benchmark target sequences are
86 constructed by embedding >= 0 test sequences into large
87 chromosome-like nonhomologous sequences of length 1 Mb.
88 Nonhomologous segments are generated from a 15 state
89 fully-connected HMM in the file <rmark3-bg.hmm>. This HMM file was
90 trained on 30 Mb of randomly selected 100 Kb chunks of real genomic
91 sequence, 10 Mb each from archaeal, bacterial and eukaryotic genomes.
92 The transitions to end states are uniformly set as 0.00001 so that the
93 expected length of emitted sequences is 100 Kb. For each target
94 sequence, sequences are emitted from the HMM and concatenated until 1
95 Mb is reached (the final emitted sequence is truncated to exactly
96 reach 1 Mb). Embedding of test sequences is performed by randomly
97 selecting insertion positions, and orientations (Watson or Crick
98 strand) and inserting the full test sequence into the existing HMM
99 emitted sequence. The full benchmark sequences (negatives with
100 embedded positives) are therefore more than 1 Mb each.
101
102 In more detail, including options that change the default benchmark
103 construction protocol, the procedure is as follows:
104
105 : for each MSA in <Stockholm MSA file>:
106
107 : Filter out sequence "fragments".
108 Defined as sequences < x*average length (in residues); default
109 x=0.70; controlled by -F option.
110
111 : Try to split into a training set and test set such that no test
112 sequence has >= x% identity to any training sequence. Uses
113 efficient single-linkage-clustering at x threshold; defines
114 largest cluster as training set, all other clusters as test
115 set. Pairwise % identity as defined by <esl_dst_XPairId()> on the
116 given alignment. Default x=60% identity; controlled by -1 <x>
117 option.
118
119 : For the remaining test sequences, remove redundancy by performing
120 another single linkage clustering by percent identity, at another
121 threshold x. Default x=70%; controlled by -2 <x> option. For each
122 cluster, one test sequence is chosen at random as a
123 representative.
124
125 : If no test sequences have been identified that meet these
126 criteria, fail and move on to the next MSA. (For instance, if all
127 the sequences in the MSA are highly identical, don't bother using
128 this MSA for a benchmark; it's too easy.) The minimum number of
129 test sequences required for a family to be included is 1 by
130 default, but it is changeable with the -E option.
131
132 : The training set is preserved in its original alignment, and
133 written to <benchmark_prefix>.msa.
134
135 : Benchmark sequences are now constructed by embedding the test
136 sequences in nonhomologous sequence generated by the HMM in the
137 <HMM file> as follows. Given a number <N> of benchmark sequences
138 to create (10 by default, settable with -N), each of total length
139 <L> (1.000,000 nt by default, settable with -L):
140
141 : Construct each of the <N> benchmark sequences by first
142 emitting "nonhomologous" sequences from the HMM.
143
144 : Continue to emit sequences and concatenate them until a total
145 sequence length > <L> is reached. Truncate the sequence so
146 that it is exactly <L> residues.
147
148 : At this point, <N> benchmark sequences of length <L> have
149 been created.
150
151 : The final step is to embed the test sequences within the
152 benchmark sequences. For each test sequence, randomly choose
153 one of the <N> benchmark sequences and a position (1..<L>)
154 after which to embed the sequence. Also randomly choose to
155 embed it in either the positive or negative strand. If the
156 negative strand is chosen, the test sequence will be reverse
157 complemented prior to embedding. (No two test sequences can
158 be embedded at the same position in the same benchmark
159 sequence.) Embed the sequence by inserting it into the chosen
160 sequence after the chosen position. Details on where each
161 test sequence is embedded are written to the
162 <benchmark_prefix>.pos file.
163
164 More than one test sequence can be embedded in each benchmark
165 sequence. Because test sequences are inserted into the
166 benchmark sequences (rather than used to replace existing
167 subsequences in the benchmark sequences), the embedding
168 procedure increases the length of the benchmark sequences.
169 The final total length of the benchmark sequences will be <N>
170 * <L> + <summed length of embedded test sequences>.
171
172 : The benchmark sequences are then written in FASTA format to
173 the <benchmark_prefix>.fa file.
174
175 : The test sequences by themselves are then written in FASTA
176 format to the <benchmark_prefix>.pfa. None of these will
177 have been reverse complemented. This file can be used to run
178 a quick 'positives-only' version of the benchmark.
179
180 ================================================================
181 = 3. Format of {.tbl,.msa,.fa,.pfa,.pos,.ppos} files in a benchmark dataset
182 ================================================================
183
184 The .tbl file is used by rmark-master.pl as a list of MSA queries in
185 the benchmark. Each line has seven whitespace-delimited fields:
186 <query msa name> <avg pid> <alen> <nseq> <nfrags> <nseq_train> <nseq_test>
187 For example:
188 5_8S_rRNA 68% 197 61 0 60 1
189 U1 66% 200 100 0 93 5
190 U2 60% 261 211 0 197 13
191 tRNA 44% 117 967 0 933 20
192
193 In more detail, these eight fields are:
194 <query_msa_name> : name of the MSA query, as given in original
195 <Stockholm MSA file>
196
197 <avg pid> : average % id in the training set alignment, as
198 calculated by esl_dst_XAverageId().
199
200 <alen> : length of the training set alignment in columns.
201
202 <nfrags> : number of sequences that were excluded from the
203 original alignment because they appeared to be
204 fragments.
205
206 <nseq_train> : number of sequences in the training set alignment
207 saved to <benchmark_prefix>.msa
208
209 <ntest> : number of test sequences embedded in the
210 benchmark sequences saved to
211 <benchmark_prefix>.fa. Raw versions
212 (non-embedded) of these test sequences are saved
213 to <benchmark_prefix>.pfa.
214
215 The .msa file is a Stockholm file containing all the query alignments.
216
217 The .fa file is a FASTA file containing the benchmark sequences, which
218 are nonhomologous sequence with embedded test sequences, constructed
219 as described in section (2) above.
220
221 The .pfa file is a FASTA file containing only the test sequences.
222
223 The .pos file is a log of where the test sequences are embedded in the
224 benchmark sequences. Each line of this file has 5 fields:
225
226 <test seq name> <benchmark seq name> <source> <start> <stop>
227
228
229 <test seq name> : name of the test sequence. These are constructed
230 as <MSA name>/<#>, where <#> ranges from 1 to the
231 number of test sequences chosen from <MSA name>
232 (i.e. 1..<ntest> from .tbl file).
233
234 <benchmark seq name> : the name of the benchmark sequence <test seq
235 name> is embedded within.
236
237 <source> : name of the test sequence in the original MSA
238
239 <start> : start coord in the benchmark sequence
240 <stop> : end coord in the benchmark sequence, if <start>
241 is greater than <stop> then the test sequence is
242 reverse complemented within <benchmark seq name>.
243
244 The .ppos file has the same format as the .pos file, but the test seq
245 name and <start>, <stop> correspond to the test sequences in the .pfa
246 file, not the benchmark sequences in the .fa file.
247
248 ================================================================
249 = 4. Finding summary statistics of a benchmark dataset
250 ================================================================
251
252 Number of query alignments: wc -l <benchmark_prefix>.tbl
253 or esl-alistat -a <benchmark_prefix>.msa
254
255 Number of positives: wc -l <benchmark_prefix>.pos
256
257 Benchmark sequence length dist: esl-seqstat <benchmark_prefix>.fa
258
259 Test sequence length dist: esl-seqstat <benchmark_prefix>.pfa
260
261
262
263 ================================================================
264 = 5. rmark-master.pl: running a rmark benchmark, in parallel using SGE qsub
265 ================================================================
266
267 Usage: ./rmark-master.pl <execdir> <scriptdir> <modeldir> <optsfile> <benchmark_prefix> <benchmark script>
268 Example: ./rmark-master.pl ~/infernal/src ~/infernal/rmark ~/db/rmark3-1p1-models/ default.opts rmark3 ./x-cmsearch
269
270 rmark-master.pl is a wrapper that coarse-grain parallelizes a
271 benchmark run for our SGE queue.
272
273 This would typically be run in a notebook directory, which would have
274 symlinks to the rmark-master.pl script the driver x-* scripts, and
275 also would have the <benchmark_prefix>.{tbl,msa,fa,pfa,pos,ppos} files
276 and calibrated CM files either present or symlinked.
277
278 For each benchmark you run that day, you'd have a different
279 <resultdir>; for example, you might run a "i1p1" and "i1dev"
280 benchmark. The <resultdir> name should be short because it is used to
281 construct other names, including the SGE job name.
282
283 The <optsfile> must include a single line which is the options string
284 to be used by the search program. For example: "-Z 20 -E 200".
285
286 The rmark-master.pl creates the <resultdir>, splits the
287 <benchmark_prefix>.tbl file into <nali> separate tbl files called
288 <resultdir>/tbl.<i>, and issues "qsub" commands to run the <benchmark
289 script> on each of these subtables. <nali> is the number of
290 models/families in the benchmark, so one family is put on each
291 benchmark. However, <n> subtables will be created with the -N <n>
292 option.
293
294 The jobs in SGE are named <resultdir>.<i>.
295
296 The <benchmark script> is passed 10 arguments:
297 <execdir> <scriptdir> <modeldir> <resultdir> <optsfile> <subtbl> <benchmark_prefix.msa> <benchmark_prefix.pos> <benchmark_prefix.fa> <outfile>
298 where <subtbl> is <resultdir>/tbl.<i> (the list of queries this
299 parallelized instance of the benchmark driver is supposed to process),
300 and <outfile> is a file named <resultdir>/tbl<i>.out.
301
302 When all the driver script instances are done, there will be <nproc>
303 output files named <resultdir>/tbl<i>.out. These files can be analysed
304 using rmark-pp.sh (for default, full benchmarks) or rmark-po-pp.sh
305 (for positives-only benchmarks, see below).
306
307 rmark-master.pl can also be run in 'positives-only' mode with the '-P'
308 option. In this mode, full benchmark sequences are not searched,
309 rather only test sequences are searched (in the <benchmark_prefix>.pfa
310 sequence file). This is a quick version of the benchmark which gives
311 an upper bound on the full benchmark performance.
312
313 Finally, if <optsfile> contains --mpi, the -M <n> option can be set
314 for rmark-master.pl. This will cause SGE to run MPI with <n> (where
315 <n> <= 8) processors. (We can only do up to 8 b/c I don't know how to
316 make the x-* script run under mpirun, so we have the x-* script call
317 'mpirun' itself on a single node, and thus it can only run on up to
318 the number of cpus per node, which is currently 8 on our cluster.)
319
320 ================================================================
321 = 6. x-<benchmark>: benchmark driver scripts
322 ================================================================
323
324 A driver script gets the 10 arguments as described above:
325
326 <execdir> : path to the directory where the search
327 program executable(s) can be found.
328
329 <scriptdir> : path to the directory where benchmark
330 scripts can be found (namely
331 rmark-idpositives.pl).
332
333 <modeldir> : path to the directory where the model files
334 (.cm or .hmm) can be found. This is
335 necessary b/c CM files often need to be
336 calibrated before running a benchmark.
337
338 <resultdir> : name of the directory that temp files can
339 be placed in, unique to the instantiation
340 of rmark-master.pl that called us, so long
341 as we use names that don't clash with the
342 other <nproc>-1 instances of driver scripts;
343 for example, we can safely create tmp files
344 that start with <queryname>.
345
346 <optsfile> : name of the options file with one line - the
347 string of options to pass to the search program.
348
349 <subtbl> : name of the tbl.<i> file in <resultsdir> that
350 lists the query alignments this instantiation
351 of the driver is supposed to work on.
352
353 <benchmark_prefix.msa> : the benchmark's positives table. This is used
354 in a final post-search step to determine
355 which of the search hits overlap test sequences.
356
357 <benchmark_prefix.pos> : the benchmark's positive and negative sequences;
358 this will be used as the target database for
359 searches the driver runs.
360
361 <benchmark_prefix.fa> : the benchmark sequences, this will be used
362 as the target database for searches the
363 driver runs.
364
365 <outfile> : a whitespace-delimited tabular output file,
366 one line per target sequence, described below.
367
368 The driver will run the search using the options specified in
369 <optsfile> and then call the 'rmark-idpositives.pl' script in
370 <scriptdir> to determine which hits overlap with the embedded test
371 sequences in the benchmark test sequences.
372
373 If a 'positives-only' benchmark is being run (specified with the -P
374 option to rmark-master.pl) then <benchmark_prefix.pfa> will be used
375 instead of <benchmark_prefix.fa>
376
377 ================================================================
378 = 7. format of benchmark results output files
379 ================================================================
380
381 The <nproc> output in files <resultdir>/tbl<i>.out have 7 fields:
382 <E-value> <bit score> <from> <to> <target> <query> <match_string> <strand_string>
383 for example:
384 0.0037 27.7 295646 295578 rmark2 tRNA tRNA/2 same
385 171 10.5 239311 239347 rmark10 tRNA tmRNA/38 opposite
386 3.88 16.6 119616 119703 rmark4 tRNA decoy/0 decoy
387 25.9 13.6 64755 64807 rmark5 tRNA decoy/0 decoy
388
389 <from> and <to> are the coordinates in the target of the hit. If <from
390 is greater than <to>, then the hit is on the negative strand.
391
392 <match_string> indicates whether the hit overlaps a true positive. It
393 includes two tokens separated by a '/': <fam>/<#>. <fam> is either
394 'decoy' or a query name. If 'decoy' the hit overlaps no test sequence
395 (on either strand), if it is a query name the hit overlaps sequence
396 <#> from that query, with <#> corresponding to the index in the
397 <benchmark_prefix.pos> file created with the benchmark.
398
399 <strand_string> is either, "same", "opposite", or "decoy". It will
400 always be "decoy", if <match_string> begins with "decoy". If
401 <match_string> begins with a valid query, <strand_string> will be
402 "same" if the hit is on the same strand as the test sequence, and
403 "opposite" if it is on the opposite strand.
404
405 The output files are created by the rmark-idpositives.pl script in
406 <scriptdir>, which is called by the driver once the search is
407 finished. The <match_string> and <strand_string> fields are added by the
408 rmark-idpositives.pl script. rmark-idpositives.pl takes as input
409 a similar file to the output file but with these two fields missing,
410 as well as the <benchmark_prefix.pos> file. It goes through each hit
411 and determines if it significantly overlaps with a positive test
412 sequence. Significant overlap occurs if the overlap is at least 50% of
413 the shorter of the hit and the test sequence.
414
415 Lines from the output files can be concatenated and sorted by E-value:
416 cat *.out | sort -g
417
418 Analysis scripts can easily tell the difference between a true,
419 false, and "ignored" comparison:
420
421 - if <match_string> begins with "decoy", it's a negative (nonhomologous)
422 comparison.
423
424 - if the first part of <match_string> matches <query> and
425 <strand_string> is "same", it's a true (homologous) comparison.
426
427 - if the first part of <match_string> doesn't match <query> (but
428 also isn't "decoy"), we will ignore the comparison (regardless of
429 whether <strand_string> is "same" or "opposite"). This is a match
430 between a test sequence (or a test sequence's reverse complement)
431 and a query that doesn't correspond to the test sequence; it might
432 be a false hit, but it also might be that the two alignments (the
433 query and the one that generated the test sequence) are
434 homologous.
435
436 Thus it's easy to determine the top-scoring false positive:
437 cat *.out | sort -g | grep decoy | head
438
439
440 ================================================================
441 = 8. Calculating benchmark results
442 ================================================================
443 There are 6 scripts/programs for calculating benchmark results:
444
445 rmark-pp.sh : Simple shell script that calls rmark-rocplot,
446 rmark-mer.pl and rmark-time.pl for a finished
447 full benchmark.
448
449 rmark-po-pp.sh : Simple shell script that calls rmark-mer.pl and
450 rmark-time.pl for a finished positives-only
451 benchmark.
452
453 rmark-mer.pl : Computes per-family and summary MER (minimum error
454 rate) statistics for a finished benchmark.
455
456 rmark-time.pl : Simple script that reports total running time of
457 a benchmark. Relies on "CPU time" lines in benchmark
458 ".search" output. (May not be robust to
459 non-Infernal, non-HMMER programs.)
460
461 rmark-rocplot.c : Constructs ROC plot of results, with bootstrapped
462 confidence intervals.
463
464 rmark-Rroc.pl : Creates a pdf ROC plot using R from .xy output of
465 rmark-rocplot, .time output from rmark-time.pl
466 and .mer output from rmark-mer.pl. The time and
467 MER are included in the ROC curve's legend.
468
469 rmark-multiply-evalues.pl: Very simple perl script that multiples the
470 E-values for all positive hits in the
471 results files by a scalar factor. Useful
472 for simulating larger (or smaller) database
473 searches. Negative hit E-values are
474 unchanged.
475
476 In more detail:
477
478 rmark-pp.sh and rmark-po-pp.sh:
479 ------------------------------
480 Two shell scripts, rmark-pp.sh and rmark-po-pp.sh, can be used to
481 summarize the results of a benchmark. rmark-pp.sh is for full
482 benchmarks (in which the full benchmark sequences were searched), and
483 rmark-po-pp.sh is for positives-only benchmarks (in which only the
484 test sequences were searched). These shell scripts are actually
485 wrappers for the rmark-time.pl, rmark-mer.pl,
486 rmark-multiply-evalues.pl and rmark-roc programs, so you may not need
487 to worry about how to use those scripts if you learn how to use
488 rmark-pp.sh and rmark-po-pp.sh.
489
490 Usage: rmark-pp.sh <benchmark_prefix> <resultdir> <positive E-value multiplier> <path to "rmark" dir with scripts like rmark-mer.pl (e.g. "infernal-1.1rc3/rmark")>
491 Example: rmark-pp.sh rmark3 i1p1-df 1 ~/src/infernal-1.1rc3/rmark
492
493 Usage: rmark-po-pp.sh <benchmark_prefix> <resultdir> <path to "rmark" dir with scripts like rmark-mer.pl (e.g. "infernal-1.1rc3/rmark")>
494 Example: rmark-po-pp.sh rmark3 i1p1 ~/src/infernal-1.1rc3/rmark
495
496 Note regarding E-value multiplication:
497 The <positive E-value multiplier> is used with the
498 rmark-multiply-evalues.pl script to multiplying E-values of all
499 positive hits. This simulates the results in a database of a different
500 size. If x is used as the <positive E-value multiplier>, the resulting
501 (multiplied) E-values will pertain to a database x times the size of
502 the actual database searched (<benchmark_prefix>.fa). The E-values of
503 negatives are not modified. This can be useful to simulate large
504 database benchmarks that would take an impractical amount of time to
505 run. (Alternatively, if x is less than 1, then you're simulating a
506 database smaller than <benchmark_prefix>.fa.) An important assumption
507 here is that the distribution of negative hits is representative -
508 i.e. would be the same in a search of the larger database. Also, if
509 there are few negative hits relative to positives, using a large x
510 value can lead to artifacts in resulting ROC curves.
511
512 rmark-mer.pl and rmark-time.pl:
513 ------------------------------
514 rmark-mer.pl and rmark-time.pl are PERL scripts. rmark-mer.pl takes
515 concatenated output from the drivers sorted by E-value and computes
516 per-query and summary minimum error rates (MER). The MER is the
517 minimum sum of false positives and true negatives at any score
518 threshold. rmark-time.pl takes as input strings matching "^# CPU" from
519 Infernal or HMMER programs and computes the total running time of a
520 benchmark run. (NOTE, rmark-time.pl may not work on all search
521 programs).
522
523 Example usages:
524
525 Full benchmark:
526 ls i1p1-df/*.time | perl rmark-time.pl > i1p1.time
527 cat i1p1-df/*out | sort -g | perl rmark-mer.pl rmark3.pos i1p1.time > i1p02-df/i1p02-df.mer
528
529 Positives-only benchmark:
530 cat po-i1p02-df/*out | sort -g | perl rmark-mer.pl rmark3.ppos > po-i1p02-df/po-i1p02-df.mer
531 grep "^# CPU" po-i1p02-df/*.search | rmark-time.pl > po-i1p02-df/po-i1p02-df.time
532
533 rmark-multiply-evalues.pl:
534 --------------------------
535
536 Usage: perl rmark-multiply-evalues.pl
537 <scaling factor for multiplying E-values of positives>
538
539 Another PERL script. For each line in a results file output from
540 rmark-idpostives.pl (passed into the script via stdin) that is for a
541 positive hit, multiply the E-value by x (where x is equal to <scaling
542 factor for multiplying E-values of positives). This is useful for
543 simulating benchmarks larger than the size of
544 <benchmark_prefix.fa>. See "Note regarding E-value multiplication" at
545 the end of the discussion fo rmark-pp.sh and rmark-po-pp.sh above.
546
547 Example usage:
548 cat i1p1-df/*out | perl rmark-multiply-evalues.pl 100 | sort -g | perl rmark-mer.pl rmark3.pos i1p1-df/i1p1-df.time > i1p1.em100.mer
549
550 rmark-rocplot.c:
551 ----------------
552 rmark-rocplot is compiled from ANSI C source rocplot.c; see Makefile.in for build.
553
554 Usage: ./rmark-rocplot <benchmark_prefix> <sorted .out data>
555 Example: cat *.out | sort -g | ../rocplot rmark3 - > i1p02-df/i1p02-df.xy
556
557 The output is an XMGRACE xydydy file, plotting fractional coverage of
558 the positives (on the Y-axis; range 0..1) versus errors per query (on
559 the X-axis; ranging from 1/(# of models) to 10.0 by default; see --min
560 and --max options). For each point, a 95% confidence interval is
561 denoted by the dydy points, as determined by "Bayesian" bootstrap
562 resampling of the query alignments.
563
564 rmark-Rroc.pl:
565 --------------
566 PDFs of ROC curves from rmark-rocplot can be generated with
567 rmark-Rroc.pl if 'R' is in the user's path.
568
569 First, a list of multiple benchmark runs is typically compiled. Each
570 line of the list file includes three whitespace-delimited fields:
571 <series_name> <resultsdir> <color>
572
573 For example:
574 infernal-1p1-df i1p1-df red
575 infernal-1p1-mid i1p1-mid black
576
577 rmark-Rroc.pl takes this list as one of its command line arguments.
578
579 rmark-Rroc.pl requires specific files with specific names exist. The
580 script will list these files if it is run with no command-line
581 arguments:
582
583 > perl rmark-Rroc.pl
584 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
585 Usage: perl rmark-Rroc.pl [OPTIONS] <listfile> <key (e.g. 1E04)> <pdfname> <1/0 yes/no draw error-bars> <plot title>
586
587 Format of list file:
588 <series_name> <root> <color>
589
590
591 Example:
592 inf1p02-df r2-i1p02 green
593
594 <root>/<root>.em.xy, <root>/<root>.em.mer and <root>/<root>.time must exist
595 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
596 For example, you could run the script with:
597
598 > perl rmark-Rroc.pl today.list 10 today.pdf 1 rmark3-071410
599
600 Let's say today.list is:
601 infernal-1p1-df i1p1-df red
602 infernal-1p1-mid i1p1-mid black
603
604 Then this command requires that the following files exist:
605 i1p1-df/i1p1-df.em10.xy
606 i1p1-df/i1p1-df.em10.mer
607 i1p1-df/i1p1-df.time
608 i1p1-mid/i1p1-mid.em10.xy
609 i1p1-mid/i1p1-mid.em10.mer
610 i1p1-mid/i1p1-mid.time
611
612 These files (.xy, .mer, .time) are typically created by rmark-pp.sh.
613
614 For this example, rmark-Rroc.pl would create the file "today.pdf"
615 which will be a ROC curve with 2 series, infernal 1.1 default, in red,
616 and infernal 1.1 mid-filtering, in black. The legend will include MER
617 and run times for each of the methods.
618
619
620
621
622
623