manhattan_plot_cnv

pylluminator.visualizations.manhattan_plot_cnv(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 CNV data, designed to work with the dataframes returned by copy_number_variation()

Parameters:
  • data_to_plot (pandas.DataFrame) – dataframe to use for plotting. Typically, a dataframe returned by get_dmrs()

  • 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_variation())

  • 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