scparadise.scnoah.explain#
- scparadise.scnoah.explain(adata, celltype=None, path_model='', num_cells=100, random_state=0, max_evals=2000)[source]#
Identify the genes that are most important for determining cell type using a model.
- Parameters:
adata (AnnData) – Annotated data matrix.
celltype (str, (default: None)) – Specific cell type in annotation to calculate explanations.
path_model (str, path object) – Path to the folder containing the trained scAdam model.
num_cells (int, (default: 100)) – Number of cells to make explanations. Increasing the number of cells will lead to an increase in computation time.
random_state (int, (default: 0)) – Controls the random selection of cells from dataset and explainer for reproducibility. Pass an int for reproducible output across multiple function calls.
max_evals (int, (default: 2000)) – The max_evals parameter in SHAP is a tunable setting that significantly affects both the accuracy and computational efficiency of SHAP value calculations. By adjusting this parameter, you can balance between obtaining detailed explanations and managing computational resources effectively. For a larger number of genes, it is necessary to increase max_evals.
type. (returns explanations of specific cell)