Skip to contents

Check for valid INTEGRATION_SOURCES parameter.

Usage

.check_integration_methods(
  integration_methods,
  method_names = c("uncorrected", "rescaling", "regression", "mnn", "harmony"),
  params = c("pca_selection_method", "pca_forced_pcs", "tsne_perp", "tsne_max_iter")
)

Arguments

integration_methods

A named list.

method_names

A character vector: valid names of integration methods.

params

A character vector: names of valid parameters for each integration method.

Value

Invisibly TRUE if all checks are valid.