Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero division error in TSS_cpg_bins.py #1

Open
mksamur opened this issue Nov 10, 2021 · 1 comment
Open

Zero division error in TSS_cpg_bins.py #1

mksamur opened this issue Nov 10, 2021 · 1 comment
Assignees

Comments

@mksamur
Copy link

mksamur commented Nov 10, 2021

Hi,

I'm testing this pipeline on some EM-seq samples we have recently generated and getting following error with TSS_cpg_bins.py
File "/Software/EM-seq/TSS_cpg_bins.py", line 254, in
normal_all_bins = [(all_bins[x] / all_bins[x]) * 100 for x in range(len(all_bins))]
ZeroDivisionError: division by zero

It looks like line 254 in TSS_cpg_bins.py suppose to return 100 always except when it is 0 which cause 0/0 error.

Script was started by using

/Software/EM-seq/TSS_cpg_bins.py --methylkit MS1_md_extract_CpG.methylKit.gz --fasta grch38_core_bs_controls.fa --prefix MS1_md_extract_CpG.methylKit.TSS_cpg --annotation gencode.v38.annotation.gtf --plot True

and neither all_bins nor methylation_bins were specified, so calculation was done by the script

Thanks for the support!

@bwlang
Copy link
Member

bwlang commented Apr 20, 2022

@mksamur : I'm sorry we did not see this report sooner - we had this repository with the wrong permissions.
@mattsoup : Can you try to reproduce?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants