betas_density
- pylluminator.visualizations.betas_density(samples: Samples, title: None | str = None, group_column: None | str | list[str] = None, color_column: str | None = None, linestyle_column=None, figsize=(10, 7), cmap_name: str = 'Spectral_r', custom_sheet: None | DataFrame = None, apply_mask=True, alpha=0.8, save_path: None | str = None) None
Plot beta values density for each sample
- Parameters:
samples (Samples) – with beta values already calculated
title (str | None) – custom title for the plot to override generated title. Default: None
color_column (str | None) – name of a Sample Sheet column to define which samples get the same color. Default: None
group_column (str | list[str] | None) – compute the average beta values per group of samples. Default: None
linestyle_column (str | None) – name of a Sample Sheet column to define which samples get the same line style. Default: None
figsize (tuple) – size of the figure. Default: (10, 7)
custom_sheet (pandas.DataFrame | None) – a sample sheet to use. By default, use the samples’ sheet. Useful if you want to filter the samples to display
apply_mask (bool) – true removes masked probes from betas, False keeps them. Default: True
cmap_name (str) – name of the matplotlib color map to use. Default: Spectral_r
alpha (float) – transparence of the lines. Float between 0 and 1. Default: 0.8
save_path (str) – if set, save the graph to save_path. Default: None
- Returns:
None