dmrff.stats: dmrff.stats

View source: R/stats.r

dmrff.statsR Documentation

dmrff.stats

Description

Calculate statistics for a set of genomic regions.

Usage

dmrff.stats(regions, estimate, se, methylation, chr, pos, verbose = T)

Arguments

regions

Data frame of genomic regions providing chromosome (chr), start and end coordinates.

estimate

Vector of EWAS effect estimates (corresponds to rows of methylation).

se

Vector of standard errors of the coefficients.

methylation

Methylation matrix (rows=features, columns=samples).

chr

Feature chromosome (corresponds to rows of methylation).

pos

Feature chromosome position.

verbose

If TRUE (default), then output status messages.

Details

Warning! Ensure that the order of the CpG sites corresponding to the the rows of 'methylation' match the order of the CpG sites corresponding to the other variables, e.g. 'estimate' and 'chr'.

Value

A data frame listing summary statistics for all genomic regions.


perishky/dmrff documentation built on Jan. 4, 2024, 10:23 p.m.