tomas.vis.violin_2DE
- tomas.vis.violin_2DE(adata_1, adata_2, genes, corrected='para', data_name=['Before correction', 'After correction'], return_fig=None)
Violin plot of gene expressions in global-scaling values and ratio-corrected values.
- Parameters:
adata_1 (AnnData) – The expression matrix after global-scaling normalization. Rows correspond to droplets and columns to genes.
adata_2 (AnnData) – The expression matrix after total-mRNA-ratio-based correction. Rows correspond to droplets and columns to genes.
genes (list of str) – Genes to plot.
return_fig (bool, optional) – Return the matplotlib figure. The default is None.
- Returns:
g
- Return type:
matplotlib figure