pseudodynamics.de_test._base.fitGAM¶
- pseudodynamics.de_test._base.fitGAM(count_matrix, cell_time, n_knots=7, cell_weights=None, gene_symbol=None)[source]¶
Fits a GAM model per gene using pseudotime.
Args:¶
- count_matrixnp.ndarray
Gene expression matrix (cells x genes).
- cell_timenp.ndarray
Pseudotime values for cells.
- n_knots: int
Number of knots for spline fitting.
- cell_weightsnp.ndarray
Optional weights for each cell.
Returns:¶
: GAMResult: dict
Dictionary containing fitted models and metadata.