Description Usage Arguments Value Author(s)
View source: R/calc_mahalanobis_dist_plasmid.R
Calculates the Mahalanobis distance ratio for control vs plasmid and treatment vs plasmid.
1 2 3 4 5 6 | calc_mahalanobis_dist_plasmid(
counts,
plasmid_sample_id,
control_sample_id,
treat_sample_id
)
|
counts |
A data frame of normalized counts for each sample in the study (samples as columns, gRNAs as rows). |
plasmid_sample_id |
A character vector naming the plasmid sample(s). |
control_sample_id |
A character vector naming the control sample(s). |
treat_sample_id |
A character vector naming the treatment sample(s). Ignored if 'NULL'. |
A data frame with the following column(s): ‘mahalanobis_dist_ratio.<comp>' where ’<comp>' is one of 'ctrl_plasmid' or 'treat_plasmid'.
Alex T. Kalinka, alex.kalinka@cancer.org.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.