The package can be directly installed from the Bioconductor website.
if (!require("BiocManager")) install.packages("BiocManager") BiocManager::install("DominoEffect")
Load the package before starting the analysis.
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)
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)
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")
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.
|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|
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"
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")
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:
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:
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> ##  chr22 29091840 * | T C ENSG00000183765 ##  chr19 3118942 * | A T ENSG00000088256 ##  chr9 80409488 * | T G ENSG00000156052 ##  chr9 80409488 * | T A ENSG00000156052 ##  chr12 3649787 * | T C ENSG00000111218 ##  chr2 198267483 * | C T ENSG00000115524 ## Protein_pos ## <character> ##  416 ##  209 ##  209 ##  209 ##  31 ##  625 ## ------- ## seqinfo: 5 sequences from an unspecified genome; no seqlengths
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.
## 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: ##  LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C ##  LC_TIME=en_US.UTF-8 LC_COLLATE=C ##  LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 ##  LC_PAPER=en_US.UTF-8 LC_NAME=C ##  LC_ADDRESS=C LC_TELEPHONE=C ##  LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C ## ## attached base packages: ##  stats graphics grDevices utils datasets methods base ## ## other attached packages: ##  DominoEffect_1.4.0 knitr_1.22 ## ## loaded via a namespace (and not attached): ##  Rcpp_1.0.1 highr_0.8 ##  compiler_3.6.0 GenomeInfoDb_1.20.0 ##  XVector_0.24.0 GenomicFeatures_1.36.0 ##  prettyunits_1.0.2 bitops_1.0-6 ##  tools_3.6.0 progress_1.2.0 ##  zlibbioc_1.30.0 biomaRt_2.40.0 ##  digest_0.6.18 bit_1.1-14 ##  BSgenome_1.52.0 lattice_0.20-38 ##  evaluate_0.13 RSQLite_2.1.1 ##  memoise_1.1.0 pkgconfig_2.0.2 ##  rlang_0.3.4 Matrix_1.2-17 ##  DelayedArray_0.10.0 DBI_1.0.0 ##  curl_3.3 parallel_3.6.0 ##  xfun_0.6 GenomeInfoDbData_1.2.1 ##  rtracklayer_1.44.0 stringr_1.4.0 ##  httr_1.4.0 Biostrings_2.52.0 ##  S4Vectors_0.22.0 IRanges_2.18.0 ##  hms_0.4.2 grid_3.6.0 ##  stats4_3.6.0 bit64_0.9-7 ##  Biobase_2.44.0 data.table_1.12.2 ##  R6_2.4.0 AnnotationDbi_1.46.0 ##  BiocParallel_1.18.0 XML_3.98-1.19 ##  blob_1.1.1 magrittr_1.5 ##  GenomicAlignments_1.20.0 Rsamtools_2.0.0 ##  matrixStats_0.54.0 GenomicRanges_1.36.0 ##  BiocGenerics_0.30.0 SummarizedExperiment_1.14.0 ##  assertthat_0.2.1 stringi_1.4.3 ##  RCurl_1.95-4.12 VariantAnnotation_1.30.0 ##  crayon_1.3.4