prepare_net_features: Preprocess network edge data

View source: R/prepare_net_features.R

prepare_net_featuresR Documentation

Preprocess network edge data

Description

This function preprocesses edge and node data, combining both outputs into a list object to be used in downstream functions, such as get_igraph().

Usage

prepare_net_features(
  edges.,
  node.ids,
  p.val.cutoff,
  correlation,
  correlation.cutoff,
  sign
)

Arguments

edges.

Output from generate_edges()

node.ids

Output from get_node_ids()

p.val.cutoff

Any pairwise comparison with a p-value greater than this value will be dropped

correlation

Metric for pairwise comparisions (see Hmisc::rcorr())

correlation.cutoff

Values from 0 to 1 accepted. Only relationships with an absolute value of this or greater are kept.

sign

Direction(s) of pairwise relationship to include in network. Values from "positive", "negative", or "all" accepted.


mselensky/bngal documentation built on June 3, 2024, 6:27 a.m.