From 1953023f5f64b3fd29fc8b79990998eafb787879 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Tue, 4 Aug 2009 20:50:43 +0000 Subject: [PATCH] fixed two minor bugs (suggested by Tim M Storm) --- misc/samtools.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misc/samtools.pl b/misc/samtools.pl index c175539..8c64de8 100755 --- a/misc/samtools.pl +++ b/misc/samtools.pl @@ -6,7 +6,7 @@ use strict; use warnings; use Getopt::Std; -my $version = '0.3.2 (r321)'; +my $version = '0.3.3'; &usage if (@ARGV < 1); my $command = shift(@ARGV); @@ -39,7 +39,7 @@ sub showALEN { sub varFilter { my %opts = (d=>3, D=>100, l=>30, Q=>25, q=>10, G=>25, s=>100, w=>10, W=>10, N=>2, p=>undef); - getopts('pd:D:l:Q:w:W:N:G:', \%opts); + getopts('pq:d:D:l:Q:w:W:N:G:', \%opts); die(qq/ Usage: samtools.pl varFilter [options] @@ -67,7 +67,7 @@ Options: -Q INT minimum RMS mapping quality for SNPs [$opts{Q}] my @staging; # (indel_filtering_score, flt_tag) while (<>) { my @t = split; - next if ($t[2] eq $t[3] || $t[3] eq '*/*'); # skip non-var sites + next if (uc($t[2]) eq uc($t[3]) || $t[3] eq '*/*'); # skip non-var sites # clear the out-of-range elements while (@staging) { last if ($staging[0][2] eq $t[0] && $staging[0][3] + $max_dist >= $t[1]); -- 2.39.2