]> git.donarmstrong.com Git - biopieces.git/commitdiff
hackery changes to plot_matches to deal with blast data
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 14 Jun 2011 08:58:50 +0000 (08:58 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Tue, 14 Jun 2011 08:58:50 +0000 (08:58 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1475 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/plot_matches

index ef0780c0d7d65c66529c75dd7d3fc5130a147386..b5d5ed11c70405f8bbd622655e228e9212775e99 100755 (executable)
@@ -113,7 +113,7 @@ sub dotplot_matches
 
     foreach $match ( @{ $matches } )
     {
-        if ( $match->{ "DIR" } =~ /^f/ )
+        if ( ($match->{ "DIR" } and $match->{ "DIR" } =~ /^f/) or ($match->{ "STRAND" } and $match->{ "STRAND" } eq '+') )
         {
             print $fh_forward join( "\t", $match->{ "Q_BEG" } + 1, $match->{ "S_BEG" } + 1 ), "\n";
             print $fh_forward join( "\t", $match->{ "Q_END" } + 1, $match->{ "S_END" } + 1 ), "\n";