-
Notifications
You must be signed in to change notification settings - Fork 204
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
computeMatrix output matrix file is all 0 #792
Comments
I strongly encourage you to not use |
Thanks @dpryan79 , I tried removing computeMatrix scale-regions \
-S input.bw \
-R lambda.allCpG.bed \
-out data.mat.gz \
--outFileNameMatrix data.tab \
-m 2 \
--startLabel "C" \
--endLabel "G" \
-b 5 \
-a 5 \
-bs 1 \
-p "max"
zcat data.mat.gz | head
#@{"verbose":true,"scale":1,"skip zeros":false,"nan after end":false,"sort using":"mean","unscaled 5 prime":0,"body":2,"sample_labels":["SLX-15861.DNAA011.HJ23HBGX7.s_1.r_1_bismark_bt2.deduplicated"],"downstream":5,"unscaled 3 prime":0,"group_labels":["genes"],"bin size":1,"upstream":5,"group_boundaries":[0,3113],"sample_boundaries":[0,12],"missing data as zero":false,"ref point":null,"min threshold":null,"sort regions":"keep","proc number":40,"bin avg type":"mean","max threshold":null}
#J02459.1 3 5 J02459.1:3-5 . . nan nan nan nan nan nan nan nan nan nan nan nan
#J02459.1 6 8 J02459.1:6-8 . . nan nan nan nan nan nan nan nan nan nan nan nan
#J02459.1 12 14 J02459.1:12-14 . . nan nan nan nan nan nan nan nan nan nan nan nan
#J02459.1 14 16 J02459.1:14-16 . . nan nan nan nan nan nan nan nan nan nan nan nan
#J02459.1 22 24 J02459.1:22-24 . . nan nan nan nan nan nan nan nan nan nan nan nan
#J02459.1 42 44 J02459.1:42-44 . . nan nan nan nan nan nan nan nan nan nan nan nan
#J02459.1 52 54 J02459.1:52-54 . . nan nan nan nan nan nan nan nan nan nan nan nan
#J02459.1 58 60 J02459.1:58-60 . . nan nan nan nan nan nan nan nan nan nan nan nan
#J02459.1 68 70 J02459.1:68-70 . . nan nan nan nan nan nan nan nan nan nan nan nan Am I missing something? |
I imagine the problem is that your bedGraph needs to have all of its start or end coordinates shifted by 1. BedGraph files are 0-based, half open, so the first entry should have ended at 1. So the bigWig file likely contains no entries, which is what's causing this. |
Thanks @dpryan79 , yes - that was the issue. It seems it works ok now. |
Hi deepTools team,
Many thanks for maintaining such a great suite of tools. Here is my latest issue.
deeptools 2.4.2-5-f439d22
Python 2.7.12
I am trying to profile methylation around CpG sites in the lambda genome (48kb). I generated the input bigwig file for
computeMatrix
usingbedGraphToBigWig
as follows:where e.g. at position 10 there is a methylation level of 9.09%. I have visualised the resulting
input.bw
in IGV and it looks fine.The CpG sites are in a bed file:
But when I run
computeMatrix scale-regions
as follows:The resulting
data.mat.gz
is all full of 0s. Then, the plotProfile just looks like a flat line.Perhaps there is something I am missing, but I don't understand why
computeMatrix
is just giving 0s. The bedgraph contains many positions with numbers ranging between 0-100% so I don't know what could be going on.Any hints would be useful.
The text was updated successfully, but these errors were encountered: