calc_np_all_legacy {crosstalkr}R Documentation

function to calculate the network potential for each protein in a user-provided vector

Description

Mostly just used to help debug the CPP version - not exported

Usage

calc_np_all_legacy(
  exp,
  g,
  v = as.character(names(igraph::V(g))),
  neighbors = NULL
)

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

v

character vector of nodes over which to calculate network potential.

neighbors

named list containing the neighbors for each node of graph g. If not provided, it will be computed

Value

dataframe containing network potential for each of the inputed gene names.


[Package crosstalkr version 1.0.5 Index]