]> git.donarmstrong.com Git - biopieces.git/blobdiff - bp_bin/plot_matches
adding order_pairs3
[biopieces.git] / 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";