Skip to content

Supporting code for the analysis in "Deciphering the etiology and role in oncogenic transformation of the CpG island methylator phenotype (CIMP): a pan-cancer analysis

License

Notifications You must be signed in to change notification settings

BoevaLab/CIMP_etiology_oncogenic_transformation

Repository files navigation

Deciphering the etiology and role in oncogenic transformation of the CpG island methylator phenotype (CIMP): a pan-cancer analysis

This repository contains the Jupyter Notebooks/scripts used for the analysis in "Deciphering the etiology and role in oncogenic transformation of the CpG island methylator phenotype (CIMP): a pan-cancer analysis" [1].

How to

The code presented is shared for reproducibility purposes and is in no way tailored for wide-spread use, nor is it organized as a package. Please contact [email protected] for more information.

IMPORTANT DISCLAIMER: a number of files are used in the analysis - placeholders have been integrated in their place in the provided code. Note that to run the code one will have to download/generate all necessary files and change the placeholders. A thorough description of where to download associated files is provided beneath, however there might be some slight changes to the structure of the files etc. which might cause the processing not to run. As this is probably the result of a change in the structure of the file, it can be probably resolved by verifying confirmity of the structure with the code. If there are any issues, please contact [email protected].

Preprocessing

The notebook Deciphering_CIMP_Preprocessing.ipynb is used for the thorough preprocessing of the data (non-CGI, NA, non-variable, purity correction and age-related). More details can be found in the Methods section of the aforementioned paper.

What data to download to replace the placeholders:

  • survival_dir = files can be downloaded from the UCSC Xena data portal, under the sections "phenotype - survival data" for all analyzed cancer types. For example, the file for ACC is this file.
  • clin_dir = files can be downloaded from the UCSC Xena data portal, under the sections "phenotype - phenotype" for all analyzed cancer types. For example, the file for ACC is this file.
  • info_dir = path to the folder to save the results of the preprocessing of clinical and methylation data.
  • raw_dir = files can be downloaded from the UCSC Xena data portal, under the sections "DNA methylation - Illumina Human Methylation 450" for all analyzed cancer types. For example, the file for ACC is this file.
  • estimate_purity_dir = ESTIMATE purity estimations can be downloaded from here. We want to save the ESTIMATE scores (preprocessing might vary depending on the format of the downloaded file).
  • CPE purity file = the file corresponds to the "Supplementary Data 1" file of this article. The file needs to be saved in csv format prior to being uploaded in the notebook.
  • Illumina 450k annotation file = the file corresponds to "GPL13534_HumanMethylation450_15017482_v.1.1.csv.gz" and can be downloaded from here.
  • std_dir, purity_dir, nnls_dir, age_r_dir = folders to save your analyses for standard deviation filtering, purity correction, NNLS estimates, age related cpgs
  • admp_dir = the files in this directory correspond to the age-dependent cpgs identified by Slieker et al. in their paper, that can be found in Table S2. For ease, this file was transfored in the following manner: each tissue-specific loss (resp. gain) CpG was saved in a .txt file where every CpG probe was separated by \n named TISSUE_loss.txt (resp. _gain).

Analysis

The notebook Deciphering_CIMP_Analysis.ipynb is used for the subsequent analysis as described in the Methods section.

What data to download to replace the placeholders:

  • info_dir = path to the folder where you saved your preprocessed clinical data.
  • clin_raw_data = path to the folder where you saved the raw clinical data (cf. clin_dir in the previous paragraph).
  • meth_dir = path to the folder where you saved your preprocessed methylation data.
  • mut_dir = files can be downloaded from the UCSC Xena data portal, under the sections "somatic mutation (SNP and INDEL) - MC3 gene-level non-silent mutation" for all analyzed cancer types. For example, the file for ACC is this file. IMPORTANT: these files are in the TCGA dataset and not the GDC dataset as the previous files were.
  • msi profile file = the file corresponds to the Supplementary Data 1 in this paper. This should be saved as a csv file.
  • geo_normal_dir = these are the transformed files from GEO accession series GSE77871 and GSE32149. The preprocessed files are given in the repository in the zip file in the geo_normal_tissue folder.
  • cluster_memb_dir, sign_cpg_dir, bac_pred_dir = path to the folder to save the cluster memberships, significantly differentially methylated probes, balanced accuracy predictions in
  • gencode_annot_gene and merged_table = preprocessed gencode annotation mappings that give the associated length and the mapping between the old and new versions of gencode annotations. These are given in the repository in the zip file in the folder gencode_annotations.
  • immune_scores, CIBERSORT_comp = these files correspond to files generated in this paper. The files were downloaded from the GDC here. Immune_scores corresponds to the Scores_160_Signatures.tsv.gz file. CIBERSORT_comp corresponds to the TCGA.Kallisto.fullIDs.cibersort.relative.tsv file.
  • xcell_comp = this file corresponds to the file generated using this paper. The file corresponds to the file downloadable from here under the link for precomputed TCGA xCell scores.
  • thorsson_pat_info = this file corresponds to the file generated in this paper. It corresponds to the Table S1 file.
  • diff_gex_dir = this is the folder where the results of DESeq2 analysis are saved (see paragraph below).
  • diff_gex_offgene_dir = folder to save the official gene codes for genes that correspond to "potential downstream events" (cf. Methods of the paper). IMPORTANT: these are the files that are inputted into the DAVID tool for the gene set enrichment analysis. UPDATE AFTER REVIEW: These files are used for the EASE score analysis in DAVID_analysis.ipynb.
  • tss_dir = folder to save the TSS distances generated
  • gencode_annot_dir = folder where the gencode annotations are downloaded. These can be taken from here. They correspond to the .gtf file.

Differential Gene Expression analysis

With the results of the clustering membership, we computed a Differential Gene Expression analysis. This analysis was conducted in R so as to be able to use the tool DESeq2. The script used to generate the differential gene expression analysis is DESeq_GEX.R.

What data to download to replace the placeholders:

  • directory = files can be downloaded from the UCSC Xena data portal, under the sections "gene expression RNAseq - HTSeq - Counts" for all analyzed cancer types. For example, the file for ACC is this file.
  • file_clust = the folder where the cluster memberships generated with Deciphering_CIMP_Analysis.ipynb are saved.

UPDATE AFTER REVIEW: EASE score (inspired from DAVID) analysis

To use the updated versions of the GO Biological Processes and Kegg databases in the gene set enrichment analysis, the EASE score used in the DAVID method[DAVID] was reimplemented in the DAVID_analysis.ipynb file.

What data to download to replace the placeholders:

  • meth_dir = path to the folder where you saved your preprocessed methylation data.
  • kegg_file = path to the MSigDB .gmt file for the Kegg pathways downloaded from https://www.gsea-msigdb.org/gsea/downloads.jsp#msigdb (file c2.cp.kegg.v7.4.symbols.gmt).
  • GOBP_file = path to the MSigDB .gmt file for the Gene Ontology Biological Processes pathways downloaded from https://www.gsea-msigdb.org/gsea/downloads.jsp#msigdb (file c5.go.bp.v7.4.symbols.gmt).
  • diff_gex_offgene_dir = path to the folder with the official gene codes for genes that correspond to "potential downstream events" (cf Deciphering_CIMP_Analysis.ipynb documentation).
  • downstream_gene_path_dir = path to the folder to save the results of the analysis.

UPDATE AFTER REVIEW: Supplementary information

In the archive Supplementary_information.zip, you will find the methylation cluster membership, silhouette score, significantly differentially methylated CpG ids used for the CIMP score computations and CIMP score of all the analyzed patients in TCGA. You will also find the full list of enriched pathways discovered with the EASE score analysis for LGG and LIHC. Cluster membership and silhouette scores are in the methylation_cluster_membership_all_TCGA.csv file, in columns "Cluster" and "Sil_orig". The significant CpG ids are saved in a single file per cancer in the sign_CIMP_cpg folder. The CIMP scores are saved in a single file per cancer in the CIMPness folder. The LGG and LIHC EASE score results are saved in a single file per cancer in the EASE folder.

About

Supporting code for the analysis in "Deciphering the etiology and role in oncogenic transformation of the CpG island methylator phenotype (CIMP): a pan-cancer analysis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published