Utilities

genrisk.utils.draw_qqplot(*, pvals, qq_output)[source]

Generate QQ-plot for given data.

Parameters:
  • pvals (pd.Series) – the list of p_values.

  • qq_output (str) – the path to output the QQplot image.

Return type:

QQPlot

genrisk.utils.draw_manhattan(*, data, chr_col, pos_col, pvals_col, genes_col, manhattan_output)[source]

Generate manhattan plot from a given dataset.

Parameters:
  • data (pd.DataFrame) – a dataframe with pvalues and gene information.

  • chr_col (str) – the column with the chromosomes.

  • pos_col (str) – the column containing the position/start.

  • pvals_col (str) – the column containing the position/start.

  • genes_col (str) – the column containing gene names.

  • manhattan_output (str) – the path to output the manhattan plot image.

Return type:

Manhattan plot