Last updated: 2020-09-13

Checks: 6 1

Knit directory: transcriptome_cll/

This reproducible R Markdown analysis was created with workflowr (version 1.4.0). The Checks tab describes the reproducibility checks that were applied when the results were created. The Past versions tab lists the development history.


The R Markdown is untracked by Git. To know which version of the R Markdown file created these results, you’ll want to first commit it to the Git repo. If you’re still working on the analysis, you can ignore this warning. When you’re finished, you can run wflow_publish to commit the R Markdown file and build the HTML.

Great job! The global environment was empty. Objects defined in the global environment can affect the analysis in your R Markdown file in unknown ways. For reproduciblity it’s best to always run the code in an empty environment.

The command set.seed(20190511) was run prior to running the code in the R Markdown file. Setting a seed ensures that any results that rely on randomness, e.g. subsampling or permutations, are reproducible.

Great job! Recording the operating system, R version, and package versions is critical for reproducibility.

Nice! There were no cached chunks for this analysis, so you can be confident that you successfully produced the results during this run.

Great job! Using relative paths to the files within your workflowr project makes it easier to run your code on other machines.

Great! You are using Git for version control. Tracking code development and connecting the code version to the results is critical for reproducibility. The version displayed above was the version of the Git repository at the time these results were generated.

Note that you need to be careful to ensure that all relevant files for the analysis have been committed to Git prior to generating the results (you can use wflow_publish or wflow_git_commit). workflowr only checks the R Markdown file, but you know if there are other scripts or data files that it depends on. Below is the status of the Git repository when the results were generated:


Ignored files:
    Ignored:    .Rhistory
    Ignored:    .Rproj.user/
    Ignored:    output/figures/r_objects/BRAF/enrichment/

Untracked files:
    Untracked:  analysis/methylation_epistasis.Rmd
    Untracked:  docs/figure/methylation_epistasis.Rmd/
    Untracked:  output/desRes_250720.RData
    Untracked:  output/diff_meth_IP_vs_HP_LP.rds
    Untracked:  output/figures/paper_fig/figure1/
    Untracked:  output/figures/paper_fig/figure_IGHV/
    Untracked:  output/figures/paper_fig/figure_c1c2.pdf
    Untracked:  output/figures/paper_fig/figure_c1c2.svg
    Untracked:  output/figures/paper_fig/figure_c1c2/
    Untracked:  output/figures/paper_fig/figure_epi/
    Untracked:  output/figures/paper_fig/figure_variants_mut_load.pdf
    Untracked:  output/figures/paper_fig/figure_variants_mut_load.svg
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/AACSP1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/ADAMTS7.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/ADGRB2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/AKAP12.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/ANGPT2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/ANKRD62.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/ARHGAP22.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/ASAP3.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/BCL7A.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/BDKRB2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/BTBD16.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/C10orf10.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/C10orf35.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/C14orf132.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/C1orf106.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CACHD1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CACNB2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CAMP.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CECR2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CHL1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CHMP4C.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CHST3.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CLEC2B.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CLEC9A.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CMPK2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CNPY1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CNR1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/COBLL1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/COL1A2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CORO2B.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CPNE8.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CPXM1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CRY1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CSGALNACT1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/CSMD1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/DGKH.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/DPP4.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/DPY19L2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/DPYD-AS1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/DUOXA2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/EBF1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/EFNA2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/EGLN3.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/FAIM2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/FAM20C.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/FBXO27.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/FGFR1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/FIRRE.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/FKBP10.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/FRMD4B.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/FRMPD1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/FXYD6.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/GGT2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/GGT3P.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/GLDN.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/GPR34.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/GPSM1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/GTSF1L.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/HAR1B.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/HNRNPA1P57.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/HTRA3.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IFI44L.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IFNA14.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IFNA21.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IFNB1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IFNW1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IFNWP9.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IGHV2-5.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IGHV3-15.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IGHV3-48.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IGHV3-7.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IGHV4-34.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IGKV1-16.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IGKV1-8.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IGKV2-24.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IGKV3-11.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IGKV3D-15.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IGKV4-1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IGLC7.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IGLV2-14.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IGLV3-9.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/INA.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/INSR.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/IQSEC3.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/JUP.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/KALRN.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/KANK2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/KCNJ2-AS1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/KCNJ2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/KCNK9.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/KIAA0895.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/KLK4.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/KRT19P2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/L3MBTL4.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/LDOC1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/LINC00930.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/LINC00982.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/LINC01033.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/LINC01866.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/LINC02170.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/LPL.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/LRMDA.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/LRP5.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/LYPD6B.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/MAPK4.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/MAST4.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/MCRIP2P1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/MOCOS.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/MRO.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/MTMR11.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/MYL12BP2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/MYL9.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/MYLK-AS2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/MYLK.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/MYO3A.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/NAP1L2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/NCAPGP1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/NEURL1B.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/NGEF.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/NPTX1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/NUGGC.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/OSBPL5.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/OVCH1-AS1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/P4HA2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/PCDHGC3.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/PDLIM3.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/PLD1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/PLEK2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/PLEKHG4B.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/PPP2R2C.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/PRAMENP.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/PRR18.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/PTGFRN.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/PTH2R.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/PTPRB.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/PXDNL.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/RASAL1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/RASSF6.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/RNA5SP460.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/RPS20P22.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/SCAMP5.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/SCHIP1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/SH3BP4.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/SH3RF1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/SLC12A1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/SLC16A9.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/SLC39A12.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/SLC4A10.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/SLC4A8.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/SMIM10.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/SNORA70F.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/SORT1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/SPTA1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/TAS1R1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/TERT.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/TFAP2A-AS1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/TFEC.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/TGFB2-AS1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/THAP10.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/THRB.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/TMEM200A.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/TP63.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/TRPM4.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/TSPAN13.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/UNC13B.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/VSIG2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/WNK2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/WNK3.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/WNT11.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/WNT5A.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/WNT5B.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/WSCD2.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/ZAR1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/ZNF112.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/ZNF334.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/ZNF663P.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/ZNF667-AS1.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/ZNF667.rds
    Untracked:  output/figures/r_objects/Methylation_IP/de_genes/ZNF804A.rds
    Untracked:  output/figures/r_objects/epi_meth/
    Untracked:  output/figures/r_objects/epistasis/de_genes/ABLIM2.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/CAMK2N1.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/CRIM1.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/E2F2.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/ENPP3.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/EPHB1.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/FAM212A.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/FGD6.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/FGF2.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/GP5.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/JAG1.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/RAI14.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/SLC4A8.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/SYBU.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/TCTN1.rds
    Untracked:  output/figures/r_objects/epistasis/de_genes/TMPRSS11E.rds
    Untracked:  output/figures/r_objects/epistasis/enrich_dot2.rds
    Untracked:  output/figures/r_objects/epistasis/enrich_dot_buffering.rds
    Untracked:  output/figures/r_objects/epistasis/enrich_dot_hm.rds
    Untracked:  output/figures/r_objects/epistasis/enrich_dot_inversion.rds
    Untracked:  output/figures/r_objects/epistasis/enrich_dot_supression.rds
    Untracked:  output/figures/r_objects/epistasis/enrich_dot_synergy.rds
    Untracked:  output/figures/r_objects/epistasis/enrich_net_hm.rds
    Untracked:  output/figures/r_objects/epistasis/enrich_net_kegg.rds
    Untracked:  output/figures/r_objects/epistasis/epi_methylation_heatmap.rds
    Untracked:  output/figures/r_objects/epistasis/epistasis_scheme_lolli.rds
    Untracked:  output/figures/r_objects/ighv/enrich_dot2.rds
    Untracked:  output/figures/r_objects/ighv/enrich_dot_hm.rds
    Untracked:  output/figures/r_objects/ighv/enrich_net_hm.rds
    Untracked:  output/figures/r_objects/ighv/enrich_net_kegg.rds
    Untracked:  output/figures/r_objects/mean_sd_by_c1c2.rds
    Untracked:  output/figures/r_objects/trisomy12/de_genes/HRAS.rds
    Untracked:  output/figures/r_objects/trisomy12/de_genes/NT5E.rds
    Untracked:  output/figures/r_objects/trisomy12/de_genes/PTPN6.rds
    Untracked:  output/figures/r_objects/trisomy12/de_genes/VAV1.rds
    Untracked:  output/figures/r_objects/trisomy12/enrich_dot2.rds
    Untracked:  output/figures/r_objects/trisomy12/enrich_dot_hm.rds
    Untracked:  output/figures/r_objects/trisomy12/enrich_net_hm.rds
    Untracked:  output/figures/r_objects/trisomy12/enrich_net_kegg.rds
    Untracked:  output/res_ICGC_epistatsis_ighv_tri12.rds

Unstaged changes:
    Modified:   analysis/IGHV.Rmd
    Modified:   analysis/de_analysis.Rmd
    Modified:   analysis/epistasis.Rmd
    Modified:   analysis/general_eda.Rmd
    Modified:   analysis/index.Rmd
    Modified:   analysis/methylation_IP_vs_HPLP.Rmd
    Modified:   analysis/summary_de_genes.Rmd
    Modified:   analysis/summary_variants.Rmd
    Modified:   analysis/trisomy12.Rmd
    Modified:   output/cluster500exprgenes.pdf
    Modified:   output/diff_genes/ACTN2_diffGenes.csv
    Modified:   output/diff_genes/ATM_diffGenes.csv
    Modified:   output/diff_genes/BRAF_diffGenes.csv
    Modified:   output/diff_genes/Chromothripsis_diffGenes.csv
    Modified:   output/diff_genes/EGR2_diffGenes.csv
    Modified:   output/diff_genes/IGHV_diffGenes.csv
    Modified:   output/diff_genes/KLHL6_diffGenes.csv
    Modified:   output/diff_genes/KRAS_diffGenes.csv
    Modified:   output/diff_genes/MED12_diffGenes.csv
    Modified:   output/diff_genes/MGA_diffGenes.csv
    Modified:   output/diff_genes/NFKBIE_diffGenes.csv
    Modified:   output/diff_genes/NOTCH1_diffGenes.csv
    Modified:   output/diff_genes/PCLO_diffGenes.csv
    Modified:   output/diff_genes/SF3B1_diffGenes.csv
    Modified:   output/diff_genes/TP53_diffGenes.csv
    Modified:   output/diff_genes/XPO1_diffGenes.csv
    Modified:   output/diff_genes/del11q22.3_diffGenes.csv
    Modified:   output/diff_genes/del13q14_diffGenes.csv
    Modified:   output/diff_genes/del15q15.1_diffGenes.csv
    Modified:   output/diff_genes/del17p13_diffGenes.csv
    Modified:   output/diff_genes/del8p12_diffGenes.csv
    Modified:   output/diff_genes/gain14q32_diffGenes.csv
    Modified:   output/diff_genes/gain2p25.3_diffGenes.csv
    Modified:   output/diff_genes/gain8q24_diffGenes.csv
    Modified:   output/diff_genes/meth_IP_vs_HP_diffGenes.csv
    Modified:   output/diff_genes/trisomy12_diffGenes.csv
    Modified:   output/figures/paper_fig/figure1.pdf
    Modified:   output/figures/paper_fig/figure1.svg
    Modified:   output/figures/paper_fig/figure_IGHV.pdf
    Modified:   output/figures/paper_fig/figure_IGHV.svg
    Modified:   output/figures/paper_fig/figure_IP_group.pdf
    Modified:   output/figures/paper_fig/figure_IP_group.svg
    Modified:   output/figures/paper_fig/figure_epi.pdf
    Modified:   output/figures/paper_fig/figure_epi.svg
    Modified:   output/figures/paper_fig/figure_tri12.pdf
    Modified:   output/figures/paper_fig/figure_tri12.svg
    Modified:   output/figures/paper_fig/generate_figures.Rmd
    Modified:   output/figures/r_objects/BRAF/de_genes/ABCC6P1.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/ARHGEF37.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/BIRC5.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/BNIP3P41.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/CA1.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/DHRS9.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/DSP.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/FAM184A.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/FAM96AP2.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/FLT4.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/HCAR1.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/HJURP.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/IGHV3-11.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/IGHV3-23.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/IQCB2P.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/IQGAP3.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/KIF14.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/KIF18B.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/LINC00658.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/LINC01203.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/LINC01358.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/MELK.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/NRP2.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/OR2B6.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/PKMYT1.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/PLIN5.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/PPP1R14C.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/PPP1R3C.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/PTPRB.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/RGPD2.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/RNF157.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/RPSAP69.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/SAMD12.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/SEPT3.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/SERPINE2.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/SH3RF1.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/SLC38A11.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/SPRY4.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/TAGLN3.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/TFEC.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/TMEM151B.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/TMPRSS3.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/ZFHX4.rds
    Modified:   output/figures/r_objects/BRAF/de_genes/ZNF503-AS1.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/ARHGAP32.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/BARX2.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/CDYLP1.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/CLDN1.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/DAZL.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/ELFN2.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/ENPP3.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/FAM41C.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/FST.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/GRIK3.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/ICOS.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/IGHA2.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/IGHV1-69.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/IGHV3-21.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/IGKV1-12.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/IGKV1-39.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/IGKV1OR-2.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/IGKV3-15.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/IGLC6.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/IGLV2-11.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/IGLV3-21.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/LAMC3.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/LINC01203.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/LINC01250.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/MECOM.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/MIR4538.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/MRGPRX4.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/MYB.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/NETO1.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/NREP.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/NRIP1.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/PHLPP1.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/PON1.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/PPP1R9A.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/PRDM16.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/RNASE1.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/RSPO1.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/SEPT10.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/SGMS2.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/SLC25A27.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/SNCAIP.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/SOWAHC.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/SOX11.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/STARD4-AS1.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/T.rds
    Modified:   output/figures/r_objects/Methylation_IP/de_genes/TGFB2.rds
    Modified:   output/figures/r_objects/Methylation_IP/meth_ip_heatmap.rds
    Modified:   output/figures/r_objects/epistasis/de_genes/BCL2A1.rds
    Modified:   output/figures/r_objects/epistasis/de_genes/CHAD.rds
    Modified:   output/figures/r_objects/epistasis/de_genes/EBF1.rds
    Modified:   output/figures/r_objects/epistasis/de_genes/EBF4.rds
    Modified:   output/figures/r_objects/epistasis/de_genes/EML6.rds
    Modified:   output/figures/r_objects/epistasis/de_genes/EPHB6.rds
    Modified:   output/figures/r_objects/epistasis/de_genes/GEN1.rds
    Modified:   output/figures/r_objects/epistasis/de_genes/LEF1.rds
    Modified:   output/figures/r_objects/epistasis/de_genes/PPP1R14A.rds
    Modified:   output/figures/r_objects/epistasis/de_genes/TIMELESS.rds
    Modified:   output/figures/r_objects/epistasis/epistasis_heatmap.rds
    Modified:   output/figures/r_objects/epistasis/epistasis_scheme.rds
    Modified:   output/figures/r_objects/heatmap_top500genes.rds
    Modified:   output/figures/r_objects/ighv/de_genes/ADAM29.rds
    Modified:   output/figures/r_objects/ighv/de_genes/ADAMTS7.rds
    Modified:   output/figures/r_objects/ighv/de_genes/ATOX1.rds
    Modified:   output/figures/r_objects/ighv/de_genes/BCAT1.rds
    Modified:   output/figures/r_objects/ighv/de_genes/C1orf106.rds
    Modified:   output/figures/r_objects/ighv/de_genes/CD38.rds
    Modified:   output/figures/r_objects/ighv/de_genes/CDHR1.rds
    Modified:   output/figures/r_objects/ighv/de_genes/CLEC9A.rds
    Modified:   output/figures/r_objects/ighv/de_genes/CPNE8.rds
    Modified:   output/figures/r_objects/ighv/de_genes/DGKH.rds
    Modified:   output/figures/r_objects/ighv/de_genes/DNAH14.rds
    Modified:   output/figures/r_objects/ighv/de_genes/DPY19L2.rds
    Modified:   output/figures/r_objects/ighv/de_genes/EGR3.rds
    Modified:   output/figures/r_objects/ighv/de_genes/FARP1.rds
    Modified:   output/figures/r_objects/ighv/de_genes/FGFR1.rds
    Modified:   output/figures/r_objects/ighv/de_genes/FRMD4B.rds
    Modified:   output/figures/r_objects/ighv/de_genes/GFI1.rds
    Modified:   output/figures/r_objects/ighv/de_genes/IGLC6.rds
    Modified:   output/figures/r_objects/ighv/de_genes/IGLV3-19.rds
    Modified:   output/figures/r_objects/ighv/de_genes/KANK2.rds
    Modified:   output/figures/r_objects/ighv/de_genes/KCNK9.rds
    Modified:   output/figures/r_objects/ighv/de_genes/LDOC1.rds
    Modified:   output/figures/r_objects/ighv/de_genes/LPL.rds
    Modified:   output/figures/r_objects/ighv/de_genes/MAPK4.rds
    Modified:   output/figures/r_objects/ighv/de_genes/MSI2.rds
    Modified:   output/figures/r_objects/ighv/de_genes/MYL12BP2.rds
    Modified:   output/figures/r_objects/ighv/de_genes/MYLK.rds
    Modified:   output/figures/r_objects/ighv/de_genes/NETO1.rds
    Modified:   output/figures/r_objects/ighv/de_genes/NFAT5.rds
    Modified:   output/figures/r_objects/ighv/de_genes/NPTX1.rds
    Modified:   output/figures/r_objects/ighv/de_genes/NUGGC.rds
    Modified:   output/figures/r_objects/ighv/de_genes/PEG10.rds
    Modified:   output/figures/r_objects/ighv/de_genes/PLD1.rds
    Modified:   output/figures/r_objects/ighv/de_genes/PLEKHG4B.rds
    Modified:   output/figures/r_objects/ighv/de_genes/PRR18.rds
    Modified:   output/figures/r_objects/ighv/de_genes/SEPT10.rds
    Modified:   output/figures/r_objects/ighv/de_genes/SLC12A1.rds
    Modified:   output/figures/r_objects/ighv/de_genes/SLC16A9.rds
    Modified:   output/figures/r_objects/ighv/de_genes/SOWAHC.rds
    Modified:   output/figures/r_objects/ighv/de_genes/VSIG10.rds
    Modified:   output/figures/r_objects/ighv/de_genes/WSB2.rds
    Modified:   output/figures/r_objects/ighv/de_genes/ZAP70.rds
    Modified:   output/figures/r_objects/ighv/de_genes/ZNF334.rds
    Modified:   output/figures/r_objects/ighv/ighv_enrichment_dn.rds
    Modified:   output/figures/r_objects/ighv/ighv_gene_status.rds
    Modified:   output/figures/r_objects/ighv/ighv_heatmap.rds
    Modified:   output/figures/r_objects/pca_top500genes.rds
    Modified:   output/figures/r_objects/summary_de_genes_IGHV_tri12.rds
    Modified:   output/figures/r_objects/summary_de_genes_all.rds
    Modified:   output/figures/r_objects/summary_var_freq_IGHV.rds
    Modified:   output/figures/r_objects/summary_variant_patient.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/ABLIM2.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/ACAP3.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/ADD2.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/CABLES1.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/CACNA1D.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/CHDH.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/CHFR.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/CORO2B.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/CTLA4.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/DIRAS1.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/EML6.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/EPHB1.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/FAHD2B.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/FAM212A.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/GPR146.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/IGHV2-5.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/IGKV1-17.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/IGLV3-21.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/IGLV6-57.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/IQSEC1.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/KCND3.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/KLF3-AS1.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/LARGE1.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/LIX1.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/LRRC66.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/MERTK.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/MIR4489.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/MOXD1.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/PCBD1.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/PCSK7.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/PODXL.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/PPP1R14A.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/RASGRF1.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/RHBDF2.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/RWDD2A.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/SLC16A10.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/SNX22.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/SOCS3.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/SPPL2B.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/SYN3.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/SYNPO.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/TBC1D16.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/TBC1D29.rds
    Modified:   output/figures/r_objects/trisomy12/de_genes/UACA.rds
    Modified:   output/figures/r_objects/trisomy12/tri12_dosage.rds

Note that any generated files, e.g. HTML, png, CSS, etc., are not included in this status report because it is ok for generated content to have uncommitted changes.


There are no past versions. Publish this analysis with wflow_publish() to start tracking its development.


Aim: Do we find epistatis pattern between trisomy12 and IGHV in methylation data?

load packages

library(tidyverse)
library(ggpubr)
library(DESeq2)
library(limma)
library(RColorBrewer)
library(ComplexHeatmap)
library(ggpubr)
library(circlize)
library(here)
#library("BloodCancerMultiOmics2017")

load datasets

output_dir <- here("output")
figure_dir <- here("output/figures")

load("/home/almut/Dokumente/masterarbeit/data/patmeta.RData")
load("/home/almut/Dokumente/masterarbeit/data/mutCOM.RData")
load("/home/almut/Dokumente/masterarbeit/data/methData.RData")

filter CLL patients with IGHV and trisomy12 info

patmeta$PatID <- rownames(patmeta)
patCLL <- patmeta %>% filter(Diagnosis %in% "CLL") %>% filter(!is.na(IGHV))
mutations <-data.frame(assayData(mutCOM)$binary)
mutations$PatID <- rownames(mutations)
mutations_sel <- mutations %>% filter(!is.na(trisomy12)) %>% select(trisomy12,PatID)

metaData <- inner_join(patCLL, mutations_sel)
Joining, by = "PatID"
meth <- assay(methData)
metaData <- metaData %>% filter(PatID %in% colnames(meth)) %>% mutate(IGHV_status=ifelse(IGHV %in% "M", 1, 0))

methCLL <- meth[, metaData$PatID]

Model epistatic interaction using limma

Differentiate into 4 groups

mutnames <- c("none", "IGHV-M", "trisomy12", "both")
metaGroups <- metaData %>% mutate(mutStatus = factor(mutnames[1 + IGHV_status + 2 * trisomy12], levels = mutnames)) %>% select(mutStatus, trisomy12, IGHV_status, PatID)

Identify significant methylation sites

x <- tibble(varA = factor(metaData$trisomy12),
            varB  = factor(metaData$IGHV_status))
 
fit <- eBayes(lmFit(methCLL, design = model.matrix( ~ varA + varB + varA * varB, data = x))) 
interaction <- tibble(methID = rownames(fit$p.value), 
                      p = fit$p.value[, "varA1:varB1"]) %>% mutate(pBH = p.adjust(p, method = "BH")) %>% arrange(p)

sig_interaction <- interaction %>% filter(p <= 0.01)

Plot significant methylation sites

Heatmap significant meth sites: order columns by variant status (both, varA, varB, none)

#methylation data
 sig_meth = methCLL[sig_interaction$methID,]

#annotate genes
sig_genes <- rowData(methData[sig_interaction$methID,])$UCSC_RefGene_Name
sig_genes <- gsub('[A-z0-9]*\\;', '', sig_genes)

sig_gen <- data.frame(genNam =sig_genes,
                     genID = sig_interaction$methID)
sig_genes <- sig_genes[-which(sig_genes %in% "")]

sig_gen <- as.tibble(sig_gen) %>% filter(genNam %in% sig_genes)
Warning: `as.tibble()` is deprecated, use `as_tibble()` (but mind the new semantics).
This warning is displayed once per session.
#order by mutation groups  
mutStatus <- metaGroups %>% arrange(mutStatus)
sig_meth <- sig_meth[,mutStatus$PatID]


#colors
#colors <- colorRampPalette( rev(brewer.pal(11,"RdBu")) )(255)
colors = colorRamp2(c(0,0.1,0.5,0.9,1), c("#2166ac","#4393c3", "#f7f7f7", "#d6604d","#b2182b"))
annocol <- get_palette("uchicago", 9)
annocolor <- list(Variant = c(annocol[3], annocol[5], annocol[7], annocol[9]))
names(annocolor$Variant) <- c("none", "IGHV-M", "trisomy12", "both")

#column annotation  
mutationStatus <- data.frame(mutStatus$mut)
rownames(mutationStatus) <- mutStatus$PatID
colnames(mutationStatus) <- "Variant"

ha_col = HeatmapAnnotation(df = mutationStatus, col = annocolor, 
                           simple_anno_size = unit(0.8, "cm"),
                           annotation_name_gp = gpar(fontsize = 25),
                            annotation_legend_param = list(title_gp = gpar(fontsize = 23), 
                                                           labels_gp = gpar(fontsize = 18),  
                                                           grid_height = unit(1, "cm"), 
                                                           grid_width = unit(0.5, "cm"),
                                                           gap = unit(0.5, "cm")))

  #rowcluster
  meth_dist <- dist(sig_meth)
  rowcluster = hclust(meth_dist, method = "ward.D2")

  #heatmap
  h1 <- Heatmap(sig_meth, col = colors ,
                column_title = paste0("Methylation interactions:", "IGHV", "-", "trisomy12"), 
                column_title_gp = gpar(fontsize = 25, fontface = "bold"), 
                heatmap_legend_param = list(title = "expr", 
                                          title_gp = gpar(fontsize = 23), 
                                          grid_height = unit(1, "cm"), 
                                          grid_width = unit(0.5, "cm"), 
                                          gap = unit(2, "cm"), 
                                          labels_gp = gpar(fontsize = 18)), 
                row_dend_width = unit(0.5, "cm"), 
                show_row_dend = F, 
                show_column_names =FALSE,
                show_row_names =FALSE, 
                top_annotation = ha_col,
                show_column_dend = FALSE, 
                cluster_columns = FALSE, 
                cluster_rows = rowcluster,
                split = 3, 
                gap = unit(0.2,"cm"), 
                column_order = mutStatus$PatID)


geneIDs <- which(rownames(sig_meth) %in% sig_gen$genID)
labels <- sig_gen$genNam
ha_genes <- rowAnnotation(link = row_anno_link(at = geneIDs, labels = labels, labels_gp = gpar(fontsize = 45)), width = unit(9, "cm"))
Warning: anno_link() is deprecated, please use anno_mark() instead.
  #svg(filename="~/git/figures_thesis/gene_expr/epistatsisTri12IGHV.svg", width=30, height=50)
  #pdf(file="/home/almut/Dokumente/git/Transcriptome_CLL/paper/figures/epistasis_methylation.pdf", width=35, height=45)
  draw(h1) 

  #dev.off()

 IGHVTri12 <- list("sig_meth" = rownames(sig_meth), "MethExp" = sig_meth, "h1"= h1)
saveRDS(h1, file = paste0(output_dir, "/figures/r_objects/epistasis/epi_methylation_heatmap.rds"))
#load differential data freom epistasis_Deseq_IGHV_tri12. Rmd
load("/home/almut/Dokumente/git/Transcriptome_CLL/dataset/epistaticGenes_Deseq2_IGHTri12.RData")
resOrdered <- res[order(res$pvalue),]
resSig <- subset(resOrdered, padj < 0.1)
resTab <- as.data.frame(resSig)
#count data for annotation
load("/home/almut/Dokumente/git/Transcriptome_CLL/dataset/ddsrnaCLL_150218.RData")
resTab$symbol <- rowData(ddsCLL[rownames(resSig),])$symbol
sig_expr <- resTab$symbol

#sig_meth data
sig_genes <- gsub('[A-z0-9]*\\;', '', sig_genes)

overlap <- as.tibble(sig_expr) %>% filter(!value %in% "")  %>% filter(value %in% sig_genes)



#function to create stripchart plots for specific genes
meth_count <- function(gene_nam){
  meth_loc <- sig_gen$genID[which(sig_gen$genNam %in% gene_nam)]
  gc <- data.frame("intensity" = sig_meth[meth_loc,], 
                   "variant" = mutationStatus)
  p <- ggboxplot(gc, x = "Variant", y = "intensity",
          color = "Variant",
          size = 1.2,
          palette = c(annocol[3], annocol[5], annocol[7], annocol[9]),
          outlier.shape = NA, 
          add = "jitter",
          add.params = list(size = 2.5),
          title = paste(gene_nam),
          font.x = 20, font.y = 20, font.legend = 20, 
          ylab = "normalized counts") + font("xy.text", size = 20) + font("title", size = 20, face = "bold")
  saveRDS(p, file = paste0(output_dir, "/figures/r_objects/epi_meth/de_genes/", gene_nam, ".rds"))
  p
}


lapply(overlap[[1]], meth_count)
[[1]]


[[2]]


[[3]]


[[4]]


[[5]]


[[6]]


sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.6 LTS

Matrix products: default
BLAS:   /usr/lib/libblas/libblas.so.3.6.0
LAPACK: /usr/lib/lapack/liblapack.so.3.6.0

locale:
 [1] LC_CTYPE=de_DE.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=de_DE.UTF-8        LC_COLLATE=de_DE.UTF-8    
 [5] LC_MONETARY=de_DE.UTF-8    LC_MESSAGES=de_DE.UTF-8   
 [7] LC_PAPER=de_DE.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=de_DE.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
 [1] grid      parallel  stats4    stats     graphics  grDevices utils    
 [8] datasets  methods   base     

other attached packages:
 [1] here_0.1                    circlize_0.4.6             
 [3] ComplexHeatmap_2.0.0        RColorBrewer_1.1-2         
 [5] limma_3.40.2                DESeq2_1.24.0              
 [7] SummarizedExperiment_1.14.0 DelayedArray_0.10.0        
 [9] BiocParallel_1.18.0         matrixStats_0.54.0         
[11] Biobase_2.44.0              GenomicRanges_1.36.0       
[13] GenomeInfoDb_1.20.0         IRanges_2.18.1             
[15] S4Vectors_0.22.0            BiocGenerics_0.30.0        
[17] ggpubr_0.2                  magrittr_1.5               
[19] forcats_0.4.0               stringr_1.4.0              
[21] dplyr_0.8.1                 purrr_0.3.2                
[23] readr_1.3.1                 tidyr_0.8.3                
[25] tibble_2.1.3                ggplot2_3.1.1              
[27] tidyverse_1.2.1            

loaded via a namespace (and not attached):
 [1] colorspace_1.4-1       rjson_0.2.20           rprojroot_1.3-2       
 [4] htmlTable_1.13.1       XVector_0.24.0         GlobalOptions_0.1.0   
 [7] base64enc_0.1-3        fs_1.3.1               clue_0.3-57           
[10] rstudioapi_0.10        bit64_0.9-7            AnnotationDbi_1.46.0  
[13] lubridate_1.7.4        xml2_1.2.0             splines_3.6.0         
[16] geneplotter_1.62.0     knitr_1.23             Formula_1.2-3         
[19] jsonlite_1.6           workflowr_1.4.0        broom_0.5.2           
[22] annotate_1.62.0        cluster_2.1.0          png_0.1-7             
[25] compiler_3.6.0         httr_1.4.0             backports_1.1.4       
[28] assertthat_0.2.1       Matrix_1.2-17          lazyeval_0.2.2        
[31] cli_1.1.0              acepack_1.4.1          htmltools_0.3.6       
[34] tools_3.6.0            gtable_0.3.0           glue_1.3.1            
[37] GenomeInfoDbData_1.2.1 Rcpp_1.0.1             cellranger_1.1.0      
[40] nlme_3.1-140           xfun_0.7               rvest_0.3.4           
[43] XML_3.98-1.20          zlibbioc_1.30.0        scales_1.0.0          
[46] hms_0.4.2              yaml_2.2.0             memoise_1.1.0         
[49] gridExtra_2.3          rpart_4.1-15           latticeExtra_0.6-28   
[52] stringi_1.4.3          RSQLite_2.1.1          genefilter_1.66.0     
[55] checkmate_1.9.3        shape_1.4.4            rlang_0.3.4           
[58] pkgconfig_2.0.2        bitops_1.0-6           evaluate_0.14         
[61] lattice_0.20-38        labeling_0.3           htmlwidgets_1.3       
[64] bit_1.1-14             tidyselect_0.2.5       ggsci_2.9             
[67] plyr_1.8.4             R6_2.4.0               generics_0.0.2        
[70] Hmisc_4.2-0            DBI_1.0.0              pillar_1.4.1          
[73] haven_2.1.0            foreign_0.8-71         withr_2.1.2           
[76] survival_2.44-1.1      RCurl_1.95-4.12        nnet_7.3-12           
[79] modelr_0.1.4           crayon_1.3.4           rmarkdown_1.13        
[82] GetoptLong_0.1.7       locfit_1.5-9.1         readxl_1.3.1          
[85] data.table_1.12.2      blob_1.1.1             git2r_0.25.2          
[88] digest_0.6.19          xtable_1.8-4           munsell_0.5.0