Guide to reproducing OmicVerse trajectory workflows spanning PAGA, Palantir, VIA, velocity coupling, and fate scoring notebooks.
This skill describes how to reproduce and extend the single-trajectory analysis workflow in omicverse, combining graph-based trajectory inference, RNA velocity coupling, and downstream fate scoring notebooks.
pp.neighbors) on the preprocessed AnnData object.tl.paga to compute cluster connectivity and tl.draw_graph or tl.umap with init_pos='paga' for embedding.Palantir on diffusion components, seeding with manually selected start cells (e.g., naïve T cells).via.VIA on the kNN graph to identify lineage progression with automatic root selection or user-defined roots.scv.pp.filter_and_normalize, scv.pp.moments, and scv.tl.velocity to generate velocity layers.adata.layers['velocity'] to refine lineage directionality (via.VIA(..., velocity_weight=...)).scv.tl.latent_time) to validate directionality and root selection.t_cellfate*.ipynb: Map lineage probabilities onto T-cell subsets, quantify fate bias, and visualize heatmaps.t_metacells.ipynb: Aggregate metacell trajectories for robustness checks and meta-state differential expression.t_cytotrace.ipynb: Integrate CytoTRACE differentiation potential with velocity-informed lineages for maturation scoring.sc.pp.normalize_total, sc.pp.log1p).sc.pp.highly_variable_genes).scvi-tools, bbknn).n_neighbors and n_pcs should be harmonized across PAGA, VIA, and Palantir to maintain consistency.knn, too_big_factor, and root_user for datasets with uneven sampling.threshold to control edge sparsity; ensure connected components reflect biological branches.mode='stochastic' vs mode='dynamical' in scVelo; recalibrate if terminal states disagree with VIA.scv.pl.paga) and annotate branch labels.via.plot_fates and via.plot_scatter.scv.pp.moments and scv.tl.velocity ensuring adata.layers['spliced']/['unspliced'] exist; verify loom/H5AD import preserved layers.n_neighbors; confirm batch correction didn’t fragment the manifold.cluster_graph_pruning_iter), or provide manual terminal state hints based on marker expression.