region_methy_stats: Calculate region methylation statistics

View source: R/region_methy_stats.R

region_methy_statsR Documentation

Calculate region methylation statistics

Description

Calculate the average methylation probability and prevalence based on specified probability threshold.

Usage

region_methy_stats(nmr, regions, threshold = 0.5)

Arguments

nmr

the NanoMethResult object.

regions

the table of regions to query statistics for.

threshold

the threshold to use for determining methylation calls for the calculation of prevalence.

Value

table of regions with additional columns of methylation summary statistics.

Examples

nmr <- load_example_nanomethresult()
gene_anno <- exons_to_genes(NanoMethViz::exons(nmr))
region_methy_stats(nmr, gene_anno)

Shians/NanoMethViz documentation built on June 3, 2024, 3:23 a.m.