Reduction_Loading_Present {scCustomize}R Documentation

Check if reduction loadings are present

Description

Check if reduction loadings are present in object and return vector of found loading names. Return warning messages for genes not found.

Usage

Reduction_Loading_Present(
  seurat_object,
  reduction_names,
  print_msg = TRUE,
  omit_warn = TRUE,
  return_none = FALSE
)

Arguments

seurat_object

object name.

reduction_names

vector of genes to check.

print_msg

logical. Whether message should be printed if all features are found. Default is TRUE.

omit_warn

logical. Whether to print message about features that are not found in current object. Default is TRUE.

return_none

logical. Whether list of found vs. bad features should still be returned if no features are found. Default is FALSE.

Value

A list of length 3 containing 1) found features, 2) not found features.

Examples

## Not run: 
reductions <- Reduction_Loading_Present(seurat_object = obj_name, reduction_name = "PC_1")
found_features <- features[[1]]

## End(Not run)


[Package scCustomize version 2.1.2 Index]