Compute base composition information for genomic ranges
Source:R/generics.R, R/preprocessing.R
RegionStats.RdCompute the GC content, region lengths, and dinucleotide base frequencies for regions in the assay and add to the feature metadata.
Usage
RegionStats(object, ...)
# Default S3 method
RegionStats(object, genome, verbose = TRUE, ...)
# S3 method for class 'GRangesAssay'
RegionStats(object, genome, verbose = TRUE, ...)
# S3 method for class 'Seurat'
RegionStats(object, genome, assay = NULL, verbose = TRUE, ...)Examples
if (FALSE) { # \dontrun{
library(BSgenome.Hsapiens.UCSC.hg38)
RegionStats(
object = rownames(atac_small),
genome = BSgenome.Hsapiens.UCSC.hg38
)
} # }
if (FALSE) { # \dontrun{
library(BSgenome.Hsapiens.UCSC.hg38)
RegionStats(
object = atac_small[["peaks"]],
genome = BSgenome.Hsapiens.UCSC.hg38
)
} # }
if (FALSE) { # \dontrun{
library(BSgenome.Hsapiens.UCSC.hg38)
RegionStats(
object = atac_small,
assay = "bins",
genome = BSgenome.Hsapiens.UCSC.hg38
)
} # }