getFromSeurat: Safe extraction

View source: R/getA-G.R

getFromSeuratR Documentation

Safe extraction

Description

A wrapper around base::tryCatch() with predefined error handling messages if extraction from seurat-object failed.

Usage

getFromSeurat(return_value, error_handling, error_value, error_ref)

Arguments

return_value

Whatever needs to be extracted.

error_handling

Either 'warning or 'stop'.

error_value

What is supposed to be returned if extraction fails.

error_ref

The reference for the feedback message.


kueckelj/SPATA2 documentation built on March 16, 2024, 10:25 a.m.