From: martinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Date: Mon, 9 May 2011 11:13:31 +0000 (+0000)
Subject: polishing gene cov feature in analyze_assembly
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=e1de65cd6fea225d7adecffdeeb44926362c0289;p=biopieces.git

polishing gene cov feature in analyze_assembly

git-svn-id: http://biopieces.googlecode.com/svn/trunk@1388 74ccb610-7750-0410-82ae-013aeee3265d
---

diff --git a/bp_bin/analyze_assembly b/bp_bin/analyze_assembly
index d6b65a6..c6423f8 100755
--- a/bp_bin/analyze_assembly
+++ b/bp_bin/analyze_assembly
@@ -93,7 +93,7 @@ new_record[:COUNT]      = lengths.size
 
 if options[:gene_cov]
   new_record[:GENE_COV]   = gene_cov
-  new_record[:GENE_RATIO] = (gene_cov.to_f / (2 * total.to_f)).round(3)
+  new_record[:GENE_RATIO] = (gene_cov.to_f / total.to_f).round(4)
 end
 
 bp.puts new_record