addMethPropCol: Add column for proportion of methylation

Description Usage Arguments Value Examples

Description

Adding methylProp column that has proportion of reads that were methylated for each site based on number of methylated reads divided by total number of reads. Note: Assigns methylProp column by reference with ":="

Usage

1
addMethPropCol(BSDTList)

Arguments

BSDTList

A bisulfite datatable or list of datatables with a column for number of methylated reads (methylCount) and a column for number of total reads (coverage) for each cytosine that was measured.

Value

The BSDTList but with extra 'methylProp' column on each data.table in list.

Examples

1
2
3
data("exampleBSDT", package = "MIRA")
exampleBSDT[, methylProp := NULL] # removing methylProp column
addMethPropCol(list(exampleBSDT))

MIRA documentation built on Nov. 8, 2020, 4:51 p.m.