Create a ScPhyloExpressionSet object from an expression matrix and metadata.
ScPhyloExpressionSet_from_matrix(
expression_matrix,
strata,
metadata,
groups_column = NULL,
name = "Single-Cell Phylo Expression Set",
...
)A ScPhyloExpressionSet object
Sparse or dense expression matrix with genes as rows and cells as columns
Factor vector of phylostratum assignments for each gene
Data frame with cell metadata, rownames should match colnames of expression_matrix
Character string specifying which metadata column to use for initial grouping (default: first factor column found)
A character string naming the dataset (default: "Single-Cell Phylo Expression Set")
Additional arguments passed to ScPhyloExpressionSet constructor
This function creates a ScPhyloExpressionSet from basic components. The groups_column
parameter determines the initial selected_idents value, which can be changed later
using the setter. All discrete columns in metadata are automatically converted to factors
for consistent handling.