add_expression: attach expression values from user-provided expression vector...

View source: R/utils.R

add_expressionR Documentation

attach expression values from user-provided expression vector to graph.

Description

attach expression values from user-provided expression vector to graph.

Usage

add_expression(exp, g)

Arguments

exp

expression vector - assumed to be a named vector where the values are expression and the names are the gene name

g

igraph object - will be filtered so that only nodes found in both exp and g are kept

Value

subgraph of g containing only shared keys with exp and with expression attached.


DavisWeaver/crosstalkr documentation built on May 6, 2024, 6:09 p.m.