From: martinahansen Date: Tue, 14 Jun 2011 08:58:50 +0000 (+0000) Subject: hackery changes to plot_matches to deal with blast data X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=f483cfd13b20476a29a73d3f9e7a9966da67524e;p=biopieces.git hackery changes to plot_matches to deal with blast data git-svn-id: http://biopieces.googlecode.com/svn/trunk@1475 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/bp_bin/plot_matches b/bp_bin/plot_matches index ef0780c..b5d5ed1 100755 --- a/bp_bin/plot_matches +++ b/bp_bin/plot_matches @@ -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";