Usage#
Import the sc-toolbox API as follows:
import sc_toolbox as sct
You can then access the respective modules like:
sct.pl.cool_fancy_plot()
Preprocessing#
Tools#
Generates a table of cells by genes of expression values as a Pandas DataFrame. |
|
Calculates the relative frequencies of conditions grouped by an observation. |
|
Calculates relative frequencies per cluster |
|
Correlations Score (based on cell type signature (logFC)) - alternative to sc.tl.score |
|
Remove outlying cells based on UMAP embeddings with DBScan (density based clustering). |
|
Add columns to existing diffxpy table specifying percentage of expressing cells. |
|
Perform Wilcoxon Rank-sum test between two groups. |
|
@Meshal what is this really supposed to do? |
|
Sorts diffxpy de table and adds percentages of expression per group |
|
Calculate gene to gene correlation based on a mean expression table |
|
Generates an extended marker table with cell types and percentages of expressed cell types per cluster. |
|
Generates a pseudobulk for a given key of groups in the AnnData object. |
|
Calculates a marker gene overlap based on pre-existing annotations. |
|
Add a tabular differential expression result to AnnData as if it was produced by scanpy.tl.rank_genes_groups. |
Plots#
|
Useful Colormaps for e.g. |
|
Create a custom axis object of desired sizes. |
|
Draws a standard line plot based on Seaborn's lmplot. |
|
Draw a line plot showing the gene expression over time. |
|
Plots gene expression over time split by cluster identity. |
|
Plot average gene expression as line plots for multiple clusters at once. |
|
Plots the average gene expression as a line plot per cell. |
|
Plot smoothed expression of all cells ordered by pseudo time. |
|
Plots the relative frequencies as split boxplots. |
|
Draws a boxsplit split by hue. |
|
Plots a dendogram of used marker genes. |
|
Scatter plot of differential gene expression results generated by diffxpy |
Plot relative frequencies as a stacked barplot. |
|
|
Plot gene values as split boxplots. |
|
Draw an overview plot of all used colors. |
|
Plot relative frequencies as a line plot. |
|
Plots a UMAP which is colored by the primary_color, but also draws all labels on top of all clusters. |
|
Plots a two UMAPs of genotypes next to each other displaying only the colors of the second UMAP. |