troutpy.pl.logfoldratio_over_noise#
- troutpy.pl.logfoldratio_over_noise(sdata, control_key='control_probe', test_method='auto', figures_path='', save=False, custom_plot_filename=None, palette='troutpy')#
Plot a violin plot comparing
logfoldratio_over_noisefor control vs non-control probes.A statistical test is used to compare the two groups, and the result is annotated on the plot.
- Parameters:
sdata (
SpatialData) – SpatialData object that contains anxrna_metadatatable with avarDataFrame.control_key (
str(default:'control_probe')) – Column insdata["xrna_metadata"].varindicating which probes are controls.test_method (
str(default:'auto')) – Statistical test to use:"t-test"(Welch’s t-test),"mannwhitney"(Mann-Whitney U test), or"auto"to choose based on a Shapiro-Wilk normality test of both groups.figures_path (
str(default:'')) – Directory path to save the figure.save (
bool(default:False)) – Whether to save the figure.custom_plot_filename (
Optional[str] (default:None)) – Custom filename for saving the plot.palette (
str(default:'troutpy')) – Two-color palette name, resolved viatroutpy.pl.get_palette(). Falls back to a Matplotlib colormap, then to grey/black, if neither is found.
- Return type:
- Returns:
None