Branch Coverage

blib/lib/BioX/Map.pm
Criterion Covered Total %
branch 32 80 40.0


line true false branch
108 0 0 $infile->exists ? :
118 0 3 if ($tool eq 'soap') { }
3 0 elsif ($tool eq 'bwa') { }
120 0 0 unless -e "$genome.index.$suffix"
124 5 10 unless -e "$genome.bwa.$suffix"
135 0 1 unless -e $genome
139 1 0 $tool eq 'bwa' ? :
0 1 $tool eq 'soap' ? :
142 1 0 if (@cmd)
145 0 1 unless run(\@cmd, \$in, \$out, \$err)
147 1 0 $self->exist_index ? :
159 0 1 if $self->exist_index == 0 or $self->force_index
160 1 0 $tool eq 'bwa' ? :
0 1 $tool eq 'soap' ? :
164 0 1 if ($tool eq 'soap') { }
1 0 elsif ($tool eq 'bwa') { }
167 0 0 unless run(\@cmd, \$in, \$out, \$err)
168 0 0 $err ? :
172 0 1 unless run(\@cmd, \$in, \$out, \$err)
176 0 1 unless run(\@cmd, \$in, \$out, \$err)
186 0 1 unless -e $genome
187 0 1 if ($indir) { }
1 0 elsif ($infile) { }
189 0 0 unless @fqs
190 0 0 unless -e $outdir
194 0 0 if my $pid = $pm->start
201 0 1 unless -e $infile
212 0 1 unless $outfile->exists
214 0 1 if ($tool eq 'soap') { }
1 0 elsif ($tool eq 'bwa') { }
217 0 0 unless $cols[3] == 1
218 0 0 if $cols[9] == 0
219 0 0 if $cols[9] =~ /^[01]$/u
220 0 0 if $cols[9] =~ /^[012]$/u
225 5 7 if $line =~ /^@/u
226 1 6 if @cols == 11
227 0 6 unless $cols[11] eq 'XT:A:U'
228 6 0 if $cols[12] eq 'NM:i:0'
229 6 0 if $cols[12] =~ /NM:i:[01]/u
230 6 0 if $cols[12] =~ /NM:i:[012]/u