Description Usage Arguments Details Value Author(s) Examples
View source: R/data_handling_functions.R
Check in how many patients pairs are mutated in
1 | pairs_in_patients_hist(clone_tbl)
|
clone_tbl |
The tibble containing the information of
which gene/pathway is mutated in which
clone from which patient and in which tree from the collection
of trees. Can be generated with |
After having created the tibble with all gene-to-clone assignments from all patients and the whole collection of trees, we're interested in how many patients tha pairs are mutated in. This function creats a histogram that shows in how many patients the pairs are mutated in.
The tibble that summarizes the number of pairs that occur in how many patients.
Ariane L. Moore
1 2 3 4 5 6 7 8 | clone_tbl <- dplyr::tibble("file_name" =
rep(c(rep(c("fn1", "fn2"), each=3)), 2),
"patient_id"=rep(c(rep(c("pat1", "pat2"), each=3)), 2),
"altered_entity"=c(rep(c("geneA", "geneB", "geneC"), 4)),
"clone1"=c(0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0),
"clone2"=c(1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 1),
"tree_id"=c(rep(5, 6), rep(10, 6)))
pairs_in_patients_hist(clone_tbl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.