data.setup: Data setup for Modular Response Analysis

Description Usage Arguments Value Examples

View source: R/data.setup.R

Description

Checks for possible errors in tables of experimental data and in the perturbation matrix. Returns data properly formated for the mra function.

Usage

1
data.setup(obj, pert.tab = NULL, dec = ".")

Arguments

obj

A character string specifying the path to a folder that contains the experimental data tables and the perturbation rules, or a list containing several data tables, or a single data table.

pert.tab

Optional. The perturbation rule table if not provided in “'obj“'.

dec

The decimal separator as in “'base::read.csv“' (default is ".")

Value

If more than one data table are checked, then a list of matrices in the correct format for the mra function is returned. If a single table is checked, then a single matrix in the right format is returned. It also checks for correspondance with the perurbation rules table.

Examples

1
2
3
4
5
6
#Example using q-PCR data stored in the package files
data=data.setup(list(estr1_A,estr1_B,estr2_A,estr2_B,estr3_A,estr3_B))
#Examples using a gene network from Kholodenko et.al. PNAS 2002 figure a and b
#Here data was obtained from the given R matrix
data.A=data.setup(gene.network.A)
data.B=data.setup(gene.network.B)

bioinfo-ircm/aiMeRA documentation built on Oct. 1, 2021, 8:11 a.m.