analyseRootData: Calculates average of Root Measurements

View source: R/analyseRootData.R

analyseRootDataR Documentation

Calculates average of Root Measurements

Description

Given a user defined inputFile path, which contains the GeneLines names, and the root length values of the control treatments, the function will normalize the root length measurements. For this, the user must include and specify which treatment in the inputFile is the control treatment.

Usage

analyseRootData(inputFile, controlTreatment, outputFile)

Arguments

inputFile

A string representing the path for the .csv file containing Root Length Data

controlTreatment

A string representing the control Treatment included in inputFile

outputFile

A name of a files to which the calculated averages will be exported

Details

After calculating the average root length of the control treatment for each root line, and the average root length of each treatment, the treatments will be normalized by the control treatment average.

The function will then output the new root output data to a user specified output file

Value

Output is data frame of data output file. In addition, data is exported to the outputFile

Examples

## Not run: 
#Example 1:
# Normalizing root data and calculating average of root treatments.
#file inputFileFunc2, first column are the gene Lines, MEX, TEX and WES columns are 3 differnet root treatments
input <- system.file("extdata", "inputFileFunc2.csv", package = "FastRPA")
outputFile <- system.file("extdata", "outputFileFunc2.csv", package = "FastRPA")
analyseRoot <- analyseRootData(inputFile = input, controlTreatment = "WES",
                            outputFile = outputFile)

## End(Not run)


ErikEnsminger/FastRPA documentation built on Sept. 29, 2023, 12:35 a.m.