View source: R/calculateFitnessScore.R
calculateFitnessScore | R Documentation |
Using sequence counts before and after selection, calculate fitness scores as described by Diss and Lehner (2018).
calculateFitnessScore(
se,
pairingCol,
ODCols,
comparison,
WTrows,
selAssay = "counts"
)
se |
SummarizedExperiment object as returned by
|
pairingCol |
Name of column in |
ODCols |
Name(s) of column(s) in |
comparison |
3-element character vector of the form
|
WTrows |
Vector of row names that will be used as the reference when calculating fitness scores. If more than one value is provided, the average of the corresponding fitness scores is used as a reference. If NULL, no division by WT scores will be done. |
selAssay |
Assay to select from |
A numeric vector with fitness scores.
Michael Stadler and Charlotte Soneson
"The genetic landscape of a physical interaction." Diss G and Lehner B. Elife. 2018;7:e32472. doi: 10.7554/eLife.32472.
se <- readRDS(system.file("extdata", "GSE102901_cis_se.rds",
package = "mutscan"))
## Check that the wildtype sequence is present in the data
stopifnot("f.0.WT" %in% rownames(se))
## Calculate PPI scores as defined in Diss & Lehner (2018)
ppis <- calculateFitnessScore(
se = se, pairingCol = "Replicate",
ODCols = c("OD1", "OD2"),
comparison = c("Condition", "cis_output", "cis_input"),
WTrows = "f.0.WT")
## Matrix with PPI scores for each replicate
head(ppis)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.