You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to be able to introduce the chr prefix into the fragment itself. I've tried seqlevels and seqlevelsStyle using
merged@assays$ATAC@ranges@seqnames@values <- paste0("chr", merged@assays$ATAC@ranges@seqnames@values)
merged@assays$ATAC@ranges@seqnames@values <- factor(merged@assays$ATAC@ranges@seqnames@values)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi Tim,
When I query head(Fragments(merged)[[1]])
and head(Annotations(merged) I get the following output:
seqinfo: 23 sequences (1 circular) from Mmul_10 genome
How can I modify my object (merged) to successfully run RegionStats() and LinkPeaks() functions against the BSgenome.Mmulatta.UCSC.rheMac10
The current seqlevelsStyle(merged) is 'NCBI'
I used the following to obtain the gene annotation at the start:
dbFile <- ensDbFromAH(ah["AH110914"])
edb <- EnsDb(dbFile)
annotations <- GetGRangesFromEnsDb(ensdb = edb)
genome(annotations) <- "Mmul_10"
I want to be able to introduce the chr prefix into the fragment itself. I've tried seqlevels and seqlevelsStyle using
merged@assays$ATAC@ranges@seqnames@values <- paste0("chr", merged@assays$ATAC@ranges@seqnames@values)
merged@assays$ATAC@ranges@seqnames@values <- factor(merged@assays$ATAC@ranges@seqnames@values)
merged@assays$ATAC@annotation@seqnames@values <- paste0("chr", merged@assays$ATAC@annotation@seqnames@values)
merged@assays$ATAC@annotation@seqnames@values <- factor(merged@assays$ATAC@annotation@seqnames@values)
However, I don't know how to do the same for the fragments themselves.
Can you please help with addressing this issue.
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions