Skip to content

Commit

Permalink
bug fix realignment filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ken0-1n committed Oct 27, 2015
1 parent 4d09f46 commit 99528d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mutfilter/realignment_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def filter(self, in_tumor_bam, in_normal_bam, output, in_mutation_file):

beta_01 = '{0:.3f}'.format(float(scipy.special.btdtri( int(tumor_alt) + 1, int(tumor_ref) + 1, 0.1 )))
beta_mid = '{0:.3f}'.format(float( int(tumor_alt) + 1 ) / float( int(tumor_ref) + int(tumor_alt) + 2 ))
beta_09 = '{0:.3f}'.format(float(floatscipy.special.btdtri( int(tumor_alt) + 1, int(tumor_ref) + 1, 0.9 )))
beta_09 = '{0:.3f}'.format(float(scipy.special.btdtri( int(tumor_alt) + 1, int(tumor_ref) + 1, 0.9 )))

if (tumor_alt == '---' or tumor_alt >= self.tumor_min_mismatch):
print >> hResult, (line +"\t"+ str(tumor_ref) +"\t"+ str(tumor_alt) +"\t"+ str(tumor_other) +"\t"+ str(beta_01) +"\t"+ str(beta_mid) +"\t"+ str(beta_09))
Expand Down

0 comments on commit 99528d0

Please sign in to comment.