ReturnChoice {ADImpute} | R Documentation

## Wrapper for return of EvaluateMethods()

### Description

`ReturnChoice` Adjusts the output of `EvaluateMethods` to a character vector or a SingleCellExperiment object. Helper function to ADImpute.

### Usage

    ReturnChoice(sce, choice)

### Arguments

`sce` | SingleCellExperiment; a SingleCellExperiment object if available; NULL otherwise
`choice` | character; best performing method in the training set for each gene

### Value

- if `sce` is provided: returns a SingleCellExperiment with the best performing method per gene stored as row-features. Access via `SingleCellExperiment::int_elementMetadata(sce)$ADImpute$methods`.

- if `sce` is not provided: returns a character with the best performing method in the training set for each gene

[Package ADImpute version 1.2.0 Index]