Could not find function "Standard Chromosomes"
1
0
Entering edit mode
@17027852
Last seen 20 months ago
United States

Hi I'm trying to add ATAC seq to my matrix that already contains scRNAseq data.

The code I'm trying to run is below. The first line works, the second does not. If someone can help me figure out what is going on that would be great. I'm very new to code so any help is appreciated!

grange.counts <- StringToGRanges(rownames(atac_counts), sep = c(":", "-"))
grange.use <- seqnames(grange.counts) %in% standardChromosomes(grange.counts)

# Error in standardChromosomes(grange.counts) : 
  could not find function "standardChromosomes"
scrna scRNAseq • 1.0k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 1 day ago
United States

You want

grange.use <- keepStandardChromosomes(grange.counts, pruning.mode = "coarse")
ADD COMMENT
0
Entering edit mode

Hi,

I had the same problem, and I was able to solve it doing this:

  1. You should install the "GenomeInfoDb" package (BiocManager::install('GenomeInfoDb'))
  2. Load the library
  3. After that you will be able to run grange.use <- seqnames(grange.counts) %in% standardChromosomes(grange.counts)
ADD REPLY

Login before adding your answer.

Traffic: 494 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6