cns_manhattan_plot
- pylluminator.visualizations.cns_manhattan_plot(data_to_plot: DataFrame, segments_to_plot=None, x_col='start_bin', chromosome_col='chromosome', y_col='cnv', figsize: tuple[float, float] | None = (10, 8), title: None | str = None, save_path: None | str = None) None
Display a Manhattan plot of the given CNS data, designed to work with the dataframes returned by copy_number_segmentation()
- Parameters:
data_to_plot (pandas.DataFrame) – dataframe to use for plotting. Typically, the bins coordinate dataframe returned by copy_number_segmentation()
segments_to_plot (pandas.DataFrame) – if set, display the segments using columns “chromosome”, “start”, “end” and “mean_cnv” of the given dataframe, where start and end are the position on the chromosome (as returned by copy_number_segmentation())
chromosome_col (str) – the name of the chromosome column in the data_to_plot dataframe. Default: chromosome
x_col (str) – name of the column to use for X axis, start position of the probe/bin. Default: start_bin
y_col (str) – the name of the value column in the data_to_plot dataframe. Default: cnv
figsize (tuple) – size of the figure. Default: (10, 8)
title (str | None) – custom title for the plot. Default: None
save_path (str | None) – if set, save the graph to save_path. Default: None
- Returns:
None