addMethPropCol {MIRA} | R Documentation

## Add column for proportion of methylation

### 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

    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

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

[Package MIRA version 1.9.1 Index]