Description Usage Arguments Details Value
This function calculates the ASM score for every tuple in a given sample. The
ASM score is a multiplication of the log odds ratio by a weight that reflects
the extent of allele-specific methylation. This weight is obtained with the
calc_weight
function.
1 | calc_score(df, beta = 0.5, a = 0.2)
|
df |
data frame of a sample containing all information per tuple (MM,UU,UM and MU counts, as well as the log odds ratio per tuple) needed for the ASM score. |
beta |
parameter for the |
a |
parameter for the calc_weight function. The weight will be the probability that the MM/(MM+UU) ratio lies between 0.5-a and 0.5+a. |
This function returns an allele-specific methylation (ASM) score for every given tuple in a sample. The ASM score is a product of the log odds ratio and a weight reflecting a measure of allele-specificity using the MM and UU counts.
The same object with an additional column for the ASM score.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.