scanpy-GPU#
These functions offer accelerated near drop-in replacements for common tools provided by scanpy [WAT18].
Preprocessing pp#
Filtering of highly-variable genes, batch-effect correction, per-cell normalization.
Any transformation of the data matrix that is not a tool.
Other than tools, preprocessing steps usually don’t return an easily interpretable annotation, but perform a basic transformation on the data matrix.
Basic Preprocessing#
|
Calculate basic quality-control metrics [MCLW17]. |
|
Filter cell outliers based on counts and numbers of genes expressed. |
|
Filter genes based on number of cells or counts. |
|
Normalizes rows in matrix so they sum to |
|
Normalize counts with the shifted centered log-ratio (PFlog) transform [BHGMP26]. |
|
Logarithmize the data matrix. |
|
Take the square root of the data matrix. |
|
Annotate highly variable genes [AH19, LBK21, SFG+15, SBH+19, ZTB+17]. |
|
Use linear regression to adjust for the effects of unwanted noise and variation. |
|
Scales matrix to unit variance and clips values |
|
Principal component analysis using GPU acceleration [HMT09, TQOA24]. |
|
Applies analytic Pearson residual normalization [LBK21]. |
Batch effect correction#
|
Integrate different experiments using the Harmony algorithm [KMF+19, PYM+26]. |
Protein (ADT) normalization#
Doublet detection#
|
Predict doublets using Scrublet [WLK19]. |
|
Simulate doublets by adding the counts of random observed transcriptome pairs. |
Neighbors#
Output types#
Functions with several outputs return a …Result if passed out=True,
and take a …Out mapping as out to write each output to a place of choice.
Outputs of |
|
Where a mapping |
|
Outputs of |
|
Where a mapping |
|
Outputs of |
|
Where a mapping |
|
Outputs of |
|
Where a mapping |
|
Outputs of |
|
Where a mapping |
|
Outputs of |
|
Where a mapping |
|
Outputs of |
Tools: tl#
tools offers tools for the accelerated processing of AnnData. For visualization use scanpy.pl.
Embedding#
|
|
|
|
|
|
|
|
|
Calculate the density of cells in an embedding (per condition). |
Data integration#
|
Map labels and embeddings from reference data to new data. |
Clustering#
Gene scores, Cell cycle#
|
|
|
Score cell cycle genes [SNS+15]. |
Marker genes#
|
Rank genes for characterizing groups using GPU acceleration. |
Output types#
Outputs of |
|
Where a mapping |
Plotting#
For plotting please use scanpy’s plotting API scanpy.pl.