Entering edit mode
6.5 years ago
sophialovechan
▴
80
Hi everyone, I am using chromVAR to analyze ATAC-seq data. But when I tried to add GC contents to my data, I am running into problems to load sequences. The code is below.
counts_GC <- addGCBias(counts, genome = BSgenome.Hsapiens.UCSC.hg38)
The error is:
Error in loadFUN(x, seqname, ranges) :
trying to load regions beyond the boundaries of non-circular sequence "chr1"
When I used BSgenome.Hsapiens.UCSC.hg19, the error changed into:
Error in loadFUN(x, seqname, ranges) :
trying to load regions beyond the boundaries of non-circular sequence "chr17"
Can anyone give me a hand on what happened here and how I can solve this problem? Thank you so much and I really appreciate it.
Please post example records from counts object and also check str of object counts.
That's the result from rowRanges.
The strand information is like that: counts@rowRanges@strand@values [1] * Levels: + - *
Is it something wrong with this? I just imported bam files from bowtie alignment followed by samtool sort.
what is the class of the object? Object class must be RangedSummarizedExperiment or SummarizedExperiment
This works for me:
session info:
I did the same as the same as yours. By using a subset of my data, it worked. But when I used the whole data again, the same error.
Sometimes, it could be simply version problems. Make sure that you have updated libraries and R. Cross check with session info posted above. Example I gave was copy/pasted from manual except for number (500 and 10)