Skip to contents

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(data = NULL, srt = NULL, layer = "data", assay = NULL)

Arguments

data

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

srt

An object of class 'Seurat'.

layer

The layer 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".