bg.mcmc: MBCB - Bayesian Background Correction for Illumina Beadarray

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/bg.MBCBNoBead.R

Description

This function provides the means of using only the MCMC (Bayesian) background correction method for the Illumina platform.

Usage

1
bg.mcmc(iter=500, burn=200)

Arguments

iter

The iteration count for the Baysian correction.

burn

The number of iterations to burn for the Bayesian correction.

Value

This function returns an array of alpha, mu, and sigma values representing the values computed during the mcmc trial.

Note

This function makes use of two global variables. It will expect obsbead and obsnc are both established prior to calling this function. Obviously, this is not ideal, but R's pass-by-value functionality hindered the ability to pass these matrices as parameters. Using global variables increases performance substantially.

Author(s)

Yang Xie Yang.Xie@UTSouthwestern.edu, Min Chen min.chen@phd.mccombs.utexas.edu, Jeff Allen Jeffrey.Allen@UTSouthwestern.edu

See Also

mbcb.main

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  data(MBCBExpressionData)
  # Use of global variables is obviously not ideal, but with R's pass-by-value 
  #   setup, we quickly run out of memory without using them on such large 
  #   arrays

  #all of the signals from sample #2
  obsbead <<- expressionSignal[,2]
  
  #the negative control values for this sample
  obsnc <<- negativeControl[,2]         
  
  #compute the alpha, mu, and sigma values
  bg.mcmc();                            

MBCB documentation built on Nov. 8, 2020, 5:49 p.m.

Related to bg.mcmc in MBCB...