getPanelSize Get Panel Size from Expression Matrix or Seurat Object.
Source:R/utils_update_final.R
getPanelSize.Rd
Calculate the size of the panel by counting the number of features in an expression matrix, excluding negative or control features. It can handle different types of expression data input, including direct paths to expression matrices or Seurat object with embedded expression data.
Arguments
- seu_obj
An optional Seurat object containing the expression data. If provided, the function will calculate the panel size based on the number of features present in the object.
- expMat
The path to the expression matrix file or directory containing expression data files. This parameter is used if no Seurat object is provided. The function supports both flat files and Hierarchical Data Format (HDF5) files.
- platform
The platform from which the data originates. Valid options are 'Xenium', 'CosMx', and 'Merscope'.