Description Usage Arguments Value
Calculates the Direction of Selection (DoS) statistic from McDonald-Kreitman contingency tables.
1 | calculate_dos(dat, test = TRUE, clean = TRUE)
|
dat |
A gene by substitution type data frame or tibble. Each row must correspond to a gene and it must have columns Dn, Ds, Pn and Ps, corresponding to the McDonald-Kreitman contingency table of each gene. |
test |
It TRUE, a Z-test will be performed on the DoS statistic. |
clean |
If TRUE, genes where DoS is undefined (either Dn and Ds are both zero, or Pn and Ps are both zero), will be removed from the result. |
A tibble with the same columns as Dat plus a column named DoS. If test is passed, a column named p.value will also be included unless such a column already exists. In that case a column with the name DoS.p.value will be included
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.