calculateFitnessScores: Calculate Fitness Scores

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/calculateFitnessScores.R

Description

Calculate fitness scores of variants from raw DMS data.

Usage

1
calculateFitnessScores(DMS_data, nonselect_cutoff = 200)

Arguments

DMS_data

Data frame FOR A SINGLE GENE of the form output by readDMS

nonselect_cutoff

Filter out low confidence variants with less than this many reads per million in nonselective conditions. (Default is 200 reads per million)

Details

A more detailed description of what the function does.

Value

Input data frame plus the following columns: select (the average of select1 and select2), nonselect (the average of nonselect1 and nonselect2), fold_change, fitness_score

Author(s)

Rachel Silverstein (aut)

See Also

readDMS The output of this function should be used as input for calculateFitnessScores.

Examples

1
2
3
4
5
6
# this example only works on my computer
setwd("/Users/Rachel/desktop/Roth Lab/R_DMS")
path <- './data/rawData_UBE2I_solid.txt'
gene_name <- 'UBE2I'
raw_data <- readDMS(path, gene_name)
head(calculateFitnessScores(raw_data))

RachelSilverstein/BioTools documentation built on May 3, 2019, 8:34 p.m.