sctour.predict.predict_time
- sctour.predict.predict_time(model: sctour.train.Trainer, adata: anndata._core.anndata.AnnData, reverse: bool = False) numpy.ndarray[source]
Predict the pseudotime for query cells.
- Parameters
model – A
sctour.train.Trainerfor trained scTour model.adata – An
AnnDataobject for the query dataset.reverse – Whether to reverse the predicted pseudotime. When the pseudotime returned by get_time() function for the training data was in reverse order and you used the post-inference adjustment (reverse_time() function), please set this parameter to True. (Default: False)
- Returns
The pseudotime predicted for the query cells.
- Return type