check_DataType: Check and report the type of data

View source: R/SCP-workflow.R

check_DataTypeR Documentation

Check and report the type of data

Description

This function checks the type of data and returns a string indicating the type of data. It checks for the presence of infinite values, negative values, and whether the values are floats or integers.

Usage

check_DataType(srt, data = NULL, slot = "data", assay = NULL)

Arguments

srt

An object of class 'Seurat'.

data

The input data. If not provided, it will be extracted from the the 'srt' object.

slot

The slot in the 'srt' object from which to extract the data. Default is "data".

assay

The assay to extract the data from. If not provided, the default assay will be used.

Value

A string indicating the type of data. Possible values are: "raw_counts", "log_normalized_counts", "raw_normalized_counts", or "unknown".


zh542370159/SCP documentation built on Nov. 22, 2023, 2:34 a.m.