Mercurial > repos > romaingred > pirna_pipeline
changeset 18:fcaea740c23a draft
Uploaded
author | romaingred |
---|---|
date | Thu, 19 Oct 2017 04:39:18 -0400 |
parents | 8031792a6e2c |
children | 39b039d82743 |
files | bin/Rcall.pm |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/Rcall.pm Tue Oct 17 09:34:09 2017 -0400 +++ b/bin/Rcall.pm Thu Oct 19 04:39:18 2017 -0400 @@ -15,7 +15,8 @@ my $i = 0; foreach my $k (sort {$a <=> $b} keys %{$size_hashR}) { - my $percentage = $size_hashR->{$k} * 100 / $size; + my $percentage = 0; + $percentage = $size_hashR->{$k} * 100 / $size if $size != 0; $abs[$i] = $k ; $ord[$i] = $percentage; $i++; } my $abs = join (",", @abs );