updateSlalom {slalom} | R Documentation

## Update a SlalomModel object

### Description

Do one variational update of a SlalomModel to infer model parameters.

### Usage

    updateSlalom(object)

### Arguments

`object` | a `Rcpp_SlalomModel` object

### Details

Update the model with one iteration using variational Bayes methods to infer parameters.

### Value

an 'Rcpp_SlalomModel' object

### Author(s)

Davis McCarthy

### Examples

    gmtfile <- system.file("extdata", "reactome_subset.gmt", package = "slalom")
    genesets <- GSEABase::getGmt(gmtfile)
    data("mesc")
    model <- newSlalomModel(mesc, genesets, n_hidden = 5, min_genes = 10)
    model <- initSlalom(model)
    model <- updateSlalom(model)

[Package slalom version 1.2.0 Index]