BASiCS_LoadChain {BASiCS} | R Documentation

## 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`.

### Author(s)

Catalina A. Vallejos cnvallej@uc.cl

Nils Eling eling@ebi.ac.uk

### See Also

`BASiCS_Chain`

### Examples

    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())

[Package BASiCS version 2.6.0 Index]