annotate tools/rdock/bin/ht_protocol_finder.pl @ 3:b02d74d22d05 draft default tip

planemo upload
author marpiech
date Mon, 29 Aug 2016 08:23:52 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
3
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
1 #!/usr/bin/perl -w
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
2
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
3 # Script that simulates the result of a high throughput protocol.
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
4
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
5 if (@ARGV < 4)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
6 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
7 print "Script that simulates the result of a high throughput protocol.\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
8 print "1st) exhaustive docking of a small representative part of the\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
9 print " whole library.\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
10 print "2nd) Store the result of sdreport -t over that exhaustive dock.\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
11 print " in file <sdreport_file> that will be the input of this\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
12 print " script.\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
13 print "3rd) ht_protocol_finder.pl <sdreport_file> <output_file> <thr1max>";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
14 print " <thr1min> <ns1> <ns2>\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
15 print " <ns1> and <ns2> are the number of steps in stage 1 and in\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
16 print " stage 2. If not present, the default values are 5 and 15\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
17 print " <thrmax> and <thrmin> setup the range of thresholds that will\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
18 print " be simulated in stage 1. The threshold of stage 2 depends\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
19 print " on the value of the threshold of stage 1.\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
20 print " An input of -22 -24 will try protocols:\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
21 print " 5 -22 15 -27\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
22 print " 5 -22 15 -28\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
23 print " 5 -22 15 -29\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
24 print " 5 -23 15 -28\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
25 print " 5 -23 15 -29\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
26 print " 5 -23 15 -30\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
27 print " 5 -24 15 -29\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
28 print " 5 -24 15 -30\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
29 print " 5 -24 15 -31\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
30 print " Output of the program is a 7 column values. First column\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
31 print " represents the time. This is a percentage of the time it\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
32 print " would take to do the docking in exhaustive mode, i.e. \n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
33 print " docking each ligand 100 times. Anything\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
34 print " above 12 is too long.\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
35 print " Second column is the first percentage. Percentage of\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
36 print " ligands that pass the first stage.\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
37 print " Third column is the second percentage. Percentage of\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
38 print " ligands that pass the second stage.\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
39 print " The four last columns represent the protocol.\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
40 print " All the protocols tried are written at the end.\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
41 print " The ones for which time is less than 12%, perc1 is\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
42 print " less than 30% and perc2 is less than 5% but bigger than 1%\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
43 print " will have a series of *** after, to indicate they are good choices\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
44 print " WARNING! This is a simulation based in a small set.\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
45 print " The numbers are an indication, not factual values.\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
46 exit (0);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
47 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
48 open (IFILE, $ARGV[0]) || die "cannot open $ARGV[0] for reading: $!";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
49 open (OFILE, ">$ARGV[1]") || die "cannot open $ARGV[1] for writing: $!";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
50 <IFILE>; # read first line
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
51 $line = <IFILE>;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
52 $line =~ /\S+\s+(\S+)\s+\S+\s+(\S+)/;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
53 $prevname = $1;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
54 $inter = $2;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
55 push @tmp, $inter;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
56 $i = 0;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
57 while ($line = <IFILE>)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
58 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
59 $line =~ /\S+\s+(\S+)\s+\S+\s+(\S+)/;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
60 $name = $1;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
61 $inter = $2;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
62 if ($name ne $prevname)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
63 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
64 $prevname = $name;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
65 push @inters, [ @tmp ];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
66 $runsperligand[$i++] = @tmp;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
67 $#tmp = -1;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
68 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
69 push @tmp, $inter;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
70 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
71 push @inters, [ @tmp ];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
72 $runsperligand[$i++] = @tmp;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
73 $totLigands = @inters;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
74 $ta = $ARGV[2];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
75 $tb = $ARGV[3];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
76 if (@ARGV > 4)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
77 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
78 $n1 = $ARGV[4];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
79 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
80 else
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
81 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
82 $n1 = 5;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
83 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
84 if (@ARGV > 5)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
85 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
86 $n2 = $ARGV[5];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
87 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
88 else
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
89 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
90 $n2 = 15;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
91 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
92 printf OFILE "Command line args:\n\t";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
93 foreach $arg (@ARGV)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
94 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
95 printf OFILE "%s\t", $arg;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
96 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
97 printf OFILE "\n\n TIME PERC1 PERC2 N1 THR1 N2 THR2\n";
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
98 for ($t1 = $ta ; $t1 >= $tb ; $t1--)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
99 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
100 $tc = $t1 - 5;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
101 for ($t2 = $tc ; $t2 >= ($tc - 2) ; $t2--)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
102 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
103 ($cref, $dref) =
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
104 getTables($t1, $t2);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
105 @ligBelowThr1 = @$cref;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
106 @ligBelowThr2 = @$dref;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
107 ($time,$p1,$p2) = simulation($n1,$t1,$n2,$t2);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
108 if (($time < 12.0) && ($p1 < 30.0) && ($p2 < 5.0) && ($p2 > 1.0))
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
109 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
110 printf OFILE "%6.3f, %6.3f, %6.3f, %4i, %4i, %4i, %4i ***\n",
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
111 $time, $p1, $p2, $n1,$t1,$n2,$t2;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
112 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
113 else
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
114 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
115 printf OFILE "%6.3f, %6.3f, %6.3f, %4i, %4i, %4i, %4i\n",
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
116 $time, $p1, $p2, $n1,$t1,$n2,$t2;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
117 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
118 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
119 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
120
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
121
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
122 sub simulation
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
123 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
124 my(@params);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
125 my(@lt0, @lt1);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
126 my($thr1, $thr2,$ns1,$ns2,$tottime,$totnumHits,$total,$totnruns);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
127 @params = @_;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
128 $ns1 = $params[0];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
129 $thr1 = $params[1];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
130 $ns2 = $params[2];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
131 $thr2 = $params[3];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
132 $ntrials = 100;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
133 $tottime = 0;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
134 $totnumHitss1 = 0;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
135 $totnumHitss2 = 0;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
136 $total = $totLigands;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
137 $totnruns = 0;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
138 for ($i = 0 ; $i < $ntrials ; $i++)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
139 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
140 $numHitss1 = 0;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
141 $numHitss2 = 0;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
142 $totnruns = 0;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
143 for ($j = 0 ; $j < $totLigands ; $j++)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
144 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
145 ($passStage1, $nruns1) = stage($ns1, $ligBelowThr1[$j]);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
146 if ($passStage1)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
147 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
148 $numHitss1++;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
149 ($passStage2, $nruns2) = stage($ns2, $ligBelowThr2[$j]);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
150 if ($passStage2)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
151 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
152 $numHitss2++;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
153 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
154 $totnruns += $nruns2;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
155 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
156 $totnruns += $nruns1;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
157 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
158 $time = $totnruns / $total;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
159 $tottime += $time;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
160 $totnumHitss1 += $numHitss1;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
161 $totnumHitss2 += $numHitss2;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
162 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
163 $tottime /= $ntrials;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
164 $totnumHitss1 /= $ntrials;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
165 $totnumHitss2 /= $ntrials;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
166 $p1 = $totnumHitss1 * 100.0 / $totLigands;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
167 $p2 = $totnumHitss2 * 100.0 / $totLigands;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
168 return ($tottime, $p1, $p2);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
169 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
170
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
171 sub getTables
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
172 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
173 my(@params);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
174 my($totLigands, @lt1, @lt2);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
175 my($row,$inter, $belowThr1, $belowThr2);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
176 my($thr0, $thr1);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
177 @params = @_;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
178 $thr1 = $params[0];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
179 $thr2 = $params[1];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
180 $totLigands = 0;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
181 $belowThr1 = 0;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
182 $belowThr2 = 0;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
183 $totLigands = 0;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
184 for $i (0 .. $#inters)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
185 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
186 $row = $inters[$i];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
187 for $j (0 .. $#{$row})
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
188 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
189 $inter = $row->[$j];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
190 if ($inter <= $thr1)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
191 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
192 $belowThr1++;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
193 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
194 if ($inter <= $thr2)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
195 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
196 $belowThr2++;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
197 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
198 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
199 $lt1[$totLigands] =
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
200 $belowThr1 / $runsperligand[$i];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
201 $lt2[$totLigands] =
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
202 $belowThr2 / $runsperligand[$i];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
203 $totLigands++;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
204 $belowThr1 = 0;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
205 $belowThr2 = 0;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
206 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
207 return (\@lt1, \@lt2);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
208 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
209
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
210
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
211
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
212 sub stage
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
213 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
214 my($nruns, $p, $i, $r);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
215 $nruns = $_[0];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
216 $p = $_[1];
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
217 if ($nruns == 0)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
218 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
219 return (1, 0);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
220 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
221 for ($i = 0 ; $i < $nruns ; $i++)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
222 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
223 $r = rand;
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
224 if ($r < $p)
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
225 {
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
226 return (1, $i);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
227 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
228 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
229 return (0, $nruns);
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
230 }
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
231
b02d74d22d05 planemo upload
marpiech
parents:
diff changeset
232