PreprocessMatrix: Preprocess Matrix

Description Usage Arguments Value Examples

View source: R/PreprocessMatrix.R

Description

This script pre-processes a matrix by figuring out what the intervals of asymptotic stability are, as well as finding which perturbation values lead to a sign switch.

Usage

1
2
3
4
5
6
7
8
9
PreprocessMatrix(
  input_file,
  output_folder = NULL,
  prefix = NULL,
  max_bound = 10,
  zero_perturb = FALSE,
  threads = 1,
  verbose = FALSE
)

Arguments

input_file

Input comma separated file for the jacobian matrix.

output_folder

Optional output folder to save python objects to disk. A number of files will be created in the form ‘output_folder/<prefix>_*.npy’. Default is NULL.

prefix

Prefix of output files, if you so choose.

max_bound

some of the matrices are unbounded stable towards one end, this is the limit the user imposes. Default: 10

zero_perturb

Flag to indicate you want to perturb the zero entries. Default: FALSE

threads

Number of threads to use. Default: 1

verbose

Default: FALSE

Value

A list of with the following objects: matrix_size, column_names, row_names, non_zero, num_switch_functions, asymptotic_stability_start, asymptotic_stability_end, num_switch_funcs_r

Examples

1
2
3
4
5
6
7
## Not run: 
infile <- system.file("extdata", "Modules", "IGP.csv", 
    package = "PressPurt") 
PreProsMatrix <- PreprocessMatrix(input_file = infile, 
    output_folder = NULL, max_bound = 10, threads = 2)

## End(Not run)

PressPurt documentation built on Oct. 23, 2020, 8:07 p.m.