This function checks that the Seurat object contains all the necessary metadata for functions in scFeatures. For scRNA-seq, it must contain sample and celltype. For spatial proteomics, it must contain sample, celltype and and spatial proteomics data, it must contain sample and x_cord and y_cord. For spatial transcriptomics data, it must contain sample, x_cord y_cord and a predictions assay.

check_data(data, type = "scrna")

Arguments

data

A Seurat object containing expression.

type

Type of dataset, either "scrna" (for scRNA-seq), "spatial_t" (for spatial transcriptomics) or "spatial_p" (for spatial proteomics).