[med-svn] samtools 16/26: plot-bamstats: Skip generation of empty GCD graphs

Charles Plessy plessy at moszumanska.debian.org
Tue Dec 10 10:06:26 UTC 2013


This is an automated email from the git hooks/post-receive script.

plessy pushed a commit to branch debian/unstable
in repository samtools.

commit 9a39e015694b9db00aea8f9659ca84328d934e06
Author: Petr Danecek <pd3 at sanger.ac.uk>
Date:   Fri Nov 29 08:47:38 2013 +0000

    plot-bamstats: Skip generation of empty GCD graphs
---
 misc/plot-bamstats | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc/plot-bamstats b/misc/plot-bamstats
index e152a58..c764d0f 100755
--- a/misc/plot-bamstats
+++ b/misc/plot-bamstats
@@ -869,7 +869,7 @@ sub plot_gc_depth
     my ($opts) = @_;
 
     my @gcd = get_values($opts,'GCD');
-    if ( !@gcd ) { return; }
+    if ( @gcd <= 1 ) { return; }
 
     # Find unique sequence percentiles for 30,40, and 50% GC content, just to draw x2tics.
     my @tics = ( {gc=>30},{gc=>40},{gc=>50} );

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/samtools.git



More information about the debian-med-commit mailing list