ProjectPredictionsOntoGraph: Given a graph and a phenotype prediction for each significant...

View source: R/pairwisepredictionfunctions.R

ProjectPredictionsOntoGraphR Documentation

Given a graph and a phenotype prediction for each significant pair, generate a new graph with the phenotype predictions included as the edge weights.

Description

Given a graph and a phenotype prediction for each significant pair, generate a new graph with the phenotype predictions included as the edge weights.

Usage

ProjectPredictionsOntoGraph(predictions, coRegulationGraph)

Arguments

predictions

A matrix of predictions. Each signficant pair of analytes results in a prediction for each subject.

coRegulationGraph

An igraph object. This graph is the co-regulation graph generated using IntLIM analysis of analyte pairs.

Value

A list of igraph objects, one per sample, where each node is an analyte and each edge is a prediction. The weight of the edge is the predicted value using the pair of analytes represented by the edge.


ncats/MultiOmicsGraphPrediction documentation built on Aug. 23, 2023, 9:19 a.m.