runMCMC.BMEA: Fit the BMEA model for a single gene.

Description Usage Arguments Details Value

Description

Fits the BMEA model using the MCMC process for a single gene.

Usage

1
2
runMCMC.BMEA(PM, conditions, exons, lambda, delta, mcmcParam = NULL,
  model = "Full", ...)

Arguments

PM

the raw intensity data for a single gene.

conditions

a vector of factors defining which array belongs to which cell-type, or condition.

exons

a vector of factors defining which probe belongs to which exon (or group).

lambda

a matrix of the same dimensions as the PM matrix. Contains the probe-specific means for the log-normal distributions used as the priors for the background signal.

delta

a matrix of the smae dimensions as the PM matrix. Contains the standard deviations for the log-normal distributions used as the priors for the background signal.

mcmcParam

a list defining the parameters for the MCMC process. Requires the arguments:

  • $nChains the number of chains to run. Defaults to 3 if not specified.

  • $nIter the number of iterations to run. Defaults to 12,000 if not specified.

  • $nBurnin the number of burnin iterations. Defaults to the first half of the iterations.

  • $nThin the number of iterations used to thin the stored data, e.g. if $nThin = 10, every 10th iteration will be kept. Defaults to 6 if not specified.

model

a character string defining which BMEA model to run. Currently only the full model (model="Full") or one with no probeEffects (model="noProbes") are implemented.

...

not used

Details

This function runs the complete BMEA process for a single gene. Currently the only implemented model is the uniform prior for the exon proportions term (phi).

Computation times will vary to a large degree based on the processor involved. It should be noted that the process for a single gene can take in the order of minutes.

The MCMC process itself is wrtten in C and this function is a wrapper to this function.

Value

Returns a 3D-array of class BMEA.MCMC. The first dimension contains the model parameters for the given gene. The second dimension stores the iterations for each chain, whilst the third dimension contains the number of chains used for the process.

The names for the first dimension are vital for downstream analysis & will specify which parameters are mu & phi.


steveped/BMEA documentation built on May 30, 2019, 5:38 p.m.