dmrff.sites: dmrff.sites

View source: R/sites.r

dmrff.sitesR Documentation

dmrff.sites

Description

Link genomic locations to a set of genomic regions.

Usage

dmrff.sites(regions, chr, pos)

Arguments

regions

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

chr

A vector providing the chromosome of each location.

pos

A vector providing the chromosomal position of each location.

Value

A data frame identifying the region containing each genomic location.

Examples


dmrs <- dmrff(estimate, se, p.value, methylation, chr, pos)
dmrs <- dmrs[which(dmrs$p.adjust < 0.05 & dmrs$n > 1),]
dmr.sites <- dmrff.sites(dmrs, chr, pos, estimate, se, p.value)
dmr.sites$dmr.z <- dmrs$z[dmr.sites$region]


perishky/dmrff documentation built on July 19, 2024, 5:16 a.m.