mInw: Create maximum input network

View source: R/mInw.R

mInwR Documentation

Create maximum input network

Description

Extracts, from a background network with optimised weights, the maximum input network with tolerance

Usage

mInw(nwTable, intgNone, nodes2link, tol, targets.On)

Arguments

nwTable

a background network data frame (from interactions(pknList)), with appropriate optimised weights in the ntag column (this is what is used to decide on the max input)

intgNone

a numeric vector of the same length as the number of integrators, that has the "no input" weight for each integrator; this vector should be named (mapping to the integrators names)

nodesOF

a list created by nodesData, containing an element "On" which is a character vector of names of those nodes that we are trying to reach (i.e. they match nodes in the S.cc column of the background network, and should normally be data nodes, although they don't have to be), and an element "OnList" containing the same but organised as a list by condition

tol

a single number between 0 and 1, the relative tolerance around the maximum input edge that we allow (!not to be confused with the optimisation tolerance that is the tolerance used in selecting best models for weights correction at each generation)

targets.On

a list of character vectors containing the K/P perturbed under each condition (one condition=one element of the list)

Details

The maximum input edge is picked based on the "ntag" column of the nwTable data frame, so it should contain the appropriate values: if we want a standard ntag network, then ntag should be interactions(pknList) (of the last generation), if we want a frequency based network, then nwTable$ntag should be opres$FE[match(nwTable$SID, rownames(opres$FE)),dim(opres$FE)[2]] where opres is the list resulting from the oRes function. If we are working with combined optimisations, then the ntag column should contained the averaged equivalents of the vectors just mentioned.

Value

a data frame of interactions that is a subset of the starting one

Author(s)

C. Terfve


saezlab/PHONEMeS-ILP documentation built on June 21, 2022, 5:36 p.m.