DataImport: Data Import

View source: R/DataImport.R

DataImportR Documentation

Data Import

Description

Reads the files and creates a list storing all the information.

Usage

DataImport(TimeSeriesFile, AnnotationFile)

Arguments

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’.

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.

Value

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.

Author(s)

Cordero Francesca, Pernice Simone, Sirovich Roberta

Examples


TimeSeriesFile <- "data/475dataset.xls"
AnnotationFile <- "data/475info.txt"

CONNECTORList <- DataImport(TimeSeriesFile,AnnotationFile)


sysbioTurin/connector documentation built on April 9, 2024, 12:10 p.m.