Convert a character vector of ensembl gene IDs to an igraph object using the pre-stored gene-gene interactions as undirected edges. Interactions can be filtered by their evidence score.

as_igraph(genes, minscore = 0)

Arguments

genes

character vector of valid ensembl gene IDs (no version suffix)

minscore

numeric between 0 and 1, minimal score for gene-gene interactions to be used

Value

igraph object

Examples

as_igraph(c("ENSG00000130203", "ENSG00000189058"), 0.9)
#> IGRAPH ec181bb UN-- 2 0 -- #> + attr: name (v/c) #> + edges from ec181bb (vertex names):