README.md

Fitness_Assay_Package

To use the Lang Lab Fitness Assay Package:

from the R console library(devtools)

install_github("LangYeastEvoLab/FitnessAssayAnalysis")

Package dependencies

Input data format

This script is based on inputs generated by FlowJo and a user supplied well key that identifies the competitions. Note - when reading in data - stringsAsFactors=FALSE!!

A Well_key and FC_data template can be found as txt files in this repository. Well_key column names must match the provided template.

Functions

Spot_check_data

output<- Spot_check_data(your well_key, your_flow_data) - goes through every sample (every well) and determines standard error. - creates two plots in working directory: - std_error_hisotgram.pdf histogram of sample standard errors - raw_data_plots.pdf plots time course ln(exp/ref) for each well

Eliminate poor samples? (TRUE/FALSE)

Analyze_Fitness_Data

output <- Analyze_Fitness_Data(your well_key, your_flow_data) - cacluates the coefficient of selection of a query strain using time-course compettive growth assay flow cytometry data - output is a table of selection coefficient, standard error, and 95% CI for each competition or replicate group

Group replicates? (TRUE/FALSE):

Calculate error? (TRUE/FALSE):

Plot results? (TRUE/FALSE):

### Fitness_ANCOVA output<-Fitness_ANCOVA(your well_key, your_flow_data) - Uses an ANCOVA (analysis of covariance) to look for statistical differences in slope between competitions. - User options remain the same as Analyze_Fitness_Data. - Output is a summary of the ANCOVA on the linear models of all competitions. If there are significant differences amongst competitions, the console will print out a message indicating that.

Fitness_ANCOVA_post_hoc

output<- Fitness_ANCOVA_post_hoc(output_of_Fitness_ANCOVA) - output of Fitness_ANCOVA can be fed into Fitness_ANCOVA_post_hoc if the former finds a significant interaction of competition and generation on fitness. - will perform a TUKEY HSD post hoc test to find pairwise differences in your data - output generated will be a table of all pairwise comparisons and their individual p values - significant results will also print to the console.



LangYeastEvoLab/FitnessAssayAnalysis documentation built on May 8, 2019, 2:40 p.m.