pegasus.write_fgsea_results_to_excel

pegasus.write_fgsea_results_to_excel(data, output_file, fgsea_key='fgsea_out', ndigits=3)[source]

Write Gene Set Enrichment Analysis (GSEA) results generated by fgsea function into Excel workbook.

Parameters
  • data (Union[MultomodalData, UnimodalData]) – Single-cell or pseudo-bulk data.

  • output_file (str) – File name for the output.

  • fgsea_key (str, optinoal, default: "fgsea_out") – Key name of GSEA results stored in data.uns field.

  • ndigits (int, optional, default: 3) – Round non p-values and q-values to ndigits after decimal point in the excel.

Return type

None