The LowMACA package is a simple suite of tools to investigate and analyse the profile of the somatic mutations provided by the cBioPortal (via the cgdsr). LowMACA evaluates the functional impact of somatic mutations by statistically assessing the number of alterations that accumulates on the same residue (or residue that are conserved in Pfam domains). For example, the known driver mutations G12,G13 and Q61 in KRAS can be found on the corresponding residues of other proteins in the RAS family (PF00071) like NRAS and HRAS, but also in less frequently mutated genes like RRAS and RRAS2. The corresponding residues are identified via multiple sequence alignment. Thanks to this approach the user can identify new driver mutations that occur at low frequency at single protein level but emerge at Pfam level. In addition, the impact of known driver mutations can be transferred to other proteins that share a high degree of sequence similarity (like in the RAS family example).
You can conduct an hypothesis driven exploratory analysis using our package simply providing a set of genes and/or pfam domains of your interest. The user is able to choose the kind of tumor and the type of mutations (like missense, nonsense, frameshift etc.). The data are directly downloaded from the largest cancer sequencing projects and aggregated by LowMACA to evaluate the possible functional impact of somatic mutations by spotting the most conserved variations in the cohort of cancer samples. By connecting several proteins that share sequence similarity via consensus alignment, this package is able to statistically assessing the occurrence of mutations on the same residue and ultimately see:
LowMACA relies on two external resources to work properly.
Clustal Omega is a fast aligner that can be downloaded from the link above. For both Unix and Windows users, remember to have “clustalo” in your PATH variable. In case you cannot set “clustalo” in the PATH, you can always set the clustalo command from inside R, after creating a LowMACA object:
#Given a LowMACA object 'lm'
lm <- newLowMACA(genes=c("TP53" , "TP63" , "TP73"))
lmParams(lm)$clustal_cmd <- "/your/path/to/clustalo"
If you cannot install clustalomega, we provide a wrapper around EBI web service (http://www.ebi.ac.uk/Tools/webservices/services/msa/clustalo\_soap). You just need to set your email as explained in section setup, but you have a limit of 2000 input sequences and perl must be installed with the modules LWP and XML::Simple.
Ghostscript is an interpreter of postscript language and a pdf reader that is used by the R library grImport.
More details can be found here: http://pgfe.umassmed.edu/BioconductorGallery/docs/motifStack/motifStack.html
LowMACA needs an internet connection to:
First of all, we have to define our target genes or pfam domains that we wish to analyse.
library(LowMACA)
#User Input
Genes <- c("ADNP","ALX1","ALX4","ARGFX","CDX4","CRX"
,"CUX1","CUX2","DBX2","DLX5","DMBX1","DRGX"
,"DUXA","ESX1","EVX2","HDX","HLX","HNF1A"
,"HOXA1","HOXA2","HOXA3","HOXA5","HOXB1","HOXB3"
,"HOXD3","ISL1","ISX","LHX8")
Pfam <- "PF00046"
#Construct the object
lm <- newLowMACA(genes=Genes, pfam=Pfam)
## All Gene Symbols correct!
str(lm , max.level=3)
## Formal class 'LowMACA' [package "LowMACA"] with 4 slots
## ..@ arguments:List of 7
## .. ..$ genes : chr [1:28] "ADNP" "ALX1" "ALX4" "ARGFX" ...
## .. ..$ pfam : chr "PF00046"
## .. ..$ pfamAllGenes:'data.frame': 249 obs. of 7 variables:
## .. ..$ input :'data.frame': 28 obs. of 7 variables:
## .. ..$ mode : chr "pfam"
## .. ..$ params :List of 7
## .. ..$ parallelize :List of 2
## ..@ alignment: list()
## ..@ mutations: list()
## ..@ entropy : list()
Now we have created a LowMACA object. In this case, we want to analyse the homeodomain fold pfam (PF00046), considering 28 genes that belong to this clan. If we don’t specify the pfam parameter, LowMACA proceeds to analyse the entire proteins passed by the genes parameter (we map only canonical proteins, one per gene). Conversely, if we don’t specify the genes parameter, LowMACA looks for all the proteins that contain the specified pfam and analyses just the portion of the protein assigned to the domain.
A LowMACA object is composed by four slots. The first slot is arguments and is filled at the very creation of the object. It contains information as Uniprot name for the proteins associated to the genes, the amino acid sequences, start and end of the selected domains and the default parameters that can be changed to start the analysis.
#See default parameters
lmParams(lm)
## $mutation_type
## [1] "missense"
##
## $tumor_type
## [1] "all_tumors"
##
## $min_mutation_number
## [1] 1
##
## $density_bw
## [1] 0
##
## $clustal_cmd
## [1] "clustalo"
##
## $use_hmm
## [1] FALSE
##
## $datum
## [1] FALSE
#Change some parameters
#Accept sequences even with no mutations
lmParams(lm)$min_mutation_number <- 0
#Changing selected tumor types
#Check the available tumor types in cBioPortal
available_tumor_types <- showTumorType()
## Warning in .service_validate_md5sum(api_reference_url, api_reference_md5sum, : service version differs from validated version
## service url: https://www.cbioportal.org/api/api-docs
## observed md5sum: 4188a76d21595ffbf4d7749d60f24898
## expected md5sum: 1615443badbeaada68463859c34f15f8
head(available_tumor_types)
## Adenoid Cystic Carcinoma of the Breast
## "acbc"
## Adrenocortical Carcinoma|Adenoid Cystic Carcinoma Project
## "acc"
## Adenoid Cystic Carcinoma
## "acyc"
## Pediatric Acute Myeloid Leukemia|Acute Myeloid Leukemia
## "aml"
## Ampullary Carcinoma
## "ampca"
## The Angiosarcoma Project - Count Me In|The Angiosarcoma Project
## "angs"
#Select melanoma, stomach adenocarcinoma, uterine cancer, lung adenocarcinoma,
#lung squamous cell carcinoma, colon rectum adenocarcinoma and breast cancer
lmParams(lm)$tumor_type <- c("skcm" , "stad" , "ucec" , "luad"
, "lusc" , "coadread" , "brca")
lm <- alignSequences(lm)
## Aligning sequences...
This method is basically self explained. It aligns the sequences in the object. If you have not installed clustalomega yet, you can use the web service of clustalomega that we wrapped in our R package. The limit is set to 2000 sequences and it is slower than a local installation. Remember to put your own email in the mail command to activate this option since is required by the EBI server.
lm <- alignSequences(lm , mail="lowmaca@gmail.com")
#Access to the slot alignment
myAlignment <- lmAlignment(lm)
str(myAlignment , max.level=2 , vec.len=2)
## List of 4
## $ ALIGNMENT:'data.frame': 1708 obs. of 8 variables:
## ..$ domainID : Factor w/ 28 levels "ARGFX|PF00046|503582|79;135",..: 1 1 1 1 1 ...
## ..$ Gene_Symbol : chr [1:1708] "ARGFX" "ARGFX" ...
## ..$ Pfam : chr [1:1708] "PF00046" "PF00046" ...
## ..$ Entrez : chr [1:1708] "503582" "503582" ...
## ..$ Envelope_Start: num [1:1708] 79 79 79 79 79 ...
## ..$ Envelope_End : num [1:1708] 135 135 135 135 135 ...
## ..$ Align : int [1:1708] 1 2 3 4 5 ...
## ..$ Ref : num [1:1708] 79 80 81 82 83 ...
## $ SCORE :List of 2
## ..$ DIST_MAT : num [1:28, 1:28] NA 36.4 ...
## .. ..- attr(*, "dimnames")=List of 2
## ..$ SUMMARY_SCORE:'data.frame': 28 obs. of 4 variables:
## $ CLUSTAL :Formal class 'AAMultipleAlignment' [package "Biostrings"] with 3 slots
## $ df :'data.frame': 61 obs. of 2 variables:
## ..$ consensus : chr [1:61] "R" "R" ...
## ..$ conservation: num [1:61] 0.411 0.456 ...
lm <- getMutations(lm)
## Getting mutations from cancers studies...
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## brca_metabric_mutations
## Impossible to retrive mutations from brca_metabric study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## brca_mskcc_2019_mutations
## Impossible to retrive mutations from brca_mskcc_2019 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## brca_jup_msk_2020_mutations
## Impossible to retrive mutations from brca_jup_msk_2020 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## coadread_mskcc_mutations
## Impossible to retrive mutations from coadread_mskcc study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## luad_tsp_mutations
## Impossible to retrive mutations from luad_tsp study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## rectal_msk_2019_mutations
## Impossible to retrive mutations from rectal_msk_2019 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## skcm_vanderbilt_mskcc_2015_mutations
## Impossible to retrive mutations from skcm_vanderbilt_mskcc_2015 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## ucec_msk_2018_mutations
## Impossible to retrive mutations from ucec_msk_2018 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## crc_nigerian_2020_mutations
## Impossible to retrive mutations from crc_nigerian_2020 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## crc_apc_impact_2020_mutations
## Impossible to retrive mutations from crc_apc_impact_2020 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## brca_mapk_hp_msk_2021_mutations
## Impossible to retrive mutations from brca_mapk_hp_msk_2021 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## crc_msk_2017_mutations
## Impossible to retrive mutations from crc_msk_2017 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## crc_dd_2022_mutations
## Impossible to retrive mutations from crc_dd_2022 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## lung_msk_2017_mutations
## Impossible to retrive mutations from lung_msk_2017 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## luad_mskcc_2020_mutations
## Impossible to retrive mutations from luad_mskcc_2020 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## mel_mskimpact_2020_mutations
## Impossible to retrive mutations from mel_mskimpact_2020 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## luad_msk_npjpo_2021_mutations
## Impossible to retrive mutations from luad_msk_npjpo_2021 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## luad_mskimpact_2021_mutations
## Impossible to retrive mutations from luad_mskimpact_2021 study or no mutations are present on the selected genes
## ProfileId brca_mbcproject_wagle_2017 has no samples with mutations
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## ucec_ccr_msk_2022_mutations
## Impossible to retrive mutations from ucec_ccr_msk_2022 study or no mutations are present on the selected genes
## Warning in cBioPortalData::mutationData(api = mycgds, molecularProfileIds =
## geneticProfile$molecularProfileId, : No data found for molecularProfileId:
## ucec_ccr_cfdna_msk_2022_mutations
## Impossible to retrive mutations from ucec_ccr_cfdna_msk_2022 study or no mutations are present on the selected genes
lm <- mapMutations(lm)
These commands produce a change in the slot mutation and provide the results from R cgdsr package.
#Access to the slot mutations
myMutations <- lmMutations(lm)
str(myMutations , vec.len=3 , max.level=1)
## List of 3
## $ data :'data.frame': 3584 obs. of 8 variables:
## $ freq :'data.frame': 7 obs. of 29 variables:
## $ aligned: num [1:28, 1:61] 0 0 1 0 0 1 1 0 ...
## ..- attr(*, "dimnames")=List of 2
If we want to check what are the most represented genes in terms of number of mutations divided by tumor type, we can simply run:
myMutationFreqs <- myMutations$freq
#Showing the first genes
myMutationFreqs[ , 1:10]
## StudyID Total_Sequenced_Samples ADNP ALX1 ALX4 ARGFX CDX4 CRX CUX1 CUX2
## 1 brca 211 29 6 7 4 5 11 22 25
## 2 coadread 365 35 11 28 9 7 19 75 67
## 3 luad 408 10 16 14 12 23 19 38 69
## 4 lusc 233 6 12 10 7 10 8 30 32
## 5 skcm 390 23 7 19 27 39 23 77 113
## 6 stad 204 15 13 12 3 13 17 41 30
## 7 ucec 207 46 25 22 9 32 20 93 44
This can be useful for a stratified analysis in the future.
To simplify this setup process, you can use directly the command setup to launch alignSequences, getMutations and mapMutations at once
#Local Installation of clustalo
lm <- setup(lm)
#Web Service
lm <- setup(lm , mail="lowmaca@gmail.com")
If you have your own data and you don’t need to rely on the cgdsr package, you can use getMutations or setup method with the parameter repos, like this:
#Reuse the downloaded data as a toy example
myOwnData <- myMutations$data
#How myOwnData should look like for the argument repos
str(myMutations$data , vec.len=1)
## 'data.frame': 3584 obs. of 8 variables:
## $ Entrez : int 1046 1046 ...
## $ Gene_Symbol : chr "CDX4" ...
## $ Amino_Acid_Letter : chr "S" ...
## $ Amino_Acid_Position: num 245 174 ...
## $ Amino_Acid_Change : chr "S245L" ...
## $ Mutation_Type : chr "Missense_Mutation" ...
## $ Sample : chr "TCGA-AO-A125" ...
## $ Tumor_Type : chr "brca" ...
#Read the mutation data repository instead of using cgdsr package
#Following the process step by step
lm <- getMutations(lm , repos=myOwnData)
## Filtering mutations from local repository...
#Setup in one shot
lm <- setup(lm , repos=myOwnData)
## Aligning sequences...
## Filtering mutations from local repository...
In this step we calculate the general statistics for the entire consensus profile
lm <- entropy(lm)
## Making uniform model...
## Assigned bandwidth: 0
#Global Score
myEntropy <- lmEntropy(lm)
str(myEntropy)
## List of 6
## $ bw : num 0
## $ uniform :function (nmut)
## $ absval : num 3.7
## $ log10pval : num -30.3
## $ pvalue : num 4.47e-31
## $ conservation_thr: num 0.1
#Per position score
head(myAlignment$df)
## consensus conservation
## 1 R 0.4110988
## 2 R 0.4558683
## 3 A 0.1505496
## 4 R 0.9493924
## 5 T 0.6493677
## 6 A 0.3113640
With the method entropy, we calculate the entropy score and a p-value against the null hypothesis that the mutations are distributed randomly across our consensus protein. In addition, a test is performed for every position of the consensus and the output is reported in the slot alignment. The position 4 has a conservation score of 0.88 (highly conserved) and the corrected p-value is significant (q-value below 0.01). There are signs of positive selection for the position 4. To retrieve the original mutations that generated that cluster, we can use the function lfm
significant_muts <- lfm(lm)
#Display original mutations that formed significant clusters (column Multiple_Aln_pos)
head(significant_muts)
## Gene_Symbol Amino_Acid_Position Amino_Acid_Change Sample
## 1 ALX1 184 R184M luad_mskcc_2015_11
## 2 ALX1 184 R184K TCGA-17-Z018
## 3 ALX4 216 R216Q brca_smc_2018_BB01_036
## 4 ALX4 265 R265Q TCGA-D8-A1Y1
## 5 ALX4 218 R218Q TCGA-AA-3949
## 6 ALX4 218 R218Q coadread_dfci_2016_2227
## Tumor_Type Envelope_Start Envelope_End Multiple_Aln_pos metric Entrez
## 1 luad 133 189 56 1.303347e-04 8092
## 2 luad 133 189 56 1.303347e-04 8092
## 3 brca 215 271 2 4.295965e-04 60529
## 4 brca 215 271 55 1.695598e-02 60529
## 5 coadread 215 271 4 1.818796e-17 60529
## 6 coadread 215 271 4 1.818796e-17 60529
## Entry UNIPROT Chromosome Protein.name
## 1 Q15699 ALX1_HUMAN 12q21.31 ALX homeobox protein 1
## 2 Q15699 ALX1_HUMAN 12q21.31 ALX homeobox protein 1
## 3 Q9H161 ALX4_HUMAN 11p11.2 Homeobox protein aristaless-like 4
## 4 Q9H161 ALX4_HUMAN 11p11.2 Homeobox protein aristaless-like 4
## 5 Q9H161 ALX4_HUMAN 11p11.2 Homeobox protein aristaless-like 4
## 6 Q9H161 ALX4_HUMAN 11p11.2 Homeobox protein aristaless-like 4
#What are the genes mutated in position 4 in the consensus?
genes_mutated_in_pos4 <- significant_muts[ significant_muts$Multiple_Aln_pos==4 , 'Gene_Symbol']
sort(table(genes_mutated_in_pos4))
## genes_mutated_in_pos4
## DBX2 DLX5 HOXB3 ISL1 LHX8 CUX1 EVX2 HOXA3 HOXA5 ALX4 CDX4 CRX HDX
## 1 1 1 1 1 2 2 2 2 3 3 3 3
## HOXD3 DUXA HOXA1 ISX
## 4 6 9 22
The position 4 accounts for mutations in 13 different genes. The most represented one is ISX (ISX_HUMAN, Intestine-specific homeobox protein).
bpAll(lm)
This barplot shows all the mutations reported on the consensus sequence divided by protein/pfam domain
lmPlot(lm)
This four layer plot encompasses:
#This plot is saved as a png image on a temporary file
tmp <- tempfile(pattern = "homeobox_protter" , fileext = ".png")
protter(lm , filename=tmp)
A request to the Protter server is sent and a png file is downloaded with the possible sequence structure of the protein and the significant positions colored in orange and red
An alternative use of LowMACA consists in analysing all the Pfams and single sequences encompassed by a specific set of mutations. For example, it is possible to analyse mutations derived from a cohort of patients to see which Pfams and set of mutations are enriched, following the LowMACA statistics. The function allPfamAnalysis takes as input a data.frame or the name of a file which contains the set of mutations, analyse all the Pfams that are represented and reports all the significant mutations as output. Moreover, the function allPfamAnalysis analyses individually all the mutated genes and reports the significant mutations found by this analysis as part of the output.
#Load Homeobox example
data(lmObj)
#Extract the data inside the object as a toy example
myData <- lmMutations(lmObj)$data
#Run allPfamAnalysis on every mutations
significant_muts <- allPfamAnalysis(repos=myData)
## Warning in mapMutations(object): We excluded these genes (or domains) because
## they have less than 1 mutations
## NULL
## Warning in .clustalOAlign(genesData, clustal_cmd, clustalo_filename, mail, :
## There are less than 3 sequences aligned, so no distance matrix can be calculated
## Warning in .clustalOAlign(genesData, clustal_cmd, clustalo_filename, mail, :
## There are less than 3 sequences aligned, so no distance matrix can be calculated
## Warning in .clustalOAlign(genesData, clustal_cmd, clustalo_filename, mail, :
## There are less than 3 sequences aligned, so no distance matrix can be calculated
## Warning in mapMutations(object): We excluded these genes (or domains) because
## they have less than 1 mutations
## NULL
#Show the result of alignment based analysis
head(significant_muts$AlignedSequence)
## Gene_Symbol Multiple_Aln_pos Pfam_ID binomialPvalue Amino_Acid_Position
## 1 ALX4 4 PF00046 0.8329828 218
## 2 CDX4 4 PF00046 0.5009311 177
## 3 CDX4 4 PF00046 0.5009311 177
## 4 CDX4 4 PF00046 0.5009311 177
## 5 CUX1 4 PF00046 0.1908599 1248
## 6 CUX1 4 PF00046 0.1908599 1248
## Amino_Acid_Change Sample Tumor_Type Envelope_Start Envelope_End
## 1 R218Q TCGA-AA-3949-01 coadread 215 271
## 2 R177C TCGA-D3-A2JO-06 skcm 174 230
## 3 R177C TCGA-AP-A0LM-01 ucec 174 230
## 4 R177C MEL-Ma-Mel-85 skcm 174 230
## 5 R1248W TCGA-ER-A193-06 skcm 1245 1301
## 6 R1248W TCGA-BG-A18B-01 ucec 1245 1301
## metric Entrez Entry UNIPROT Chromosome
## 1 1.781665e-12 60529 Q9H161 ALX4_HUMAN 11p11.2
## 2 1.781665e-12 1046 O14627 CDX4_HUMAN Xq13.2
## 3 1.781665e-12 1046 O14627 CDX4_HUMAN Xq13.2
## 4 1.781665e-12 1046 O14627 CDX4_HUMAN Xq13.2
## 5 1.781665e-12 1523 P39880 CUX1_HUMAN 7q22.1
## 6 1.781665e-12 1523 P39880 CUX1_HUMAN 7q22.1
## Protein.name
## 1 Homeobox protein aristaless-like 4
## 2 Homeobox protein CDX-4
## 3 Homeobox protein CDX-4
## 4 Homeobox protein CDX-4
## 5 Homeobox protein cut-like 1
## 6 Homeobox protein cut-like 1
#Show all the genes that harbor significant mutations
unique(significant_muts$AlignedSequence$Gene_Symbol)
## [1] "ALX4" "CDX4" "CUX1" "DBX2" "DUXA" "EVX2" "HDX" "HOXA1" "HOXA5"
## [10] "HOXD3" "ISL1" "ISX" "LHX8"
#Show the result of the Single Gene based analysis
head(significant_muts$SingleSequence)
## Gene_Symbol Amino_Acid_Position Amino_Acid_Change
## PF00046.DUXA.1 DUXA 103 R103Q
## PF00046.DUXA.2 DUXA 103 R103L
## PF00046.DUXA.3 DUXA 103 R103Q
## PF00046.DUXA.4 DUXA 17 R17H
## PF00046.DUXA.5 DUXA 105 R105C
## PF00046.DUXA.6 DUXA 105 R105H
## Sample Tumor_Type Envelope_Start Envelope_End
## PF00046.DUXA.1 TCGA-A8-A094-01 brca 102 156
## PF00046.DUXA.2 LUAD-S00488 luad 102 156
## PF00046.DUXA.3 TCGA-B5-A11E-01 ucec 102 156
## PF00046.DUXA.4 TCGA-D1-A0ZS-01 ucec 16 70
## PF00046.DUXA.5 TCGA-60-2722-01 lusc 102 156
## PF00046.DUXA.6 587284 coadread 102 156
## Multiple_Aln_pos metric Entrez Entry UNIPROT Chromosome
## PF00046.DUXA.1 2 0.03441648 503835 A6NLW8 DUXA_HUMAN 19q13.43
## PF00046.DUXA.2 2 0.03441648 503835 A6NLW8 DUXA_HUMAN 19q13.43
## PF00046.DUXA.3 2 0.03441648 503835 A6NLW8 DUXA_HUMAN 19q13.43
## PF00046.DUXA.4 2 0.03441648 503835 A6NLW8 DUXA_HUMAN 19q13.43
## PF00046.DUXA.5 4 0.03441648 503835 A6NLW8 DUXA_HUMAN 19q13.43
## PF00046.DUXA.6 4 0.03441648 503835 A6NLW8 DUXA_HUMAN 19q13.43
## Protein.name
## PF00046.DUXA.1 Double homeobox protein A
## PF00046.DUXA.2 Double homeobox protein A
## PF00046.DUXA.3 Double homeobox protein A
## PF00046.DUXA.4 Double homeobox protein A
## PF00046.DUXA.5 Double homeobox protein A
## PF00046.DUXA.6 Double homeobox protein A
#Show all the genes that harbor significant mutations
unique(significant_muts$SingleSequence$Gene_Symbol)
## [1] "DUXA"
The parameter allLowMACAObjects can be used to specify the name of the file where all the Pfam analyses will be stored (by default this information is not stored, because the resulting file can be huge, according to the size of the input dataset). In this case, all the analysed Pfams are stored as LowMACA objects and they can be loaded and analysed with the usual LowMACA workflow.
Copy and paste on your R console and perform the entire analysis by yourself. You need Ghostscript to see all the plots.
library(LowMACA)
Genes <- c("ADNP","ALX1","ALX4","ARGFX","CDX4","CRX"
,"CUX1","CUX2","DBX2","DLX5","DMBX1","DRGX"
,"DUXA","ESX1","EVX2","HDX","HLX","HNF1A"
,"HOXA1","HOXA2","HOXA3","HOXA5","HOXB1","HOXB3"
,"HOXD3","ISL1","ISX","LHX8")
Pfam <- "PF00046"
lm <- newLowMACA(genes=Genes , pfam=Pfam)
lmParams(lm)$tumor_type <- c("skcm" , "stad" , "ucec" , "luad"
, "lusc" , "coadread" , "brca")
lmParams(lm)$min_mutation_number <- 0
lm <- setup(lm , mail="lowmaca@gmail.com")
lm <- entropy(lm)
lfm(lm)
bpAll(lm)
lmPlot(lm)
protter(lm)
sessionInfo()
## R version 4.2.1 (2022-06-23)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 20.04.5 LTS
##
## Matrix products: default
## BLAS: /home/biocbuild/bbs-3.15-bioc/R/lib/libRblas.so
## LAPACK: /home/biocbuild/bbs-3.15-bioc/R/lib/libRlapack.so
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
## [3] LC_TIME=en_GB 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] LowMACA_1.26.2 BiocStyle_2.24.0
##
## loaded via a namespace (and not attached):
## [1] BiocFileCache_2.4.0 RCircos_1.2.2
## [3] plyr_1.8.7 splines_4.2.1
## [5] BiocParallel_1.30.4 TCGAutils_1.16.1
## [7] gridBase_0.4-7 GenomeInfoDb_1.32.4
## [9] ggplot2_3.3.6 TFBSTools_1.34.0
## [11] digest_0.6.29 htmltools_0.5.3
## [13] cBioPortalData_2.8.2 magick_2.7.3
## [15] GO.db_3.15.0 AnVIL_1.8.8
## [17] fansi_1.0.3 magrittr_2.0.3
## [19] memoise_2.0.1 BSgenome_1.64.0
## [21] grImport2_0.2-0 tzdb_0.3.0
## [23] limma_3.52.4 Biostrings_2.64.1
## [25] readr_2.1.3 annotate_1.74.0
## [27] matrixStats_0.62.0 R.utils_2.12.0
## [29] prettyunits_1.1.1 jpeg_0.1-9
## [31] colorspace_2.0-3 blob_1.2.3
## [33] rvest_1.0.3 rappdirs_0.3.3
## [35] xfun_0.33 dplyr_1.0.10
## [37] crayon_1.5.2 RCurl_1.98-1.9
## [39] jsonlite_1.8.2 RaggedExperiment_1.20.1
## [41] TFMPvalue_0.0.8 survival_3.4-0
## [43] glue_1.6.2 GenomicDataCommons_1.20.3
## [45] gtable_0.3.1 zlibbioc_1.42.0
## [47] XVector_0.36.0 DelayedArray_0.22.0
## [49] BiocGenerics_0.42.0 scales_1.2.1
## [51] futile.options_1.0.1 DBI_1.1.3
## [53] Rcpp_1.0.9 xtable_1.8-4
## [55] progress_1.2.2 bit_4.0.4
## [57] stats4_4.2.1 htmlwidgets_1.5.4
## [59] httr_1.4.4 RColorBrewer_1.1-3
## [61] ellipsis_0.3.2 R.methodsS3_1.8.2
## [63] pkgconfig_2.0.3 XML_3.99-0.11
## [65] rapiclient_0.1.3 sass_0.4.2
## [67] dbplyr_2.2.1 utf8_1.2.2
## [69] RJSONIO_1.3-1.6 tidyselect_1.2.0
## [71] rlang_1.0.6 reshape2_1.4.4
## [73] AnnotationDbi_1.58.0 munsell_0.5.0
## [75] tools_4.2.1 cachem_1.0.6
## [77] cli_3.4.1 DirichletMultinomial_1.38.0
## [79] generics_0.1.3 RSQLite_2.2.18
## [81] ade4_1.7-19 evaluate_0.17
## [83] stringr_1.4.1 fastmap_1.1.0
## [85] yaml_2.3.5 knitr_1.40
## [87] bit64_4.0.5 caTools_1.18.2
## [89] purrr_0.3.5 KEGGREST_1.36.3
## [91] formatR_1.12 R.oo_1.25.0
## [93] poweRlaw_0.70.6 pracma_2.4.2
## [95] xml2_1.3.3 biomaRt_2.52.0
## [97] compiler_4.2.1 filelock_1.0.2
## [99] curl_4.3.3 png_0.1-7
## [101] tibble_3.1.8 bslib_0.4.0
## [103] stringi_1.7.8 LowMACAAnnotation_0.99.3
## [105] highr_0.9 futile.logger_1.4.3
## [107] GenomicFeatures_1.48.4 lattice_0.20-45
## [109] CNEr_1.32.0 Matrix_1.5-1
## [111] RTCGAToolbox_2.26.1 vctrs_0.4.2
## [113] pillar_1.8.1 lifecycle_1.0.3
## [115] BiocManager_1.30.18 jquerylib_0.1.4
## [117] data.table_1.14.2 bitops_1.0-7
## [119] rtracklayer_1.56.1 GenomicRanges_1.48.0
## [121] R6_2.5.1 BiocIO_1.6.0
## [123] bookdown_0.29 IRanges_2.30.1
## [125] motifStack_1.40.0 codetools_0.2-18
## [127] lambda.r_1.2.4 MASS_7.3-58.1
## [129] gtools_3.9.3 assertthat_0.2.1
## [131] seqLogo_1.62.0 SummarizedExperiment_1.26.1
## [133] rjson_0.2.21 GenomicAlignments_1.32.1
## [135] Rsamtools_2.12.0 S4Vectors_0.34.0
## [137] GenomeInfoDbData_1.2.8 parallel_4.2.1
## [139] hms_1.1.2 MultiAssayExperiment_1.22.0
## [141] grid_4.2.1 tidyr_1.2.1
## [143] rmarkdown_2.17 MatrixGenerics_1.8.1
## [145] base64enc_0.1-3 Biobase_2.56.0
## [147] restfulr_0.0.15