]> git.donarmstrong.com Git - biopieces.git/commitdiff
polishing gene cov feature in analyze_assembly
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Mon, 9 May 2011 11:13:31 +0000 (11:13 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Mon, 9 May 2011 11:13:31 +0000 (11:13 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1388 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/analyze_assembly

index d6b65a6d7bd4c4fc6e514df2126234724efc1d34..c6423f8e93faecefb05f899289f8bbbdf6bab9c1 100755 (executable)
@@ -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