Skip to content

Commit cd75b58

Browse files
committed
Fix bam_deam_stats.py
1 parent 7d1380d commit cd75b58

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

bin/bam_deam_stats.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,15 @@ def main(bamfile, stats_only=False):
125125
p_deam31_cond_95ci = binomial_ci(n_cond,all_5c_cond3)
126126

127127
ancientness = '-'
128-
test51,test31 = float(p_deam51_95ci.split(',')[0]),float(p_deam31_95ci.split(',')[0])
129-
if test51 and test31:
130-
if test51 > 9.5 or test31 > 9.5:
131-
ancientness = '+'
132-
if test51 > 9.5 and test31 > 9.5:
133-
ancientness = '++'
128+
try:
129+
test51,test31 = float(p_deam51_95ci.split(',')[0]),float(p_deam31_95ci.split(',')[0])
130+
if test51 and test31:
131+
if test51 > 9.5 or test31 > 9.5:
132+
ancientness = '+'
133+
if test51 > 9.5 and test31 > 9.5:
134+
ancientness = '++'
135+
except ValueError:
136+
pass
134137

135138
#And the report
136139
#print header

0 commit comments

Comments
 (0)