hyp_to_table {hypeR}R Documentation

Export hyp/multihyp object to table

Description

Export hyp/multihyp object to table

Usage

hyp_to_table(hyp_obj, file_path, sep = "\t", cols = NULL)

Arguments

hyp_obj

A hyp or multihyp object

file_path

Output file path

sep

The field separator string

cols

Dataframe columns to include

Value

None

Examples

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")


[Package hypeR version 1.2.0 Index]