Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.18 KB

README.md

File metadata and controls

26 lines (19 loc) · 1.18 KB

Companion code to the paper:
Tumour lineage shapes BRCA-mediated phenotypes

Code in this repository can be used to recreate the essential parts of the main figures in the manuscript. All code is in R.

Instructions

Install required R packages:

install.packages(c('knitr', 'plyr', 'tidyverse', 'patchwork', 'binom', 'ggrepel', 'grid', 'readxl', 'ggbeeswarm', 'here', 'survival', 'survminer'))

Get supplementary data from manuscript and download germline data from dbGaP.

Place these in the data folder, with the names Taylor_SItables.xlsx, germline_mutations.maf, and germline_cnvs.txt, or manually enter the file paths in the prerequisites.R script in the r directory.

An HTML file containing the figures can be generated from the command-line for each main figure as such:

R -e "rmarkdown::render('r/figure-1.Rmd', output_file = 'figure-1.html')"

Citation

Contact

E-mail any questions to [email protected].