Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

set_one-matrix-method

Helper function to set matrix entries to 0/1/-1 only


Description

This function sets all entries in a matrix bigger than 1 to 1 and all entries smaller than -1 to -1. It is called by get_network_matrix. (For internal use)

Usage

## S4 method for signature 'matrix'
set_one(x)

Arguments

x

numeric matrix representing the network adjacency matrix.

Value

A matrix representing the interaction network in the pathway object with entries equal to 1, -1 or 0.

Author(s)

Stefanie Friedrichs

See Also


kangar00

Kernel Approaches for Nonlinear Genetic Association Regression

v1.4
GPL-2
Authors
Juliane Manitz [aut], Stefanie Friedrichs [aut], Patricia Burger [aut], Benjamin Hofner [aut], Ngoc Thuy Ha [aut], Saskia Freytag [ctb], Heike Bickeboeller [ctb]
Initial release
2020-02-12

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.