| buildLLR.kernel | R Documentation |
Build LLR function using kernel density estimation
buildLLR.kernel(posScores, negScores, bw = 0.1, kernel = "gaussian")
posScores |
fitness scores in the positive reference set |
negScores |
fitness scores in the negative reference set |
bw |
the bandwith to use for kernel density estimation (see kdensity package for more info). This can either be a numerical value or the name of the algorithm used to automatically choose one. |
kernel |
the type of kernel to use (see kdensity package for more info) |
a list containing the LLR function in log10 scale and the positive and negative density functions
posScores <- rnorm(50,0.2,0.3) negScores <- rnorm(30,0.8,0.2) llr <- buildLLR.kernel(posScores,negScores,bw=0.1,kernel="gaussian") drawDensityLLR(c(posScores,negScores),llr$llr,llr$posDens,llr$negDens,posScores,negScores)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.