summarise_region: Reduce many CpG sites to one CpG region

View source: R/reduce_to_regions.R

summarise_regionR Documentation

Reduce many CpG sites to one CpG region

Description

If the number of sites is sufficient, take the median/mean value else return NA.

Usage

summarise_region(x, n, method)

Arguments

x

A subset matrix.

n

Minimum required number of sites per region (return NA otherwise).

method

Either 'median' or 'mean'.

Value

A vector


romagnolid/PAMES documentation built on Dec. 7, 2022, 10:37 a.m.