This function takes in a monocle3 object and returns a smoothed pseudotime matrix for the given gene list, either in counts or normalized form. The function first matches the gene list with the rownames of the SummarizedExperiment object, and then orders the pseudotime information. The function then uses smooth.spline to apply smoothing to the data. Finally, the function normalizes the data by subtracting the mean and dividing by the standard deviation for each row.
pre_pseudotime_matrix(
cds_obj = NULL,
assays = c("counts", "normalized"),
gene_list = NULL
)
A smoothed pseudotime matrix for the given gene list
A monocle3 object
Type of assay to be used for the analysis, either "counts" or "normalized"
A vector of gene names