hyp_to_table: Export hyp/multihyp object to table

Description Usage Arguments Examples

View source: R/hyp_to_table.R

Description

Export hyp/multihyp object to table

Usage

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

Arguments

hyp_obj

A hyp or multihyp object

file_path

A file path for hyp objects and directory for multihyp objects

sep

The field separator string

cols

Dataframe columns to include

versioning

Add header with versioning information

Examples

1
2
3
4
5
6
7
8
9
genesets <- msigdb_gsets("Homo sapiens", "C2", "CP:KEGG")

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

hyp_obj <- hypeR(signature, genesets, background=2522)

hyp_to_table(hyp_obj, file_path="pathways.txt")

hypeR documentation built on Nov. 8, 2020, 8:19 p.m.