spared.plotting.plot_mean_std
- spared.plotting.plot_mean_std(dataset: str, processed_adata: AnnData, raw_adata: AnnData, path: str) None[source]
Plot mean and std of all genes
This function plots a scatter of mean and standard deviation of genes present in raw_adata (black) and all the layers with non-zero mean in processed_adata. It is used to see the effect of filtering and processing in the genes. The plot is saved to the specified path.
- Parameters:
dataset – Name of the dataset
processed_adata (ad.AnnData) – Processed and filtered data ready to use by the model.
raw_adata (ad.AnnData) – Data loaded data from .h5ad file that is not filtered but has patch information.
path (str) – Path to save the image.