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

CoveragePlot() No cells present in the requested region error #5

Closed
npervola opened this issue Jul 18, 2019 · 6 comments
Closed

CoveragePlot() No cells present in the requested region error #5

npervola opened this issue Jul 18, 2019 · 6 comments

Comments

@npervola
Copy link

In using CoveragePlot to visualize pseudobulk profiles by cluster, the function is currently unable to find cells in requested regions that are on any double digit chromosomes ( those > chr 9) for mouse mm10 aligned Cell Ranger Processed data. The regions I am trying to plot come from a differential accessibility analysis where I know cells have signal there (can be visualized via VlnPlot or FeaturePlot). The plotting works fine for any regions on chromosomes 1:9, but not the others, so I don't know if its an issue with CoveragePlot or the annotation.

The function call looks like this:

CoveragePlot(
object = seurat.signac.object,
region = region1,
sep = c(":","-"),
annotation = EnsDb.Mmusculus.v79,
extend.upstream = 5000,
extend.downstream = 5000,
ncol = 1,
idents=c(0,1,2,3)
)

My attached packages are as follows:

[1] EnsDb.Mmusculus.v79_2.99.0 ensembldb_2.8.0 AnnotationFilter_1.8.0
[4] GenomicFeatures_1.36.1 AnnotationDbi_1.46.0 Signac_0.1.0
[7] SummarizedExperiment_1.14.0 DelayedArray_0.10.0 BiocParallel_1.17.18
[10] matrixStats_0.54.0 Biobase_2.44.0 GenomicRanges_1.36.0
[13] GenomeInfoDb_1.20.0 IRanges_2.18.1 S4Vectors_0.22.0
[16] BiocGenerics_0.30.0 chromVAR_1.6.0 data.table_1.12.2
[19] dplyr_0.8.1 ggplot2_3.2.0 Seurat_3.0.2

@timoast
Copy link
Collaborator

timoast commented Jul 19, 2019

In the mouse vignette we plot chromosomes >9 using CoveragePlot, which is also 10x data mapped to mm10, so I'm surprised this doesn't work.

Are you able to reproduce the mouse brain vignette this using the dataset from 10x (downloadable here), to verify first that that gives the expected result for you?

@npervola
Copy link
Author

I was able to reproduce the mouse brain vignette and get the expected results, including plotting in those regions on the chromosomes in questions. I also checked some specific sites that hadn't worked in my own analysis and they worked as well. I reran my own dataset exactly as the brain one is processed, and continued to have the same issue. It may be important to note that this is a dataset that has been aggregated using cell ranger functionality as well, and is on the order of ~20,000 cells. Could it be some issue in indexing the fragments file for these specific chromosomes? The file is very large, although it gives me the error almost immediately when running the CoveragePlot() function.

@timoast
Copy link
Collaborator

timoast commented Jul 19, 2019

Ok this likely has something to do with running CellRanger aggr, are you able to send me the Seurat object and the fragments file so I can debug this further? You can email it to [email protected]

@npervola
Copy link
Author

Thank you. I have emailed the object, the fragments file, and its index to you. Let me know if you'd need any other info from me.

@timoast
Copy link
Collaborator

timoast commented Jul 19, 2019

Got it, thanks. Taking a look now

@timoast
Copy link
Collaborator

timoast commented Jul 24, 2019

This turned out to be an issue with the Rsamtools package on Windows. I've opened an issue with Rsamtools (Bioconductor/Rsamtools#8) and will close this issue now

@timoast timoast closed this as completed Jul 24, 2019
timoast added a commit that referenced this issue Jan 17, 2020
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