API#
Import popV as:
import popv
Preprocessing#
For convenience we provide a class that processes query and reference dataset and creates a concatenated dataset. All relevant entries for annotation are stored in the uns object of the returned AnnData.
Import as:
from popv.preprocessing import Process_Query
Processes the query and reference dataset in preparation for the annotation pipeline. |
Annotation pipeline#
This is the core functionality of popV that performs annotation and consensus voting. AlgorithmsNT is a named tuple that summarizes all existing cell-type predictors.
Import as:
from popv.annotation import annotate_data
Dataclass to store all available algorithms. |
|
Annotate an AnnData dataset preprocessed by |
Visualization#
Create bar-plot of prediction scores in query cells after running popv. |
|
Create bar-plot of prediction scores in query cells after running popv. |
|
Create bar-plot of celltype rations in query as well as reference cells after running popv. |
|
Create plot of confusion matrix for different popv methods and consensus prediction. |
Hub#
Pretrained models are stored on HuggingFace and can be downloaded by using pull_from_huggingface_hub that returns a HubModel class.
Encapsulates the required metadata for popV hub models. |
|
Wrapper for |
|
A helper for creating a ModelCard for popV hub models. |
|
Compute and store accuracy metrics for a model. |
Algorithms#
Class to compute KNN classifier after scVI integration. |
|
Class to compute classifier in scANVI model. |
|
Class to compute KNN classifier after BBKNN integration. |
|
Class to compute KNN classifier after Harmony integration. |
|
Class to compute LinearSVC. |
|
Class to compute Random forest classifier. |
|
Class to compute XGboost classifier. |
|
Class to compute OnClass cell-type prediction. |
|
Class to compute KNN classifier after Scanorama integration. |
|
Class to compute Celltypist classifier. |