Description Usage Arguments Details Value Examples
Extracts and summarizes methylation or coverage info by regions of interest
1 2 3 4 5 6 7 8 9 10 11 |
scm |
|
assay |
string; name of an existing assay. Default = "score" |
regions |
GRanges; genomic regions to be summarized. Could be a data.table with 3 columns (chr, start, end) or a |
group |
a column name from sample annotation that defines groups. In this case, the number of min_samples will be tested group-wise. |
n_chunks |
integer; Number of chunks to split the |
n_threads |
integer; Maximum number of parallel instances. Default = 1 |
by |
closure; mathematical function by which regions should be summarized. Can be one of the following: mean, sum, max, min. Default 'mean' |
overlap_type |
defines the type of the overlap of the CpG sites with the target region. Default value is |
verbose |
boolean; Flag for outputting function status messages. Default = TRUE |
Takes scMethrix
object and summarizes regions
table of summary statistic for the given region
1 2 3 4 | data('scMethrix_data')
get_region_summary(scMethrix_data,
regions = GenomicRanges::GRanges(seqnames = c("chr1","chr2"), ranges = IRanges(1,100000000)),
assay = 'score', by = 'mean')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.