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

RuntimeWarning: overflow encountered in power #52

Open
mfas7 opened this issue Nov 15, 2016 · 1 comment
Open

RuntimeWarning: overflow encountered in power #52

mfas7 opened this issue Nov 15, 2016 · 1 comment

Comments

@mfas7
Copy link

mfas7 commented Nov 15, 2016

Hi!

Thanks for creating such a useful tool! We've encountered a problem and after reading through the issues posted on Github that might be related to this problem and trying some suggestions to fix this (like changing the size of the bed file), we are still having trouble. Below is the code I enter and the error that pops up.

Any insight/help would be greatly appreciated!

Thanks so much!

nucleoatac run --bed shortened2.bed --bam ATAC_Liver_L1A_GSM2147562_sort.bam --fasta mm10.fa --out test --cores 4
Command run: /Users/fasolino/NucleoATAC/venv/bin/nucleoatac run --bed shortened2.bed --bam ATAC_Liver_L1A_GSM2147562_sort.bam --fasta mm10.fa --out test --cores 4
nucleoatac version 0.3.2
start run at: 2016-11-15 11:28
---------Step1: Computing Occupancy and Nucleosomal Insert Distribution---------
/Users/fasolino/NucleoATAC/venv/lib/python2.7/site-packages/nucleoatac/Occupancy.py:45: RuntimeWarning: overflow encountered in power
res[nz] = a * x_mod[nz]**(k-1) * np.exp(-x_mod[nz]/theta) / (theta **k * gamma(k))
Making figure
---------Step2: Processing Vplot------------------------------------------------
/Users/fasolino/NucleoATAC/venv/lib/python2.7/site-packages/pyatac/VMat.py:100: RuntimeWarning: invalid value encountered in divide
tmp1 = self.mat / np.sum(self.mat)
---------Step3: Obtaining nucleosome signal and calling positions---------------
/Users/fasolino/NucleoATAC/venv/lib/python2.7/site-packages/nucleoatac/NucleosomeCalling.py:280: RuntimeWarning: invalid value encountered in less
self.smoothed.vals[ self.smoothed.vals < 0] = 0
---------Step4: Making combined nucleosome position map ------------------------
---------Step5: Calling NFR positions-------------------------------------------
end run at: 2016-11-15 11:28

@AliciaSchep
Copy link
Contributor

Are any figures generated from Step 1? If so, if you can post them, those can be useful diagnostic (sometimes there are errors because fragment size is really different from what is expected. ideally the script would flag this and give a meaningful message)

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

2 participants