hyp_to_graph: Convert a hyp object to an igraph object

View source: R/hyp_to_graph.R

hyp_to_graphR Documentation

Convert a hyp object to an igraph object

Description

Convert a hyp object to an igraph object

Usage

hyp_to_graph(hyp_obj)

Arguments

hyp_obj

A hyp object

Value

An igraph object

Examples

genesets <- hyperdb_rgsets("REACTOME", "70.0")

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)

ig <- hyp_to_graph(hyp_obj)


montilab/hypeR documentation built on Oct. 29, 2023, 12:01 p.m.