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

Issues with custom annotation #1849

Open
kryptonitecircuit2002 opened this issue Nov 26, 2024 Discussed in #1848 · 1 comment
Open

Issues with custom annotation #1849

kryptonitecircuit2002 opened this issue Nov 26, 2024 Discussed in #1848 · 1 comment

Comments

@kryptonitecircuit2002
Copy link

Discussed in #1848

Originally posted by kryptonitecircuit2002 November 25, 2024
Hello everyone!

I am analyzing 10X single cell gene expression and ATAC multiome data for the first time. I am trying to make custom annotation for Zebrafish genome. However I have been facing a lot of issues. This is the pipeline I used following Signac vignette:

hub <- AnnotationHub()
query(hub, "Danio rerio")
ensdb <- hub[["AH116259"]] 
annotations <- GetGRangesFromEnsDb(ensdb = ensdb)
seqlevelsStyle(annotations) <- 'UCSC'
genome(annotations) <- "GRCz11"
grange.counts <- StringToGRanges(rownames(atac_counts), sep = c(":", "-"))
grange.use <- seqnames(grange.counts) %in% standardChromosomes(grange.counts)
atac_counts <- atac_counts[as.vector(grange.use), ]

And this is the latest issue that I am facing:

CoveragePlot(Control.data, region = "mitfa", features = 'mitfa', assay = 'ATAC', expression.assay = 'SCT', peaks = TRUE)
Error in colnames<-(*tmp*, value = start(x = region):end(x = region)) : 
  attempt to set 'colnames' on an object with less than two dimensions
  

Can anyone please help me sort out the issue?

@timoast
Copy link
Collaborator

timoast commented Dec 8, 2024

It's possible this could be happening if there are zero counts in the region. Can you check if there are fragments present within the region you're plotting? Can you also show the output of sessionInfo()?

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