The package can be directly installed from the Bioconductor website.

if (!require("BiocManager"))
    install.packages("BiocManager")
BiocManager::install("DominoEffect")

Running the package

Load the package before starting the analysis.

library(DominoEffect)

The package provides example datasets to run the functions.

data("TestData", package = "DominoEffect")
data("SnpData", package = "DominoEffect")
data("DominoData", package = "DominoEffect")

These can be used to run the package and obtain an example result data frame:

DominoEffect(TestData, DominoData, SnpData)

Optional

The default settings are to use the package-provided data that will be loaded in the objects mutation_dataset, gene_data and snp_data, respectively. Required column names are described below and the user should adher to these when providing their own mutation dataset. Gene information (DominoData) and SNP data (SnpData) correspond to the Ensembl version 73 (GRCh37). Optionally, the user can use data for different Ensembl releases and provide larger SNP datasets.

mutation_dataset = read.table ("user_file_with_mutations.txt", header = T)
gene_data = read.table ("user_ensembl_gene_list.txt", header = T)
snp_data = read.table ("user_population_SNPs_with_frequency.txt", header = T)

Description

The package identifies individual amino acid residues, which accumulate a high fraction of the overall mutation load within a protein. Such hotspot mutation residues could have critical functions in regulating cancer-associated cellular processes. After detecting mutation hotspots, the package obtains functional and structural annotations for the affected protein regions as these could aid interpretation of mutation effects. The package is based on the Ensembl version 73 (GRCh37), but it is also flexible with allowing a user to obtain coordinates for different Ensembl releases via the BiomaRt package. The package can be run with the default options using the following command:

hotspot_mutations <- DominoEffect(mutation_dataset = TestData, 
                                  gene_data = DominoData, snp_data = SnpData)

An example mutation set is provided as an object data(TestData, package = “DominoEffect”). It contains mutations reported in a sequencing study for the thyroid cancer (Integrated genomic characterization of papillary thyroid carcinoma, Cell 2014 159(3):676-90, Cancer Genome Atlas Research Network). The mutation_dataset should provided by the user should have the same columns (see below). The Mutation data can also be provided as a GRangesList or GRanges object (see GenomicRanges package).

data("TestData", package = "DominoEffect")
Ensembl_gene_id Protein_residue Original_aa Mutated_aa Patient_id Genomic_coordinate Original_base Mutated_base
ENSG00000204518 91 D D TCGA-V4-A9F1-01A-11D-A39W-08 1:12711246 C T
ENSG00000204518 112 R W TCGA-V4-A9EK-01A-11D-A39W-08 1:12711307 C T
ENSG00000144452 1036 Q E TCGA-WC-AA9E-01A-11D-A39W-08 2:215865502 G C
ENSG00000179869 875 Q L TCGA-V4-A9EK-01A-11D-A39W-08 7:48311887 A T
ENSG00000167972 689 D D TCGA-YZ-A985-01A-11D-A39W-08 16:2347526 G A
ENSG00000167972 155 R Q TCGA-YZ-A985-01A-11D-A39W-08 16:2373673 C T

Results of the analysis will be saved as a file Protein_hotspot_residues.txt in the working directory at it will contain positions of hotspot residues as well as information on the protein region affected by the hotspot. We recommend to further use one or more of the tools that prioritizes mutations with a likely deleterious effect and to use additional resources to filter out common population polymorphisms.

Gene Ensembl_id Prot_position N_mut Protein_funcional_region Repres_tr Assoc_unip_ids Perc_region_1 Perc_region_2 Adj_p_value_region_1 Adj_p_value_region_2 Prot_length
GNAQ ENSG00000156052 209 37 domain: G-alpha; nucleotide binding: GTP; region: G3 motif ENST00000286548 P50148 94.87% 94.87% 0 0 359
GNA11 ENSG00000088256 209 34 domain: G-alpha; nucleotide binding: GTP; region: G3 motif ENST00000078429 P29992 94.44% 94.44% 0 0 359
SF3B1 ENSG00000115524 625 14 repeat: HEAT 3 ENST00000335508 O75533 77.78% 77.78% 0 0 1304
PRMT8 ENSG00000111218 31 5 motif: SH3-binding 1 ENST00000382622 Q9NR22 100.00% 100.00% 0 0 394
CHEK2 ENSG00000183765 416 5 domain: Protein kinase; region: T-loop/activation segment ENST00000382580 O96017 55.56% 55.56% 0 0 586

Set options

The package can also be ran by modifying any or all of the options that are discussed in the section below:

hotspot_mutations <- DominoEffect(mutation_dataset, gene_data, snp_data, min_n_muts, MAF_thresh, flanking_region, poisson.thr, percentage.thr, ratio.thr, approach, write_to_file)

The analysis has several parameters that define what a hotspot residue is. The default values are suggested below, but these can all be easily modified. As a recommendation, we provide values that we found useful when analyzing the pan-cancer dataset, but for smaller cohorts we strongly suggest these to be relaxed. For instance, for smaller cohorts to set: min_n_muts to 3. We recommend the user to try different parameters and if they allow shorter windows around the searched residues to increase the percentage threshold (which defines a minimum fraction of mutations within a window that need to map to a single residue). It is also possible to replace the percentage threshold with a parameter that defines overrepresentation compared to the expected number of mutations at a single residue. Details below.

Define how often a mutation needs to occur on a specific amino acid to be considered as a possible hotspot residue.

min_n_muts <- 5

Threshold for the minoar allele frequence in the population above which a variant is considered a common variant and will not be assessed as a potential hotspot mutation.

MAF.thr <- 0.01

Size of the sequence region (in amino acids) to which the frequency of the muation is compared to. We recommend asking for the hotspot to be significant within windows of different lengths, but it is also possible to use a single window.

flanking_region <- c(200, 300)
flanking_region <- c(300)

Statistical threshold for the residues with frequent mutations that should be considered a protein hotspot. The value defines the adjusted p-values after performing a Poisson test and Benjamini-Hochberg correction for multiple testing.

poisson.thr <- 0.01

A fraction of mutations within the window that need to fall on a single residue in order for it to be classified as a hotspot.

percentage.thr <- 0.15

Requirement that a number of mutations on a single residue should exceed what would be expected by chance given a background mutation rate in the window (i.e. the surrounding region).

ratio.thr <- 40

Hotspots are always filtered to include only residues that are significant according to the defined p-value threshold (i.e. adjusted Poisson p-value: poisson.thr above). Additionally, the parameter 'approach' defines whether a percentage or overrepresentation should be assessed to define if the residue accumulates a high fraction of mutations within the window. The options are to set the 'approach' parameter to : use “percentage”, “ratio” or “both”. When “percentage” is used the approach checks for the percentage.thr, when “ratio” it cheks for ratio.thr and when it is defined as “both” than it checks both percentage.thr and ratio.thr. If the user considers the p-value threshold to be sufficient, they can set percentage.thr and ratio.thr to zero.

approach = "percentage"

If the write_to_file is set to “YES” the result object 'results_w_annotations' will be saved in the working directory as a file 'Protein_hotspot_residues.txt'. The default is “NO”.

write_to_file = "YES"

Analysis

hotspot_mutations <- DominoEffect(mutation_dataset = TestData, 
                                  gene_data = DominoData, snp_data = SnpData)

It is also possible to run separately the function that identifies hotspot mutations. The function: identify_hotspots() can be ran on any unique identifiers, but the same column names as in the example DominoData should be preserved. If using different Ensembl releases, the user should provide a table of the same format, and with the same column names (for this we recommend using online Ensembl BioMart or the R package biomaRt). Ensembl identifiers are necessary for obtaining protein sequences in the function: map_to_func_elem().

hotspot_mutations <- identify_hotspots(mutation_dataset = TestData, 
                                       gene_data = DominoData, 
                                       snp_data = SnpData, min_n_muts = 5, 
                                       MAF_thresh = 0.01, 
                                       flanking_region = c(200, 300), 
                                       poisson.thr = 0.01, 
                                       percentage.thr = 0.15, ratio.thr = 45, 
                                       approach = "percentage")

If desired, the user can then annotate the identified hotspots using information from the UniProt/Swiss=Prot knowledgebase. Hotspots are identified on the Ensembl sequences. To make sure there are no any discrepancies, during this step sequences are retrieved from the UniProt KB and Ensembl Biomart and then the the Ensembl segment with the hotspot residue (15 aa) is aligned to the UniProt sequence. If different ensembl release than the default is used, two functions should be ran separately and a host address for the respective Ensembl release should be specified in the call to the function: map_to_func_elem(). For instance, for the current release: ens_release=“www.ensembl.org” instead of ens_release = “73”.

results_w_annotations <- map_to_func_elem(hotspot_mutations, 
                                          write_to_file = "NO", 
                                          ens_release = "73")

MutationData, DominoData, and SnpData

As input data the package needs these three datasets. We provide a small example mutation data set TestData (see above).

DominoData (that is used for gene_data) contains basic information for the genes in the Ensembl version 73. This includes: Ensembl gene identifier, Representative transcript identifier (i.e. a transcript with the longest protein coding sequence), cDNA_length of the representative transcript, Gene_name and Associated UniProt identifiers. The DominoData can also be provided as an TxDB object obtained from the makeTxDbFromEnsembl function (Genomic Features package), however, the functional annotation of hotspots will not be possible as this relies on Uniprot identifiers.

The required format of the gene_data is the following:

Ensembl_gene_id Representative_tr cDNA_length Gene_name Uniprot_id
ENSG00000256574 ENST00000553795 987 OR13A1 Q8NGR1
ENSG00000127720 ENST00000248306 1812 METTL25 Q8N6Q8
ENSG00000109819 ENST00000264867 2397 PPARGC1A Q9UBK2
ENSG00000161057 ENST00000435765 1302 PSMC2 P35998
ENSG00000237787 ENST00000446603 303 C3orf79 P0CE67
ENSG00000051596 ENST00000265097 1056 THOC3 Q96J01

Finally, to exclude common polymorphisms we provide SnpData, a set of SNPs with a population frequency higher than 1% that we obtained from the Ensembl BioMart version 73. The user can also set snp_data = NULL if they do not wish to include this in the analysis. Preferably, they should however use as comprehensive set of population polymorphisms as possible. The SnpData can also be provided as an vcf object (see VariantAnnotation package) or GPo object (see GenomicRanges package). The dataset has the following format:

Chr_name Position_on_chr Minor_allele_freq
1 150917624 0.0160
1 150936280 0.0124
1 169823521 0.0261
1 169823718 0.3516
1 169823790 0.0472
1 17256626 0.0124

Convert results into GPo object

The genomic information on the hotspot mutations can be converted into a GPo object for further analyses in other Bioconductor packages.

## GPos object with 6 positions and 4 metadata columns:
##       seqnames       pos strand |      REF_NT      MUT_NT         Gene_ID
##          <Rle> <integer>  <Rle> | <character> <character>     <character>
##   [1]    chr22  29091840      * |           T           C ENSG00000183765
##   [2]    chr19   3118942      * |           A           T ENSG00000088256
##   [3]     chr9  80409488      * |           T           G ENSG00000156052
##   [4]     chr9  80409488      * |           T           A ENSG00000156052
##   [5]    chr12   3649787      * |           T           C ENSG00000111218
##   [6]     chr2 198267483      * |           C           T ENSG00000115524
##       Protein_pos
##       <character>
##   [1]         416
##   [2]         209
##   [3]         209
##   [4]         209
##   [5]          31
##   [6]         625
##   -------
##   seqinfo: 5 sequences from an unspecified genome; no seqlengths

Additional

If the user is starting from genomic mutations, we are happy to share a perl script we wrote for mapping these to Ensembl protein residues. Please contact the package maintainers.

##Session Info

sessionInfo()
## R version 3.6.0 (2019-04-26)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 18.04.2 LTS
## 
## Matrix products: default
## BLAS:   /home/biocbuild/bbs-3.9-bioc/R/lib/libRblas.so
## LAPACK: /home/biocbuild/bbs-3.9-bioc/R/lib/libRlapack.so
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=C              
##  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
##  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
## [1] DominoEffect_1.4.0 knitr_1.22        
## 
## loaded via a namespace (and not attached):
##  [1] Rcpp_1.0.1                  highr_0.8                  
##  [3] compiler_3.6.0              GenomeInfoDb_1.20.0        
##  [5] XVector_0.24.0              GenomicFeatures_1.36.0     
##  [7] prettyunits_1.0.2           bitops_1.0-6               
##  [9] tools_3.6.0                 progress_1.2.0             
## [11] zlibbioc_1.30.0             biomaRt_2.40.0             
## [13] digest_0.6.18               bit_1.1-14                 
## [15] BSgenome_1.52.0             lattice_0.20-38            
## [17] evaluate_0.13               RSQLite_2.1.1              
## [19] memoise_1.1.0               pkgconfig_2.0.2            
## [21] rlang_0.3.4                 Matrix_1.2-17              
## [23] DelayedArray_0.10.0         DBI_1.0.0                  
## [25] curl_3.3                    parallel_3.6.0             
## [27] xfun_0.6                    GenomeInfoDbData_1.2.1     
## [29] rtracklayer_1.44.0          stringr_1.4.0              
## [31] httr_1.4.0                  Biostrings_2.52.0          
## [33] S4Vectors_0.22.0            IRanges_2.18.0             
## [35] hms_0.4.2                   grid_3.6.0                 
## [37] stats4_3.6.0                bit64_0.9-7                
## [39] Biobase_2.44.0              data.table_1.12.2          
## [41] R6_2.4.0                    AnnotationDbi_1.46.0       
## [43] BiocParallel_1.18.0         XML_3.98-1.19              
## [45] blob_1.1.1                  magrittr_1.5               
## [47] GenomicAlignments_1.20.0    Rsamtools_2.0.0            
## [49] matrixStats_0.54.0          GenomicRanges_1.36.0       
## [51] BiocGenerics_0.30.0         SummarizedExperiment_1.14.0
## [53] assertthat_0.2.1            stringi_1.4.3              
## [55] RCurl_1.95-4.12             VariantAnnotation_1.30.0   
## [57] crayon_1.3.4