Description Usage Arguments Details Value Examples
View source: R/methrix_operations.R
Extract and summarize methylation or coverage info by regions of interest
1 2 3 4 5 6 7 8 9 10 11 12 |
m |
|
regions |
genomic regions to be summarized. Could be a data.table with 3 columns (chr, start, end) or a |
type |
matrix which needs to be summarized. Coule be ‘M', 'C'. Default ’M' |
how |
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 'within'. For detailed description,
see the |
na_rm |
Remove NA's? Default |
elementMetadata.col |
columns in |
verbose |
Default TRUE |
n_chunks |
Number of chunks to split the |
n_cores |
Number of parallel instances. |
Takes methrix
object and summarizes regions
a coverage or methylation matrix
1 2 3 4 | data('methrix_data')
get_region_summary(m = methrix_data,
regions = data.table(chr = 'chr21', start = 27867971, end = 27868103),
type = 'M', how = 'mean')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.