calculate.fdrp.site: calculate.fdrp.site This function compute the FDRP score for...

Description Usage Arguments Details Value Author(s)

View source: R/calculate_scores.R

Description

calculate.fdrp.site This function compute the FDRP score for a given cpg site.

Usage

1
calculate.fdrp.site(pos, cpg, reads, site)

Arguments

pos

index of the cpg site

cpg

list containing the mapping from each cpg site to the reads that contain this site

reads

GRanges object containing the reads needed for the calculation of the FDRP, already converted into the custom representation

site

position of the CpG site of interest as an integer number

Details

This function is called by calculate.fdrps.chromosome each CpG present on the chormosome and calls compute.discordant for each pair of reads.

Value

FDRP score for the given CpG site

Author(s)

Michael Scherer we actually calculate the FDRP as frac#discordant read pairs#all read pairs


MPIIComputationalEpigenetics/WSHPackage documentation built on Dec. 14, 2021, 11:49 a.m.