Learn R Programming

BASiCS (version 1.1.0)

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 object

Usage

BASiCS_LoadChain(RunName, StoreDir = getwd(), StoreUpdatedChain = FALSE)

Arguments

RunName

String used to index `.Rds` file containing the MCMC chain (produced by the BASiCS_MCMC function, with StoreChains = TRUE)

StoreDir

Directory where `.Rds` file is stored. Default: StoreDir = getwd()

StoreUpdatedChain

Only required when the input files contain an outdated version of a '>BASiCS_Chain object. If StoreUpdatedChain = TRUE, an updated object is saved (this overwrites original input file, if it was an `.Rds` file).

Value

An object of class '>BASiCS_Chain.

References

Vallejos, Marioni and Richardson (2015). PLoS Computational Biology.

See Also

BASiCS_Chain

Examples

Run this code
# NOT RUN {
Data <- makeExampleBASiCS_Data()
Chain <- BASiCS_MCMC(Data, N = 50, Thin = 5, Burn = 5,
                     StoreChains = TRUE, StoreDir = tempdir(), 
                     RunName = 'Test')
ChainLoad <- BASiCS_LoadChain(RunName = 'Test', StoreDir = tempdir())

# }

Run the code above in your browser using DataLab