From a2465b1bf1eb6d7105879399efe9bcb3cf04920c Mon Sep 17 00:00:00 2001 From: Heng Li Date: Fri, 2 Oct 2009 09:42:19 +0000 Subject: [PATCH] Fixed minor bugs in novo2sam.pl (on behalf of Ken Chen and Colin Hercus) --- misc/novo2sam.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/misc/novo2sam.pl b/misc/novo2sam.pl index 3d3436c..8b53c9e 100755 --- a/misc/novo2sam.pl +++ b/misc/novo2sam.pl @@ -149,7 +149,7 @@ sub mdtag { $q+=1; } if ($indeltype eq "-") { - my $deletedbase = $2 if $string =~ /(\d+)\-([A-Z]+)/; + my $deletedbase = $2 if $string =~ /(\d+)\-([A-Za-z]+)/; if ($deleteflag == 0 ) { $mdtag.="^"; } @@ -172,12 +172,12 @@ sub indeltype { my $string = shift; my $insert=""; my $indeltype; - if ($string =~ /([A-Z]+)\>/) { + if ($string =~ /([A-Za-z]+)\>/) { $indeltype=">"; $insert=$1; } elsif ($string =~ /\-/) { $indeltype="-"; - } elsif ($string =~ /\+([A-Z]+)/) { + } elsif ($string =~ /\+([A-Za-z]+)/) { $indeltype="+"; $insert=$1; } @@ -204,10 +204,10 @@ sub cigar_method { next if $string =~ />/; my $pos = $1 if $string =~ /^(\d+)/; - if ($string =~ /\+([A-Z]+)/) { + if ($string =~ /\+([A-Za-z]+)/) { $indeltype="+"; $insert = $1; - }elsif ($string =~ /\-([A-Z]+)/) { + }elsif ($string =~ /\-([A-Za-z]+)/) { $indeltype="-"; $insert = $1; } -- 2.39.2