Welcome to Cell2Fate’s documentation!
For installation instructions please see:
For reporting bugs or other issues with Cell2Fate please use GitHub Issues.
The standard recommended workflow for using Cell2Fate can be found in the quick start tutorial.
Quick start tutorial:
Cell2Fate + Cell2Location Workflow
Cell2Fate RNA velocity modules can also be mapped spatially when used together with Cell2Location. To use this workflow, follow these steps:
Run Cell2Fate and save modules, as shown in here.
Install Cell2Location by following the instructions in the Cell2Location GitHub repository.
Run Cell2Location, with the Cell2Fate modules as input, as shown in here.
Cell2Fate + Cell2Location:
See other notebooks to reproduce publication figures.
Reproduce publication figures:
API:
- Prepare data
- Cell2Fate: RNA velocity (scvi-tools/pyro)
- Cell2Fate RNA velocity modules for prediction of cell fates model class (scvi-tools BaseModelClass)
Cell2fate_DynamicalModelCell2fate_DynamicalModel.setup_anndata()Cell2fate_DynamicalModel.train()Cell2fate_DynamicalModel.plot_history()Cell2fate_DynamicalModel.compute_module_summary_statistics()Cell2fate_DynamicalModel.export_posterior()Cell2fate_DynamicalModel.export_posterior_quantiles()Cell2fate_DynamicalModel.view_history()Cell2fate_DynamicalModel.get_module_top_features()
- Pyro and scvi-tools Module classes
- Cell2Fate RNA velocity modules for prediction of cell fates model class (scvi-tools BaseModelClass)
- Plotting
- Methods to compute and visualize velocity graphs and trajectories
Cell2fate_DynamicalModel.compute_velocity_graph_Bergen2020()Cell2fate_DynamicalModel.compute_and_plot_module_velocity()Cell2fate_DynamicalModel.compute_and_plot_total_velocity()Cell2fate_DynamicalModel.visualize_module_trajectories()Cell2fate_DynamicalModel.compute_and_plot_total_velocity_scvelo()utils.compute_velocity_graph_Bergen2020()utils.plot_velocity_umap_Bergen2020()
- Methods to plot module summary statistics and activations
- Other methods to plot top features, genes, and technical variables
- Methods to compute and visualize velocity graphs and trajectories
- General utils
- Pyro and scvi-tools infrastructure classes
- Base mixin classes (AutoGuide setup, posterior quantile computation, plotting & export)
- Scvi-tools Module classes (initialising the model and the guide, PyroBaseModuleClass)
- Auto amortised hierarchical normal messenger for amortized inference
FCLayersPyroAutoAmortisedHierarchicalNormalMessengerAutoAmortisedHierarchicalNormalMessenger.weight_typeAutoAmortisedHierarchicalNormalMessenger.get_posterior()AutoAmortisedHierarchicalNormalMessenger.encode()AutoAmortisedHierarchicalNormalMessenger.median()AutoAmortisedHierarchicalNormalMessenger.quantiles()AutoAmortisedHierarchicalNormalMessenger.training