Skip to content

Commit

Permalink
add 1 to read count to avoid MathError (zeroDivison)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxibor committed Oct 24, 2018
1 parent 81b1508 commit 3c398e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/normalizedReadCount
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ if __name__ == "__main__":
writeBam(inbam=BAM1, outbam=outbam1, commonReads=commonReads)
writeBam(inbam=BAM2, outbam=outbam2, commonReads=commonReads)

nb1 += 1
nb2 += 1
NormalizedReadRatio = log2((nb1 / gs1) / (nb2 / gs2))

# Template output file structure
Expand Down

0 comments on commit 3c398e5

Please sign in to comment.