API
Fitting
Fitting Dirichlet-Multinomial(DMN) models and logNormal distributions of single-cell UMI counts.
|
Fit Dirichlet-Multinomial distribution with UMI counts of homo-droplet populations. |
Inference
Inferring heterotypic doublets and the total-mRNA ratios between two cell types.
|
Extract metagenes from raw UMI counts of heterotypic doublets. |
|
Extract metagenes from raw UMI counts of a certain type of heterotypic doublets. :param adata: The (annotated) UMI count matrix of shape |
|
Infer the total-mRNA ratio between two cell types given the heterotypic doublets composed by the two cell types. |
|
Identification and refinement of heterotypic doublets |
|
Identification and refinement of a certain type of heterotypic doublets specified by "dbl". |
Total-mRNA-ratio-aware analyses
Performing total-mRNA-ratio-aware analyses including differential expression (DE) analysis and gene set enrichment (GSEA) analysis (under construction).
|
Total-mRNA-aware differential expression analysis. :param adata_rc: The ratio-based corrected UMI counts. Rows correspond to droplets and columns to genes. :type adata_rc: AnnData :param groupby: The key of the droplet categories stored in adata.obs. :type groupby: str :param reference: One droplet category annotated in adata.obs[groupby]. Compare with respect to the specified group. :type reference: str :param groups: Droplet categories annotated in adata.obs[groupby] to which DE analysis shoudl be performed with. The default is None. :type groups: list, optional :param minCells: Minimum number of cells in one of the group. The default is 5. :type minCells: int, optional :param n_cores: Number of cpu cores be used. If not given, generally 80% cpu cores woueld be used. :type n_cores: int, optional :param pval_cutoff: Significance level. The default is 0.05. :type pval_cutoff: float, optional :param logFC_cutoff: Cutoff of log2-foldchange to tell the DE significance. The default is 0. :type logFC_cutoff: float, optional :param method: The method to perform DE analysis, such as 'wilcoxon' or 'lrt'. The default is 'wilcoxon'. :type method: str, optional. |
|
Extract DE results from Anndata into a table. |
|
Compare and summarize two DE results. |
Visualization
|
Visualize the log-UMI-amount distribution. |
|
Visualize the convergence of DMN optimation process. |
|
Compare raw log-UMI-amount distributions versus ratio-based corrected log-UMI-amount distributions. |
|
Plot the volcano plot of 2 DE results stored in 'de_df'. |
|
Violin plot of gene expressions in global-scaling values and ratio-corrected values. |
Auxiliary functions
|
Correct UMI to meet the estimated total-mRNA-ratio. |
|
Extract specifically highly expressed genes of each cell type based on DE results. |