R/AllClasses.R, R/methods-bandle.R
bandleParams.RdThe bandleParams infrastructure is used to store and process MCMC results for
bandle model from Crook et al 2021
chains(object)
# S4 method for bandleParams
show(object)
# S4 method for nicheParam
show(object)
# S4 method for bandleChain
show(object)
# S4 method for bandleChains
length(x)
# S4 method for bandleParams
length(x)
# S4 method for bandleSummaries
length(x)
# S4 method for nicheParams
length(x)
# S4 method for nicheParams
length(x)
posteriorEstimates(object)
# S4 method for bandleSummary
posteriorEstimates(object)
summaries(object)
params(object)
bandleJoint(object)
# S4 method for bandleSummary
bandleJoint(object)
# S4 method for bandleChains,ANY,ANY
[[(x, i, j = "missing", drop = "missing")
# S4 method for bandleParams,ANY,ANY
[[(x, i, j = "missing", drop = "missing")
# S4 method for bandleChains,ANY,ANY,ANY
[(x, i, j = "missing", drop = "missing")
# S4 method for bandleParams,ANY,ANY,ANY
[(x, i, j = "missing", drop = "missing")
# S4 method for bandleChains
show(object)
# S4 method for bandleSummaries
show(object)
# S4 method for bandleSummaries,ANY,ANY
[[(x, i, j = "missing", drop = "missing")
# S4 method for bandleSummaries,ANY,ANY
[[(x, i, j = "missing", drop = "missing")
# S4 method for bandleSummaries,ANY,ANY,ANY
[(x, i, j = "missing", drop = "missing")
# S4 method for nicheParams,ANY,ANY
[[(x, i, j = "missing", drop = "missing")
# S4 method for nicheParams,ANY,ANY
[[(x, i, j = "missing", drop = "missing")
# S4 method for nicheParams,ANY,ANY,ANY
[(x, i, j = "missing", drop = "missing")
# S4 method for nicheParams
show(object)object of class nicheParams.
Object to be subset.
An integer(). Should be of length 1 for [[.
Missing.
Missing.
An object of class bandleParams which stores the main results
for the analysis when using bandle
Objects of the bandleParams class are created with the bandle() function
These objects store the priors for the model and the results of the MCMC
chains, which themselves are stored as an instance of class bandleChains and
can be accessed with the chains() function. A summary of the bandleChains
(or class bandleSummary) can be further computed with the bandleProcess
function.
see the bandle vignette for examples
chainslist() containing the individual full MCMC chain
results in an bandleChains instance. Each element must be a
valid bandleChain instance.
posteriorEstimatesA DataFrame documenting the posteriors
in an bandleSummary instance
diagnosticsA matrix of dimensions 1 by 2 containing the
bandleSummary diagnostics.
bandle.jointA matrix of dimensions N by K storing the joint
probability in an bandleSummary instance for each of the first condition
chainslist() containing the individual bandle Summaries for
different conditions results in an bandleSummaries instance. Each element must be a
valid bandleSummary instance.
methodA character() storing the bandle method name
priorsA list() with the priors for the parameters
seedAn integer() with the random number generation seed.
summaryObject of class bandleSummary the summarised MCMC results
available in the bandleParams instance.
chainsObject of class bandleChains containing the full MCMC results
in the bandleParams instance
datsetcharacter indicating which dataset i.e control or treatment
replicateinteger an integer indicating which replicate
Kinteger(1) indicating the number of components.
Dinteger(1) indicating the number of samples.
methodcharacter(1) defining the method used. Currently
bandle
mkmatrix(K, D)
lambdaknumeric(K)
nuknumeric(K)
skarray(K, D, D)
paramslist() containing the individual nicheParam objects
results in an bandleParams instance. Each element must be a
valid bandleParam instance.
datasetcharacter indicating the dataset usaully control or treatment
replicateinteger indicating the number of dataset replicate
ninteger(1) indicating the number of MCMC interactions.
Stored in an bandleChain instance.
Kinteger(1) indicating the number of components. Stored
in an bandleChain instance.
Ninteger(1) indicating the number of proteins. Stored in
an bandleChain instance.
nichematrix(N, n) component allocation results of an
bandleChain instance.
nicheProbmatrix(N, n, K) component allocation
probabilities of an bandleChain instance.
outliermatrix(N, n) outlier allocation results.
outlierProbmatrix(N, n, 2) outlier allocation
probabilities of an bandleChain instance.