buildMethylationModel: Build model of methylation effect based on pair-wise compared...

View source: R/fit_models.R

buildMethylationModelR Documentation

Build model of methylation effect based on pair-wise compared data between methylated and unmethylated sites

Description

Build model of methylation effect based on pair-wise compared data between methylated and unmethylated sites

Usage

buildMethylationModel(data, encoding = "(3+2)L+1", withIntercept = FALSE)

Arguments

data

Data frame containing at least two variables – Sequence and Energy

encoding

The encoding scheme used for modeling, either (3+2)L+1 or (3+1)L+1.

withIntercept

Working with pairwise compaired data doesn't require intercept parameter, so it is FALSE by default.

Value

Linear model containing position-based energy coefficients, e.g., 1CM, 1GW, 2CM, 2GW, etc.

Examples

buildMehylationModel(data, encoding = "(3+1)L+1")

zeropin/TFCookbook documentation built on July 8, 2023, 2:59 p.m.