Calculate Mutually Exclusive Co-expression Rate (MECR) which is a metric used for determining specificity.
Arguments
- seu_obj
A seurat object.
- expMat
Path to exprMatrix file.
- platform
The platform from which the data originates. Valid options are 'Xenium', 'CosMx', and 'Merscope'.
Value
A data frame containing the sample_id
, platform
, and the computed
MECR value. The MECR value is rounded to three decimal places and represents
the average mutually exclusive co-expression rate across the selected markers.
Details
Based on a predefined set of markers and their associated cell types, this function computes the rate at which pairs of markers are expressed in mutually exclusive patterns within cells. The calculation is limited to markers found in the dataset and can be adjusted to focus on a subset by specifying it. The result is a single MECR value that quantifies the overall mutually exclusive co-expression pattern, rounded to three decimal places.