| 1 |
$usage = "perl rmark-multiply-evalues.pl <scaling factor for inflating E-values of positives>\n"; |
| 2 |
if(scalar(@ARGV) < 1) { die "$usage"; } |
| 3 |
$scale = shift; |
| 4 |
|
| 5 |
while($line = <>) { |
| 6 |
chomp $line; |
| 7 |
$line =~ s/^\s+//; |
| 8 |
$line =~ s/\s+$//; |
| 9 |
($pval, $bitscore, $target_from, $target_to, $target, $msaname, $matching_fam_idx, $matching_strand) = split(/\s+/, $line); |
| 10 |
if($matching_strand ne "decoy") { |
| 11 |
$pval *= $scale; |
| 12 |
} |
| 13 |
printf("%10g %10.1f %10d %10d %20s %35s %s %s\n", $pval, $bitscore, $target_from, $target_to, $target, $msaname, $matching_fam_idx, $matching_strand); |
| 14 |
} |