plotting¶
This module implements plotting functions for the oddSNP package, including functions to visualize the results of SNP-IC and cpSNP-IC calculations.
Python API¶
- oddSNP.plotting.generate_cpsnpic_plot(histofile)[source]¶
Generate a cpSNP-IC histogram figure
- Parameters:
histofile – File that contains histogram data, a list of bin centers and counts.
- Returns:
The generated figure object.
- Return type:
plotly.graph_objects.Figure
- oddSNP.plotting.generate_donor_distribution_plot(barsfile)[source]¶
Generate a stacked bar plot showing the distribution of correct and incorrect classifications across donors.
- Parameters:
barsfile – File that contains the data for the plot, a DataFrame with columns ‘donor’ and ‘correct’.
- Returns:
The generated figure object.
- Return type:
plotly.graph_objects.Figure
- oddSNP.plotting.generate_snpic_plot(histofile)[source]¶
Generate a SNP-IC histogram figure and return the generated figure object.
- Parameters:
histofile – File that contains histogram data, a list of bin centers and counts.
- Returns:
The generated figure object.
- Return type:
plotly.graph_objects.Figure