spared.plotting.plot_mean_std_partitions

spared.plotting.plot_mean_std_partitions(dataset: str, processed_adata: AnnData, from_layer: str, path: str) None[source]

Plot mean and std of genes by data split

This function plots a scatter of mean and standard deviation of genes present in processed_adata drawing with a different color different data splits (train/val/test). This is all done for the specified layer in the from_layer parameter. This function is used to see how tractable is the task. 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.

  • from_layer (str) – The key in adata.layers where the expression matrix is stored.

  • path (str) – Path to save the image.