hyp_to_table {hypeR} | R Documentation |
Export hyp/multihyp object to table
hyp_to_table(hyp_obj, file_path, sep = "\t", cols = NULL)
hyp_obj |
A hyp or multihyp object |
file_path |
Output file path |
sep |
The field separator string |
cols |
Dataframe columns to include |
None
gsets <- hyperdb_fetch(type="gsets", "KEGG_2019_Human") signature <- c("IDH3B","DLST","PCK2","CS","PDHB","PCK1","PDHA1","LOC642502", "PDHA2","LOC283398","FH","SDHD","OGDH","SDHB","IDH3A","SDHC", "IDH2","IDH1","OGDHL","PC","SDHA","SUCLG1","SUCLA2","SUCLG2") # Perform hyper enrichment hyp_obj <- hypeR(signature, gsets, bg=2522, fdr_cutoff=0.05) # Export hyp_to_table(hyp_obj, file_path="pathways.txt")