buildLLR.gauss: Build LLR function using Gaussian densities.

View source: R/buildLLR.R

buildLLR.gaussR Documentation

Build LLR function using Gaussian densities.

Description

Build LLR function using Gaussian densities.

Usage

buildLLR.gauss(posScores, negScores, spline = TRUE)

Arguments

posScores

fitness scores in the positive reference set

negScores

fitness scores in the negative reference set

spline

logical; whether or not to apply spline monotonization. TRUE by default.

Value

a list containing the LLR function in log10 scale and the positive and negative density functions

Examples


posScores <- rnorm(50,0.2,0.3)
negScores <- rnorm(30,0.8,0.2)
llr <- buildLLR.gauss(posScores,negScores)
drawDensityLLR(c(posScores,negScores),llr$llr,llr$posDens,llr$negDens,posScores,negScores)


jweile/maveLLR documentation built on July 19, 2022, 10:42 a.m.