Learn R Programming

CellNOptR (version 1.18.0)

readMIDAS: Reads in a CSV MIDAS file

Description

This function takes in a single argument, the name of a CSV MIDAS file containing the data, and returns a list that contains all the elements to build a CNOlist. The output of this function should be used as input for makeCNOlist.

Usage

readMIDAS(MIDASfile, verbose=TRUE)

Arguments

MIDASfile
a CSV MIDAS file (see details)
verbose
logical (default to TRUE).

Value

this function returns a list with fields:
dataMatrix
matrix containing the data in the MIDAS file
TRcol
indexes of the columns that contain the treatments (excluding cell line)
DAcol
indexes of the columns that contain the data time points
DVcol
indexes of the columns that contain the actual values (measurements)

Details

This function does not return a CNOlist, but the output of this function can be used directly into makeCNOlist to create one. The MIDAS file format is described in Saez-Rodriguez et al. (2008).

If you have all of the readouts measured at the same series of time points, you can specify a unique DA: column which must have the format "DA:ALL".

References

J. Saez-Rodriguez, A. Goldsipe, J. Muhlich, L. Alexopoulos, B. Millard, D. A. Lauffenburger, P. K. Sorger Flexible Informatics for Linking Experimental Data to Mathematical Models via DataRail. Bioinformatics, 24:6, 840-847 (2008).

See Also

makeCNOlist

Examples

Run this code
   tmpdir<-tempdir()
   setwd(tmpdir)
   cpfile<-dir(system.file("ToyModel",package="CellNOptR"),full=TRUE)
   file.copy(from=cpfile,to=getwd(),overwrite=TRUE)
   dataToy<-readMIDAS(MIDASfile='ToyDataMMB.csv')
   CNOlistToy<-makeCNOlist(dataset=dataToy,subfield=FALSE)

Run the code above in your browser using DataLab