set_one-matrix-method function

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

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

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)

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

Arguments

  • x: numeric matrix representing the network adjacency matrix.

Returns

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

See Also

get_network_matrix

Author(s)

Stefanie Friedrichs

  • Maintainer: Juliane Manitz
  • License: GPL-2
  • Last published: 2024-05-09