pegasus.pseudo.write_results_to_excel
- pegasus.pseudo.write_results_to_excel(results, output_file, ndigits=3)[source]
Write pseudo-bulk DE analysis results into a Excel workbook.
- Parameters
results (
Dict[str, pd.DataFrame]) – DE marker dictionary generated bypg.pseudo.markers.output_file (
str) – File name to which the marker dictionary is written.ndigits (
int, optional, default:3) – Round non p-values and q-values tondigitsafter decimal point in the excel.
- Return type
None- Returns
NoneMarker information is written to file with name
output_file. In the generated Excel workbook, each tab stores DE result of up (up) / down (down)-regulated genes.
Examples
>>> pg.pseudo.write_results_to_excel(marker_dict, "result.de.xlsx")