Analysis#
Adds quality-control metrics to obs for each cell: the sum of counts across all genes (num_counts), the number of genes with non-zero expression (num_genes), and the fraction of counts that are mitochondrial (mito_fraction). |
|
Adds a Boolean column to obs indicating which cells passed quality control (QC), or subsets to these cells if subset=True. |
|
Find doublets using cxds (co-expression-based doublet scoring). |
|
Get a DataFrame of sample-level covariates, i.e. the columns of obs that are the same for all cells within each sample. |
|
Pseudobulk a SingleCell dataset with sample ID and cell type columns. |
|
Select highly variable genes using the same approach as Seurat. |
|
Normalize this SingleCell dataset's counts. |
|
Compute principal components (PCs) across cells. |
|
Calculate the num_neighbors nearest neighbors of each cell. |
|
Calculate the shared nearest neighbor graph of this dataset's cells. |
|
Harmonize this SingleCell dataset with other datasets, or harmonize multiple batches of the same dataset, with Harmony2. |
|
Cluster cells into cell types using Leiden clustering. |
|
Transfer cell-type labels from another dataset to this one, using the two datasets' Harmony embeddings from harmonize(). |
|
Calculate a two-dimensional embedding of this SingleCell dataset with UMAP (Uniform Manifold Approximation and Projection), suitable for plotting with plot_embedding(). |
|
Calculate a two-dimensional embedding of this SingleCell dataset suitable for plotting with plot_embedding(). |
|
Calculate a two-dimensional embedding of this SingleCell dataset suitable for plotting with plot_embedding(). |
|
Find "marker genes" that distinguish each cell type from all other cell types. |
|
Plot a heatmap of the count of each combination of two categorical columns, x and y. |
|
Make a dot plot of a set of marker genes of interest across cell types. |
|
Plot a UMAP embedding created with umap(). |
|
Plot a PaCMAP embedding created with pacmap(). |
|
Plot a LocalMAP embedding created with localmap(). |
|
Plot the specified 2D embedding. |