Wrapper to run chromVAR on an assay with a motif object present. Will return a new Seurat assay with the motif activities stored.
chromVAR
RunChromVAR( object, genome, new.assay.name = "chromvar", motif.matrix = NULL, assay = NULL, sep = c(":", "-"), verbose = TRUE, ... )
A Seurat object
A BSgenome object
Name of new assay used to store the chromVAR results. Default is "chromvar".
A peak x motif matrix. If NULL, pull the peak x motif matrix from a Motif object stored in the assay.
Name of assay to use
A length-2 character vector containing the separators passed to StringToGRanges.
StringToGRanges
Display messages
Additional arguments passed to getBackgroundPeaks
getBackgroundPeaks
Returns a Seurat object with a new assay
Seurat
# NOT RUN { library(BSgenome.Hsapiens.UCSC.hg19) RunChromVAR(object = atac_small, genome = BSgenome.Hsapiens.UCSC.hg19) # }
Run the code above in your browser using DataLab