API#
Preprocessing#
|
Discretize expression values into |
|
Subset to species-specific manual genes and bin the chosen layer. |
|
Return the manually curated gene list for a species. |
|
Subset/reindex an |
Tools#
|
Map a query dataset onto the reference atlas via scArches surgery. |
|
Embed a query dataset with a packaged SCANVI model and predict cell types. |
|
Predict hierarchical Level-4 cell-type labels for a query dataset. |
|
Wraps the three MLPs of the hierarchical classifier for one species. |
|
A simple feed-forward classifier with BatchNorm + dropout hidden blocks. |
|
Derive a boolean malignant mask from Level-4 labels. |
Plotting#
|
Plot a horizontal bar chart of the value counts of an |
|
Placeholder plotting function kept for template/back-compat purposes. |
Models#
List the directory names of packaged ScanVI models. |
|
Return a mapping {alias -> directory name} for packaged ScanVI models. |
|
|
Load a packaged ScanVI model by alias using scvi-tools' SCANVI.load. |
|
Load the three hierarchical-classifier checkpoints for a species. |