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
Using my interested da peaks in FindMotifs()
turns into an error.
#1109
Comments
Can you show the DA peaks that cause the error? First few lines and output of |
Now I ran But I still want to know the cause of this error. |
How many peaks are in the set of peaks that causes the error? |
About 120. |
Curious about the resolution of this issue, I am encountering the same error. top.da.peak <- rownames(da_peaks[da_peaks$p_val < 0.005,])
head(top.da.peak)
length(top.da.peak)
dim(da_peaks)
----------------------------------------------------------------
'chr3-14451939-14453443''chr2-42903457-42904464''chr18-58364914-58365919''chr4-84417769-84418850''chr1-17602697-17603858''chr1-91585801-91586419'
17242
18728 7 |
Could you ran chromeVar and found differentially activating motifs? |
yes I could, as they are two independent processes. |
Have you calculated the Or I thought that our interested |
My error occurs after calculating the background regions, during the matching of GC content: Selecting background regions to match input sequence characteristics
Matching GC.percent distribution
Error in density.default(x = query.feature[[featmatch]], kernel = "gaussian", : 'x' contains missing values
Traceback:
1. FindMotifs(sub_endocrine, features = top.da.peak)
2. MatchRegionStats(meta.feature = mf.choose, query.feature = mf.query,
. regions = features, n = background, verbose = verbose, ...)
3. density(x = query.feature[[featmatch]], kernel = "gaussian",
. bw = 1)
4. density.default(x = query.feature[[featmatch]], kernel = "gaussian",
. bw = 1)
5. stop("'x' contains missing values") I had some peaks with zero counts in all cells in my object, but after filtering these rows out, I still get the same error. |
FindMotifs()
turns into an error.
Please, can you tell me How did you filter them out? I am running in the same issue. I would like to give it a try. |
Sorry, I have not solved this. But I recommand you run |
I did, and I managed to run chromvar, but the Find Motifs function give me the same error as you. The thing that trouble me is if I use a subset of DE peaks it is fine. That is why I would want to try to subset only the peaks with at least some counts.
|
I got the solution to my issue. Some peaks in the Differential peak object have an extension "chrX-131703821-131705582.1" removing the .1 solve the issue for me, hope this will help others. |
Thanks @rLannes, I've added a check to |
Here is my code:
Everything is OK.
And I tried to use my interested da peaks in
enriched.motifs
:But the error is:
Thank you for your help!
The text was updated successfully, but these errors were encountered: