addMethPropCol {MIRA} | R Documentation |
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 ":="
addMethPropCol(BSDTList)
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. |
The BSDTList but with extra 'methylProp' column on each data.table in list.
data("exampleBSDT", package = "MIRA") exampleBSDT[, methylProp := NULL] # removing methylProp column addMethPropCol(list(exampleBSDT))