View source: R/inferMarkerEfficiency.R
inferMarkerEfficiency | R Documentation |
Infer marker efficiency
inferMarkerEfficiency(
dat,
AT,
locNames = NULL,
runMCMC = FALSE,
mleOptions = list(maxIter = 1000, delta = 0.1, steptol = 1e-06, seed = 1000),
mcmcOptions = list(niter = 10000, delta = 0.025, seed = 1),
verbose = FALSE,
mleObj = NULL
)
dat |
Datatable with columns (SampleName,Locus,Coverage) |
AT |
Vector with analytical threshold per marker |
locNames |
The order of markers can be specified (otherwise extracted as unique from dataset) |
runMCMC |
Whether to run MCMC for inferring the posterior distribution |
mleOptions |
Option input for optimization |
mcmcOptions |
Option input for MCMC simulation |
verbose |
Whether to print out progress |
mleObj |
An output from inferMarkerEfficiency with mle fit (used for directly performing MCMC) |
Using the sum of the coverage per marker as data (per sample), the function estimates marker efficiency and sample specific EXP(mu) and CV(omega). Using Maximum likelihood estimation for a gamma distribution. Requires specification of AT to account for dropout markers.
The function also performs MCMC for diagnostic: the mleObj argument allows for possibility for doing MCMC directly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.