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