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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/BASiCS_LoadChain.R

Description

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

Usage

1
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.

Author(s)

Catalina A. Vallejos cnvallej@uc.cl

Nils Eling eling@ebi.ac.uk

See Also

BASiCS_Chain

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
Data <- makeExampleBASiCS_Data()
Chain <- BASiCS_MCMC(
  Data,
  N = 50,
  Thin = 5,
  Burn = 5,
  Regression = FALSE,
  StoreChains = TRUE,
  StoreDir = tempdir(),
  RunName = "Test"
)
ChainLoad <- BASiCS_LoadChain(RunName = "Test", StoreDir = tempdir())

BASiCS documentation built on April 16, 2021, 6 p.m.