DataImport | R Documentation |
Reads the files and creates a list storing all the information.
DataImport(TimeSeriesFile, AnnotationFile)
TimeSeriesFile |
The name of the excel file storing the growth evolution data. See ‘Details’. |
AnnotationFile |
The name of a txt/csv file storing the annotation data. See ‘Details’. |
Two files are requested to run the data analysis exploiting the CONNECTOR package:
the excel file, namely TimeSeriesFile, reporting the growth evolution data,
the csv file, namely AnnotationFile, containing the annotation information associated with the samples.
Hence, the growth data associated with an experiment must be stored into TimeSeriesFile as a table with two columns for each sample. The first column, labeled Time, contains the time points of a sample. The second column, labeled by the sample name, contains the data observation over the time.
Instead, the second file (i.e. AnnotationFile) stores the annotated information associated with the samples as a table in csv format so that number of rows is equals to the total number of samples.
DataImport returns a list, called ConnectorList, with four arguments: (i) Dataset: data frame with three columns (i.e. ID, data and time values) encoding the growth data for each sample, (ii) LenCurv: the vector reporting the number of observations collected per sample (iii) LabCurv: the data frame matching the samples with their annotations, (iv) TimeGrid: the vector storing all the sample time points (i.e. time grid). Furthermore, it prints a brief summary of the input data, i.e. the total number of curves (samples), the minimum and the maximum curve length.
Cordero Francesca, Pernice Simone, Sirovich Roberta
TimeSeriesFile <- "data/475dataset.xls"
AnnotationFile <- "data/475info.txt"
CONNECTORList <- DataImport(TimeSeriesFile,AnnotationFile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.