Join single-cell gene expression matrix with a phylostratum mapping to create a ScPhyloExpressionSet object.
match_map_sc_matrix(
expression_matrix,
metadata,
phylomap,
strata_legend = NULL,
...
)A ScPhyloExpressionSet object
Expression matrix with genes as rows and cells as columns
Data frame with cell metadata, rownames should match colnames of expression_matrix
A data frame with two columns: phylostratum assignments and gene IDs
A data frame with two columns: phylostratum assignments and name of each stratum. If NULL, numeric labels will be used (default: NULL)
Additional arguments passed to ScPhyloExpressionSet_from_matrix
This function combines phylostratum mapping with expression matrix and metadata to create a ScPhyloExpressionSet. Only genes present in both the expression matrix and phylomap will be retained. All discrete metadata columns are converted to factors automatically.