calc_score {DAMEfinder} | R Documentation

## Calculate score

### Description

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.

### Usage

    calc_score(df, beta = 0.5, a = 0.2)

### Arguments

`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 `calc_weight` function. It's the alpha and beta values for the Beta function.
`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.

### Details

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.

### Value

The same object with an additional column for the ASM score.

[Package DAMEfinder version 1.2.0 Index]