Learn R Programming

BASiCS (version 0.7.30)

BASiCS_LoadChain: Loads pre-computed MCMC chains generated by the BASiCS_MCMC function

Description

Loads pre-computed MCMC chains generated by the BASiCS_MCMC function, creating a BASiCS_Chain-class object

Usage

BASiCS_LoadChain(RunName, StoreDir = getwd(), WithSpikes = TRUE)

Arguments

RunName

String used to index `.txt` files storing chains (as in BASiCS_MCMC function)

StoreDir

Directory where `.txt` files are stored. Default: StoreDir = getwd()

WithSpikes

TRUE/FALSE indicator of spike-ins usage. Default: WithSpikes = TRUE

Value

An object of class BASiCS_Chain-class.

References

Vallejos, Marioni and Richardson (2015). Bayesian Analysis of Single-Cell Sequencing data.

See Also

BASiCS_Chain-class

Examples

Run this code
# NOT RUN {
Data = makeExampleBASiCS_Data()
MCMC_Output <- BASiCS_MCMC(Data, N = 50, Thin = 5, Burn = 5,
                           StoreChains = TRUE, StoreDir = getwd(), RunName = "Test")
MCMC_Output_Load <- BASiCS_LoadChain(RunName = "Test", StoreDir = getwd())

# }

Run the code above in your browser using DataLab