getSegment: Select segment from coefficient table

Description Usage Arguments Value Examples

View source: R/differential_methylation.R

Description

This function takes a coefficient table and returns a subset of the table targeting only the specified segment using segment ID.

Usage

1
getSegment(cf1, seg.id)

Arguments

cf1

coefficient table of one factor from DMR

seg.id

segment ID

Value

coefficient table from given segment

Examples

1
2
3
data <- sesameDataGet('HM450.76.TCGA.matched')
cf <- DMR(data$betas, data$sampleInfo, ~type)
getSegment(cf[[1]], cf[[1]][['Seg.ID']][1])

sesame documentation built on Nov. 15, 2020, 2:08 a.m.