├── tests ├── testthat.R └── testthat │ └── test-evidence.R ├── data ├── artms_config.RData ├── artms_data_ph_keys.RData ├── artms_data_randomDF.RData ├── artms_data_pathogen_TB.RData ├── artms_data_ph_config.RData ├── artms_data_ph_contrast.RData ├── artms_data_ph_evidence.RData ├── artms_data_pathogen_LPN.RData ├── artms_data_ph_msstats_modelqc.RData ├── artms_data_ph_msstats_results.RData └── artms_data_corum_mito_database.RData ├── _pkgdown.yml ├── docs ├── reference │ ├── Rplot001.png │ ├── Rplot002.png │ ├── artmsVolcanoPlot-1.png │ ├── artmsPlotHeatmapQuant-1.png │ ├── artmsQualityControlEvidenceBasic-1.png │ ├── artmsQualityControlEvidenceBasic-2.png │ ├── artms_data_randomDF.html │ ├── artms_data_pathogen_TB.html │ ├── artms_data_ph_contrast.html │ ├── artms_data_ph_msstats_modelqc.html │ ├── artms_data_pathogen_LPN.html │ └── artms_data_ph_msstats_results.html ├── articles │ ├── artMS_vignette_files │ │ ├── figure-html │ │ │ ├── unnamed-chunk-4-1.png │ │ │ ├── unnamed-chunk-4-2.png │ │ │ ├── unnamed-chunk-4-3.png │ │ │ ├── unnamed-chunk-4-4.png │ │ │ ├── unnamed-chunk-4-5.png │ │ │ ├── unnamed-chunk-4-6.png │ │ │ ├── unnamed-chunk-6-1.png │ │ │ ├── unnamed-chunk-6-2.png │ │ │ ├── unnamed-chunk-6-3.png │ │ │ ├── unnamed-chunk-6-4.png │ │ │ ├── unnamed-chunk-6-5.png │ │ │ ├── unnamed-chunk-6-6.png │ │ │ └── unnamed-chunk-6-7.png │ │ └── header-attrs-2.9 │ │ │ └── header-attrs.js │ └── index.html ├── pkgdown.yml ├── link.svg ├── bootstrap-toc.css ├── docsearch.js ├── pkgdown.js ├── sitemap.xml ├── bootstrap-toc.js ├── 404.html └── authors.html ├── .Rbuildignore ├── man ├── artms_data_pathogen_TB.Rd ├── artms_data_randomDF.Rd ├── artms_data_pathogen_LPN.Rd ├── artms_data_ph_contrast.Rd ├── artms_data_ph_msstats_modelqc.Rd ├── artms_data_ph_msstats_results.Rd ├── artmsFilterEvidenceContaminants.Rd ├── artms_data_ph_evidence.Rd ├── artmsIsEvidenceNewVersion.Rd ├── artmsMapUniprot2Entrez.Rd ├── artmsChangeColumnName.Rd ├── artmsDataPlots.Rd ├── artms_data_corum_mito_database.Rd ├── artmsSILACtoLong.Rd ├── artmsPhotonOutput.Rd ├── artmsPhosfateOutput.Rd ├── artmsWriteConfigYamlFile.Rd ├── artmsSpectralCounts.Rd ├── artmsMergeEvidenceAndKeys.Rd ├── artms_data_ph_keys.Rd ├── artmsAnnotationUniprot.Rd ├── artmsVolcanoPlot.Rd ├── artmsAnnotateSpecie.Rd ├── artmsLeaveOnlyUniprotEntryID.Rd ├── artmsEvidenceToSaintExpress.Rd ├── artmsAvgIntensityRT.Rd ├── artmsGeneratePhSiteExtended.Rd ├── artmsIsSpeciesSupported.Rd ├── artmsEnrichLog2fc.Rd ├── artmsResultsWide.Rd ├── artmsConvertMetabolomics.Rd ├── artms_data_ph_config.Rd ├── artmsMsstatsSummary.Rd ├── artmsPlotHeatmapQuant.Rd ├── artmsEvidenceToSAINTq.Rd ├── artmsQuantification.Rd ├── artmsQualityControlMetabolomics.Rd ├── artmsQualityControlSummaryExtended.Rd ├── artms_config.Rd ├── artmsEnrichProfiler.Rd ├── artmsProtein2SiteConversion.Rd └── artmsQualityControlEvidenceBasic.Rd ├── .travis.yml ├── .gitignore ├── inst └── extdata │ └── artms_config.yaml ├── DESCRIPTION ├── NAMESPACE ├── R ├── metabolomics.R ├── avg_intensity_RT.R ├── writeExtras.R ├── otherApps.R ├── getMSstatsformat.R └── evidenceToSaintExpressFormat.R └── README.md /tests/testthat.R: -------------------------------------------------------------------------------- 1 | library(testthat) 2 | library(artMS) 3 | 4 | test_check("artMS") 5 | -------------------------------------------------------------------------------- /data/artms_config.RData: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/data/artms_config.RData -------------------------------------------------------------------------------- /_pkgdown.yml: -------------------------------------------------------------------------------- 1 | url: http://artms.org/ 2 | 3 | template: 4 | params: 5 | ganalytics: UA-26635029-4 6 | -------------------------------------------------------------------------------- /docs/reference/Rplot001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/reference/Rplot001.png -------------------------------------------------------------------------------- /docs/reference/Rplot002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/reference/Rplot002.png -------------------------------------------------------------------------------- /data/artms_data_ph_keys.RData: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/data/artms_data_ph_keys.RData -------------------------------------------------------------------------------- /data/artms_data_randomDF.RData: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/data/artms_data_randomDF.RData -------------------------------------------------------------------------------- /data/artms_data_pathogen_TB.RData: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/data/artms_data_pathogen_TB.RData -------------------------------------------------------------------------------- /data/artms_data_ph_config.RData: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/data/artms_data_ph_config.RData -------------------------------------------------------------------------------- /data/artms_data_ph_contrast.RData: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/data/artms_data_ph_contrast.RData -------------------------------------------------------------------------------- /data/artms_data_ph_evidence.RData: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/data/artms_data_ph_evidence.RData -------------------------------------------------------------------------------- /data/artms_data_pathogen_LPN.RData: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/data/artms_data_pathogen_LPN.RData -------------------------------------------------------------------------------- /docs/reference/artmsVolcanoPlot-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/reference/artmsVolcanoPlot-1.png -------------------------------------------------------------------------------- /data/artms_data_ph_msstats_modelqc.RData: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/data/artms_data_ph_msstats_modelqc.RData -------------------------------------------------------------------------------- /data/artms_data_ph_msstats_results.RData: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/data/artms_data_ph_msstats_results.RData -------------------------------------------------------------------------------- /data/artms_data_corum_mito_database.RData: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/data/artms_data_corum_mito_database.RData -------------------------------------------------------------------------------- /docs/reference/artmsPlotHeatmapQuant-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/reference/artmsPlotHeatmapQuant-1.png -------------------------------------------------------------------------------- /.Rbuildignore: -------------------------------------------------------------------------------- 1 | ^Meta$ 2 | ^doc$ 3 | ^.*\.Rproj$ 4 | ^\.Rproj\.user$ 5 | ^data-raw$ 6 | codecov.yml 7 | .travis.yml 8 | ^.*\.git$ 9 | _pkgdown.yml -------------------------------------------------------------------------------- /docs/reference/artmsQualityControlEvidenceBasic-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/reference/artmsQualityControlEvidenceBasic-1.png -------------------------------------------------------------------------------- /docs/reference/artmsQualityControlEvidenceBasic-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/reference/artmsQualityControlEvidenceBasic-2.png -------------------------------------------------------------------------------- /docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-4-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-4-1.png -------------------------------------------------------------------------------- /docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-4-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-4-2.png -------------------------------------------------------------------------------- /docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-4-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-4-3.png -------------------------------------------------------------------------------- /docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-4-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-4-4.png -------------------------------------------------------------------------------- /docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-4-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-4-5.png -------------------------------------------------------------------------------- /docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-4-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-4-6.png -------------------------------------------------------------------------------- /docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-6-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-6-1.png -------------------------------------------------------------------------------- /docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-6-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-6-2.png -------------------------------------------------------------------------------- /docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-6-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-6-3.png -------------------------------------------------------------------------------- /docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-6-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-6-4.png -------------------------------------------------------------------------------- /docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-6-5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-6-5.png -------------------------------------------------------------------------------- /docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-6-6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-6-6.png -------------------------------------------------------------------------------- /docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-6-7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/biodavidjm/artMS/HEAD/docs/articles/artMS_vignette_files/figure-html/unnamed-chunk-6-7.png -------------------------------------------------------------------------------- /docs/pkgdown.yml: -------------------------------------------------------------------------------- 1 | pandoc: 2.11.4 2 | pkgdown: 1.6.1 3 | pkgdown_sha: ~ 4 | articles: 5 | artMS_vignette: artMS_vignette.html 6 | last_built: 2021-07-14T07:23Z 7 | urls: 8 | reference: http://artms.org//reference 9 | article: http://artms.org//articles 10 | 11 | -------------------------------------------------------------------------------- /man/artms_data_pathogen_TB.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{artms_data_pathogen_TB} 5 | \alias{artms_data_pathogen_TB} 6 | \title{TB PATHOGEN: Mycobacterium tuberculosis 7 | (strain ATCC 35801 / TMC 107 / Erdman) UNIPROTS IDS} 8 | \format{ 9 | A data.frame of Entry IDs 10 | } 11 | \usage{ 12 | artms_data_pathogen_TB 13 | } 14 | \description{ 15 | TB PATHOGEN: Mycobacterium tuberculosis 16 | (strain ATCC 35801 / TMC 107 / Erdman) UNIPROTS IDS 17 | } 18 | \keyword{datasets} 19 | -------------------------------------------------------------------------------- /man/artms_data_randomDF.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{artms_data_randomDF} 5 | \alias{artms_data_randomDF} 6 | \title{Random data set} 7 | \format{ 8 | A data frame with 100 rows and 10 variables: 9 | \describe{ 10 | Dataset generated using this code 11 | 12 | \code{data.frame(replicate(10,sample(0:1,100,rep=TRUE)))} 13 | } 14 | } 15 | \usage{ 16 | artms_data_randomDF 17 | } 18 | \description{ 19 | Dataset randomly generated for testing purposes 20 | } 21 | \keyword{datasets} 22 | -------------------------------------------------------------------------------- /man/artms_data_pathogen_LPN.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{artms_data_pathogen_LPN} 5 | \alias{artms_data_pathogen_LPN} 6 | \title{LPN PATHOGEN: Legionella pneumophila subsp. pneumophila 7 | (strain Philadelphia 1 / ATCC 33152 / DSM 7513) UNIPROT IDS} 8 | \format{ 9 | A data.frame of Entry IDs 10 | } 11 | \usage{ 12 | artms_data_pathogen_LPN 13 | } 14 | \description{ 15 | LPN PATHOGEN: Legionella pneumophila subsp. pneumophila 16 | (strain Philadelphia 1 / ATCC 33152 / DSM 7513) UNIPROT IDS 17 | } 18 | \keyword{datasets} 19 | -------------------------------------------------------------------------------- /docs/articles/artMS_vignette_files/header-attrs-2.9/header-attrs.js: -------------------------------------------------------------------------------- 1 | // Pandoc 2.9 adds attributes on both header and div. We remove the former (to 2 | // be compatible with the behavior of Pandoc < 2.8). 3 | document.addEventListener('DOMContentLoaded', function(e) { 4 | var hs = document.querySelectorAll("div.section[class*='level'] > :first-child"); 5 | var i, h, a; 6 | for (i = 0; i < hs.length; i++) { 7 | h = hs[i]; 8 | if (!/^h[1-6]$/i.test(h.tagName)) continue; // it should be a header h1-h6 9 | a = h.attributes; 10 | while (a.length > 0) h.removeAttribute(a[0].name); 11 | } 12 | }); 13 | -------------------------------------------------------------------------------- /man/artms_data_ph_contrast.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{artms_data_ph_contrast} 5 | \alias{artms_data_ph_contrast} 6 | \title{Contrast example for the PH dataset} 7 | \format{ 8 | list with one comparison: "Cal33-HSC6" 9 | } 10 | \usage{ 11 | artms_data_ph_contrast 12 | } 13 | \description{ 14 | Contrast file with the relative quantification to be performed 15 | for the two conditions available in the example dataset: "Cal33-HSC6". 16 | See vignette for more details on how to prepare the contrast file. 17 | } 18 | \keyword{datasets} 19 | -------------------------------------------------------------------------------- /man/artms_data_ph_msstats_modelqc.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{artms_data_ph_msstats_modelqc} 5 | \alias{artms_data_ph_msstats_modelqc} 6 | \title{MSstats modelQC example} 7 | \format{ 8 | A data frame resulting from running the latest version of 9 | \code{MSstats::groupComparison} function required as input for 10 | artmsAnalysisQuantifications() 11 | } 12 | \usage{ 13 | artms_data_ph_msstats_modelqc 14 | } 15 | \description{ 16 | Normalized data obtained from the \code{artmsQuantification()} step 17 | of the PH dataset (global analysis) 18 | } 19 | \keyword{datasets} 20 | -------------------------------------------------------------------------------- /man/artms_data_ph_msstats_results.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{artms_data_ph_msstats_results} 5 | \alias{artms_data_ph_msstats_results} 6 | \title{MSstats results example} 7 | \format{ 8 | A data frame resulting from running the latest version of MSstats 9 | } 10 | \usage{ 11 | artms_data_ph_msstats_results 12 | } 13 | \description{ 14 | Relative quantification results obtained running MSstats 15 | on the available PH datasets (global analysis). 16 | Changes in protein phosphorylation were quantified between two conditions 17 | (check \code{artms_data_ph_contrast}) 18 | } 19 | \keyword{datasets} 20 | -------------------------------------------------------------------------------- /docs/link.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 13 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # R for travis: see documentation at https://docs.travis-ci.com/user/languages/r 2 | 3 | # Use R language 4 | language: r 5 | 6 | #Define multiple R-versions, one from bioconductor 7 | r: 8 | - oldrel 9 | - release 10 | - devel 11 | - bioc-devel 12 | 13 | env: _R_CHECK_CRAN_INCOMING_=false 14 | 15 | cache: 16 | packages: true 17 | 18 | addons: 19 | apt: 20 | update: true 21 | packages: 22 | - libgit2-dev 23 | 24 | r_packages: 25 | - covr 26 | - devtools 27 | 28 | r_github_packages: 29 | - biodavidjm/artMS 30 | 31 | bioc_packages: 32 | - BiocStyle 33 | - biomaRt 34 | - ComplexHeatmap 35 | - limma 36 | - MSstats 37 | - org.Hs.eg.db 38 | - org.Mm.eg.db 39 | 40 | r_check_args: --no-build-vignettes --no-vignettes 41 | 42 | warnings_are_errors: true 43 | 44 | # after_success: 45 | # - Rscript -e 'library(covr); codecov()' 46 | -------------------------------------------------------------------------------- /man/artmsFilterEvidenceContaminants.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/MSstats_functions.R 3 | \name{artmsFilterEvidenceContaminants} 4 | \alias{artmsFilterEvidenceContaminants} 5 | \title{Remove contaminants and empty proteins from the MaxQuant evidence file} 6 | \usage{ 7 | artmsFilterEvidenceContaminants(x, verbose = TRUE) 8 | } 9 | \arguments{ 10 | \item{x}{(data.frame) of the Evidence file} 11 | 12 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 13 | } 14 | \value{ 15 | (data.frame) without REV__ and CON__ Protein ids 16 | } 17 | \description{ 18 | Remove contaminants and erronously identified 'reverse' 19 | sequences by MaxQuant, in addition to empty protein ids 20 | } 21 | \examples{ 22 | ef <- artmsFilterEvidenceContaminants(x = artms_data_ph_evidence) 23 | } 24 | \keyword{cleanup,} 25 | \keyword{contaminants} 26 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | Meta 2 | doc 3 | 4 | # History files 5 | **.Rhistory 6 | **.Rapp.history 7 | **.Rprofile 8 | **.DS_Store 9 | 10 | # TESTS 11 | tests/testthat/*log 12 | tests/testthat/*txt 13 | tests/testthat/*pdf 14 | 15 | # MSstats files 16 | msstats.log* 17 | sessionInfo.txt 18 | # Session Data files 19 | .RData 20 | # Example code in package build process 21 | *-Ex.R 22 | # Output files from R CMD build 23 | /*.tar.gz 24 | # Output files from R CMD check 25 | /*.Rcheck/ 26 | # RStudio files 27 | .Rproj.user/ 28 | *.Rproj 29 | # produced vignettes 30 | vignettes/*.html 31 | vignettes/*.pdf 32 | # OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3 33 | .httr-oauth 34 | # knitr and R markdown default cache directories 35 | /*_cache/ 36 | /cache/ 37 | # Temporary files created by R markdown 38 | *.utf8.md 39 | *.knit.md 40 | .Rproj.user 41 | # The PDF is too large to be included 42 | inst/doc 43 | -------------------------------------------------------------------------------- /man/artms_data_ph_evidence.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{artms_data_ph_evidence} 5 | \alias{artms_data_ph_evidence} 6 | \title{Evidence file example} 7 | \format{ 8 | A data frame with all the columns available in an evidence file 9 | generated with MaxQuant version 1.6.2.3 10 | } 11 | \usage{ 12 | artms_data_ph_evidence 13 | } 14 | \description{ 15 | Evidence file from a PH experiment consisting of two 16 | head and neck cancer cell lines ("Conditions" \code{"Cal33"} and \code{"HSC6"}). 17 | 18 | Unfortunately, the number of lines was reduced to 1/20 due 19 | to bioconductor limitations on data size, but it should be enough to test the 20 | qc and quantification functions. The number of total columns 21 | from the original evidence file was also reduced to 36 22 | (out of the original 66 columns). 23 | Check \code{colnames(artms_data_ph_evidence)} for details 24 | } 25 | \keyword{datasets} 26 | -------------------------------------------------------------------------------- /man/artmsIsEvidenceNewVersion.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/checkIfFile.R 3 | \name{artmsIsEvidenceNewVersion} 4 | \alias{artmsIsEvidenceNewVersion} 5 | \title{Check if a given evidencee file was generated by a new version of 6 | MaxQuant (v>1)} 7 | \usage{ 8 | artmsIsEvidenceNewVersion(evidence_file) 9 | } 10 | \arguments{ 11 | \item{evidence_file}{the evidence file name} 12 | } 13 | \value{ 14 | (logical) \code{TRUE} if it is a newer version of MaxQuant, 15 | \code{FALSE} otherwise 16 | } 17 | \description{ 18 | MaxQuant introduced changes in the column names and number 19 | of columns for the evidence file in version 1 (we think). 20 | This function check whether the evidence comes from the latest version 21 | of MaxQuant. 22 | } 23 | \examples{ 24 | artmsIsEvidenceNewVersion(evidence_file = artms_data_ph_evidence) 25 | } 26 | \keyword{check} 27 | \keyword{evidence,} 28 | \keyword{file,} 29 | \keyword{input,} 30 | \keyword{version} 31 | -------------------------------------------------------------------------------- /man/artmsMapUniprot2Entrez.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/annotations.R 3 | \name{artmsMapUniprot2Entrez} 4 | \alias{artmsMapUniprot2Entrez} 5 | \title{Map GENE SYMBOL, NAME, AND ENTREZID to a vector of Uniprot IDS} 6 | \usage{ 7 | artmsMapUniprot2Entrez(uniprotkb, species) 8 | } 9 | \arguments{ 10 | \item{uniprotkb}{(vector) Vector of UniprotKB IDs} 11 | 12 | \item{species}{(char) The species name. Species currently supported 13 | as part of artMS: check \code{?artmsIsSpeciesSupported()} to find out the 14 | list of supported species`} 15 | } 16 | \value{ 17 | (data.frame) with ENTREZID and GENENAMES mapped on UniprotKB ids 18 | } 19 | \description{ 20 | Map GENE SYMBOL, NAME, AND ENTREZID to a vector of Uniprot IDS 21 | } 22 | \examples{ 23 | # Load an example with human proteins 24 | exampleID <- c("Q6P996", "B1N8M6") 25 | artmsMapUniprot2Entrez(uniprotkb = exampleID, 26 | species = "HUMAN") 27 | } 28 | \keyword{annotation,} 29 | \keyword{ids} 30 | -------------------------------------------------------------------------------- /man/artmsChangeColumnName.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/MSstats_functions.R 3 | \name{artmsChangeColumnName} 4 | \alias{artmsChangeColumnName} 5 | \title{Change a specific column name in a given data.frame} 6 | \usage{ 7 | artmsChangeColumnName(dataset, oldname, newname) 8 | } 9 | \arguments{ 10 | \item{dataset}{(data.frame) with the column name you want to change} 11 | 12 | \item{oldname}{(char) the old column name} 13 | 14 | \item{newname}{(char) the new name for that column} 15 | } 16 | \value{ 17 | (data.frame) with the new specified column name 18 | } 19 | \description{ 20 | Making easier to change a column name in any data.frame 21 | } 22 | \examples{ 23 | artms_data_ph_evidence <- artmsChangeColumnName( 24 | dataset = artms_data_ph_evidence, 25 | oldname = "Phospho..STY.", 26 | newname = "PH_STY") 27 | } 28 | \keyword{columns} 29 | \keyword{data.frame,} 30 | \keyword{rename,} 31 | -------------------------------------------------------------------------------- /man/artmsDataPlots.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/plots.R 3 | \name{artmsDataPlots} 4 | \alias{artmsDataPlots} 5 | \title{Individual Normalized abundance dot plots for every protein} 6 | \usage{ 7 | artmsDataPlots(input_file, output_file, verbose = TRUE) 8 | } 9 | \arguments{ 10 | \item{input_file}{(char) File path and name to the \code{-normalized.txt} output 11 | file from MSstats} 12 | 13 | \item{output_file}{(char) Output file (path) name (add the \code{.pdf} extension)} 14 | 15 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 16 | } 17 | \value{ 18 | (pdf) file with each individual protein abundance plot for each 19 | conditions 20 | } 21 | \description{ 22 | Protein abundance dot plots for each unique uniprot id. It can 23 | take a long time 24 | } 25 | \examples{ 26 | \dontrun{ 27 | artmsDataPlots(input_file = "results/ab-results-mss-normalized.txt", 28 | output_file = "results/ab-results-mss-normalized.pdf") 29 | } 30 | } 31 | \keyword{abundance,} 32 | \keyword{dotplots,} 33 | \keyword{plot} 34 | -------------------------------------------------------------------------------- /man/artms_data_corum_mito_database.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{artms_data_corum_mito_database} 5 | \alias{artms_data_corum_mito_database} 6 | \title{CORUM Protein Complexes database use for complex enrichment analysis} 7 | \format{ 8 | Tab delimited file. 9 | \describe{ 10 | To find out more about the format and columns available at CORUM, 11 | please visit this 12 | \href{http://mips.helmholtz-muenchen.de/corum/}{link} 13 | } 14 | } 15 | \usage{ 16 | artms_data_corum_mito_database 17 | } 18 | \description{ 19 | The list of protein complexes has been enriched with 20 | mitochondria proteins from mouse, as described in this paper: 21 | 22 | 2018 - Ruchi Masand, Esther Paulo, Dongmei Wu , Yangmeng Wang, 23 | Danielle L. Swaney, David Jimenez-Morales, Nevan J. Krogan, and Biao Wang 24 | Proteome Imbalance of Mitochondrial Electron Transport Chain in Brown 25 | Adipocytes Leads to Metabolic Benefits. 26 | Cell Metab. 2018 Mar 06; 27(3):616-629.e4 27 | } 28 | \details{ 29 | LAST CORUM DOWNLOAD DATE: 2017-08-01 30 | } 31 | \keyword{datasets} 32 | -------------------------------------------------------------------------------- /man/artmsSILACtoLong.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/MSstats_functions.R 3 | \name{artmsSILACtoLong} 4 | \alias{artmsSILACtoLong} 5 | \title{Convert the SILAC evidence file to MSstats format} 6 | \usage{ 7 | artmsSILACtoLong(evidence_file, output = NULL, verbose = TRUE) 8 | } 9 | \arguments{ 10 | \item{evidence_file}{(char) Text filepath to the evidence file} 11 | 12 | \item{output}{(char) Text filepath of the output name. If NULL it does not 13 | write the output} 14 | 15 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 16 | } 17 | \value{ 18 | (data.frame) with SILAC data processed for MSstats (and output file) 19 | } 20 | \description{ 21 | Converting the evidence file from a SILAC search to a format 22 | compatible with MSstats. It basically modifies the Raw.files adding the 23 | Heavy and Light label 24 | } 25 | \examples{ 26 | \dontrun{ 27 | evidence2silac <- artmsSILACtoLong(evidence_file = "silac.evicence.txt", 28 | output = "silac-evidence.txt") 29 | } 30 | } 31 | \keyword{convert,} 32 | \keyword{evidence} 33 | \keyword{silac,} 34 | -------------------------------------------------------------------------------- /man/artmsPhotonOutput.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/otherApps.R 3 | \name{artmsPhotonOutput} 4 | \alias{artmsPhotonOutput} 5 | \title{Generate PHOTON Input file} 6 | \usage{ 7 | artmsPhotonOutput(inputFile, output_dir = ".", verbose = TRUE) 8 | } 9 | \arguments{ 10 | \item{inputFile}{(char) the \code{imputedL2fcExtended.txt} file name and location} 11 | 12 | \item{output_dir}{(char) Name of the folder to output results 13 | (Default: current. Recommended: "photon_input_files" or similar)} 14 | 15 | \item{verbose}{(logical) \code{TRUE} (default) to show function messages} 16 | } 17 | \value{ 18 | Multiple output files (inputs of phosfate) 19 | } 20 | \description{ 21 | It takes as input the \code{imputedL2fcExtended.txt} results 22 | generated by the \code{artmsAnalysisQuantifications()} function and generates 23 | the \href{https://github.com/jdrudolph/photon}{PHOTON} input file. 24 | Please, notice that the only species suported by PHOTON is humans. 25 | } 26 | \examples{ 27 | \dontrun{ 28 | artmsPhotonOutput(inputFile) 29 | } 30 | } 31 | \keyword{files} 32 | \keyword{generate,} 33 | \keyword{outputs,} 34 | -------------------------------------------------------------------------------- /man/artmsPhosfateOutput.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/otherApps.R 3 | \name{artmsPhosfateOutput} 4 | \alias{artmsPhosfateOutput} 5 | \title{Generate Phosfate Input file} 6 | \usage{ 7 | artmsPhosfateOutput(inputFile, output_dir = ".", verbose = TRUE) 8 | } 9 | \arguments{ 10 | \item{inputFile}{(char) the \code{imputedL2fcExtended.txt} file name and location} 11 | 12 | \item{output_dir}{(char) Name of the folder to output results 13 | (Default: current directory. Recommended: \code{phosfate_input})} 14 | 15 | \item{verbose}{(logical) \code{TRUE} (default) to show function messages} 16 | } 17 | \value{ 18 | Multiple output files (inputs of phosfate) 19 | } 20 | \description{ 21 | It takes as input the \code{imputedL2fcExtended.txt} results 22 | generated by the \code{artmsAnalysisQuantifications()} function and generates 23 | the \href{http://phosfate.com/}{Phosfate} input file (or data.frame) 24 | Please, notice that the only species suported by Phosfate is humans. 25 | } 26 | \examples{ 27 | \dontrun{ 28 | artmsPhosfateOutput(inputFile) 29 | } 30 | } 31 | \keyword{files} 32 | \keyword{generate,} 33 | \keyword{outputs,} 34 | -------------------------------------------------------------------------------- /man/artmsWriteConfigYamlFile.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/main.R 3 | \name{artmsWriteConfigYamlFile} 4 | \alias{artmsWriteConfigYamlFile} 5 | \title{Write out a template file of the artMS configuration file (yaml)} 6 | \usage{ 7 | artmsWriteConfigYamlFile( 8 | config_file_name = "artms_config_file.yaml", 9 | overwrite = FALSE, 10 | verbose = TRUE 11 | ) 12 | } 13 | \arguments{ 14 | \item{config_file_name}{(char) The name for the configuration file. It must 15 | have a \code{.yaml} extension. If \code{NULL}, it returns the config as a yaml object} 16 | 17 | \item{overwrite}{(logical) Default FALSE} 18 | 19 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 20 | } 21 | \value{ 22 | A file (or yaml data object) of the artMS configuration file 23 | } 24 | \description{ 25 | Creates a template file of the artMS configuration file, which 26 | is required to run \code{artmsQuantification}. Check \code{?artms_config} and the 27 | vignettes to find out more about the details of the structure of the file 28 | and how to fill it up 29 | } 30 | \examples{ 31 | config_empty <- artmsWriteConfigYamlFile(config_file_name = NULL) 32 | } 33 | \keyword{config,} 34 | \keyword{yaml} 35 | -------------------------------------------------------------------------------- /man/artmsSpectralCounts.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/MSstats_functions.R 3 | \name{artmsSpectralCounts} 4 | \alias{artmsSpectralCounts} 5 | \title{Outputs the spectral counts from the MaxQuant evidence file.} 6 | \usage{ 7 | artmsSpectralCounts( 8 | evidence_file, 9 | keys_file, 10 | output_file = NULL, 11 | verbose = TRUE 12 | ) 13 | } 14 | \arguments{ 15 | \item{evidence_file}{(char) Maxquant evidence file or data object} 16 | 17 | \item{keys_file}{(char) Keys file with the experimental design or data object} 18 | 19 | \item{output_file}{(char) Output file name (add \code{.txt} extension). 20 | If \code{NULL} (default) it returns a data.frame object} 21 | 22 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 23 | } 24 | \value{ 25 | A txt file with biological replicates, protein id, and spectral 26 | count columns 27 | } 28 | \description{ 29 | Outputs the spectral counts from the MaxQuant evidence file. 30 | } 31 | \examples{ 32 | summary_spectral_counts <- artmsSpectralCounts( 33 | evidence_file = artms_data_ph_evidence, 34 | keys_file = artms_data_ph_keys) 35 | } 36 | \keyword{evidence} 37 | \keyword{spectral_counts,} 38 | -------------------------------------------------------------------------------- /man/artmsMergeEvidenceAndKeys.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/MSstats_functions.R 3 | \name{artmsMergeEvidenceAndKeys} 4 | \alias{artmsMergeEvidenceAndKeys} 5 | \title{Merge evidence.txt (or summary.txt) with keys.txt files} 6 | \usage{ 7 | artmsMergeEvidenceAndKeys( 8 | x, 9 | keys, 10 | by = c("RawFile"), 11 | isSummary = FALSE, 12 | verbose = TRUE 13 | ) 14 | } 15 | \arguments{ 16 | \item{x}{(data.frame or char) The evidence data, either as data.frame or 17 | the file name (and path). It also works for the summary.txt file} 18 | 19 | \item{keys}{The keys data, either as a data.frame or file name (and path)} 20 | 21 | \item{by}{(vector) specifying the columns use to merge the evidence and keys. 22 | Default: \code{by=c('RawFile')}} 23 | 24 | \item{isSummary}{(logical) TRUE or FALSE (default)} 25 | 26 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 27 | } 28 | \value{ 29 | (data.frame) with the evidence and keys merged 30 | } 31 | \description{ 32 | Merge the evidence and keys files on the given columns 33 | } 34 | \examples{ 35 | evidenceKeys <- artmsMergeEvidenceAndKeys(x = artms_data_ph_evidence, 36 | keys = artms_data_ph_keys) 37 | } 38 | \keyword{evidence,} 39 | \keyword{keys} 40 | \keyword{merge,} 41 | \keyword{summary,} 42 | -------------------------------------------------------------------------------- /tests/testthat/test-evidence.R: -------------------------------------------------------------------------------- 1 | context("Check Evidence file") 2 | 3 | test_that("checkIfFile",{ 4 | # Data.frame to test 5 | L3 <- LETTERS[1:3] 6 | fac <- sample(L3, 10, replace = TRUE) 7 | d <- data.frame(x = 1, y = 1:10, fac = fac) 8 | 9 | expect_true(is.data.frame(.artms_checkIfFile(d))) 10 | expect_error(.artms_checkIfFile(L3)) 11 | }) 12 | 13 | test_that("Check artmsQuantification() output", { 14 | # Get data ready 15 | artms_data_ph_config$files$evidence <- artms_data_ph_evidence 16 | artms_data_ph_config$files$keys <- artms_data_ph_keys 17 | artms_data_ph_config$files$contrasts <- artms_data_ph_contrast 18 | artms_data_ph_config$output_extras <- 0 19 | msresults <- artmsQuantification(yaml_config_file = artms_data_ph_config, 20 | data_object = TRUE, 21 | display_msstats = FALSE, 22 | verbose = TRUE, 23 | printPDF = FALSE, 24 | printTables = FALSE) 25 | # Test 26 | expect_equal( length(msresults), 5 ) 27 | expect_equal(dim(msresults$ComparisonResult)[1], 2) 28 | expect_equal(dim(msresults$ComparisonResult)[2], 11) 29 | expect_equal(dim(msresults$ModelQC)[1], 5) 30 | expect_equal(dim(msresults$ModelQC)[2], 13) 31 | expect_equal(length(msresults$FittedModel[[1]]), 13) 32 | }) 33 | 34 | 35 | -------------------------------------------------------------------------------- /man/artms_data_ph_keys.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{artms_data_ph_keys} 5 | \alias{artms_data_ph_keys} 6 | \title{Keys File Example} 7 | \format{ 8 | Tab delimited file with the following columns: 9 | \describe{ 10 | \item{Raw.file}{Raw file processed. Each one should be a unique 11 | biological (or technical) replicate} 12 | 13 | \item{IsotopeLabelType}{Type of labeling. \code{L} is used for label free 14 | experiments} 15 | 16 | \item{Condition}{Label for conditions. VERY IMPORTANT: Only alpha-numeric 17 | characters and \verb{underscore (_)} are allowed} 18 | 19 | \item{BioReplicate}{Label for the Biological replicates. VERY IMPORTANT: 20 | Use the same labeling for bioreplicate as the Condition, but adding a 21 | \verb{dash (-)} corresponding to the number of biological replicate. 22 | For example, for \code{Condition} \code{"Cal"}, use \code{Cal-1}, \code{Cal-2}, \code{Cal-3}, etc 23 | for the bioreplicates} 24 | 25 | \item{Run}{The MS run number} 26 | } 27 | } 28 | \usage{ 29 | artms_data_ph_keys 30 | } 31 | \description{ 32 | the \code{artMS} keys file provides the details of the experimental 33 | design for any given proteomics experiment. 34 | 35 | This particular example belongs to a PH experiment consisting of two 36 | head and neck cancer cell lines ("Conditions" \code{"Cal33"} and \code{"HSC6"}), 37 | with 2 biological replicates each (in this reduced version) 38 | } 39 | \keyword{datasets} 40 | -------------------------------------------------------------------------------- /man/artmsAnnotationUniprot.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/annotations.R 3 | \name{artmsAnnotationUniprot} 4 | \alias{artmsAnnotationUniprot} 5 | \title{Annotate table with Gene Symbol and Name based on Uniprot ID(s)} 6 | \usage{ 7 | artmsAnnotationUniprot(x, columnid, species, verbose = TRUE) 8 | } 9 | \arguments{ 10 | \item{x}{(data.frame) to be annotated (or file path and name)} 11 | 12 | \item{columnid}{(char) The column with the uniprotkb ids} 13 | 14 | \item{species}{(char) The species name. Check \code{?artmsMapUniprot2Entrez} 15 | to find out more about supported species.} 16 | 17 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 18 | } 19 | \value{ 20 | (data.frame) with two new columns: \code{Gene} and \code{Protein.name} 21 | } 22 | \description{ 23 | Annotate gene name and symbol based on uniprot ids. It will 24 | take the column from your data.frame specified by the \code{columnid} argument, 25 | search for the gene symbol, name, and entrez based on the species (\code{species} 26 | argument) and merge the information back to the input data.frame 27 | } 28 | \examples{ 29 | # This example adds annotations to the example evidence file included in 30 | # artMS, based on the column 'Proteins'. 31 | 32 | evidence_anno <- artmsAnnotationUniprot(x = artms_data_ph_evidence, 33 | columnid = 'Proteins', 34 | species = 'human') 35 | } 36 | \keyword{annotation,} 37 | \keyword{uniprot} 38 | -------------------------------------------------------------------------------- /man/artmsVolcanoPlot.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/plots.R 3 | \name{artmsVolcanoPlot} 4 | \alias{artmsVolcanoPlot} 5 | \title{Volcano plot (log2fc / pvalues)} 6 | \usage{ 7 | artmsVolcanoPlot( 8 | mss_results, 9 | output_name = "volcano_plot.pdf", 10 | lfc_upper = 1, 11 | lfc_lower = -1, 12 | whatPvalue = "adj.pvalue", 13 | FDR = 0.05, 14 | PDF = TRUE, 15 | decimal_threshold = 16, 16 | verbose = TRUE 17 | ) 18 | } 19 | \arguments{ 20 | \item{mss_results}{(data.frame or file) Selected MSstats results} 21 | 22 | \item{output_name}{(char) Name for the output file (don't forget the \code{.pdf} 23 | extension)} 24 | 25 | \item{lfc_upper}{(numeric) log2fc upper threshold (positive value)} 26 | 27 | \item{lfc_lower}{(numeric) log2fc lower threshold (negative value)} 28 | 29 | \item{whatPvalue}{(char) \code{pvalue} or \code{adj.pvalue} (default)} 30 | 31 | \item{FDR}{(numeric) False Discovery Rate threshold} 32 | 33 | \item{PDF}{(logical) Option to generate pdf format. Default: \code{T}} 34 | 35 | \item{decimal_threshold}{(numeric) Decimal threshold for the pvalue. 36 | Default: 16 (10^-16)} 37 | 38 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 39 | } 40 | \value{ 41 | (pdf) of a volcano plot 42 | } 43 | \description{ 44 | It generates a scatter-plot used to quickly identify changes 45 | } 46 | \examples{ 47 | artmsVolcanoPlot(mss_results = artms_data_ph_msstats_results, 48 | whatPvalue = "pvalue", 49 | PDF = FALSE) 50 | } 51 | \keyword{plot,} 52 | \keyword{volcano} 53 | -------------------------------------------------------------------------------- /man/artmsAnnotateSpecie.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/analysisQuantifications.R 3 | \name{artmsAnnotateSpecie} 4 | \alias{artmsAnnotateSpecie} 5 | \title{Adding a column with the species name} 6 | \usage{ 7 | artmsAnnotateSpecie(df, pathogen = "nopathogen", species) 8 | } 9 | \arguments{ 10 | \item{df}{(data.frame) with a \code{Protein} column (of uniprot ids)} 11 | 12 | \item{pathogen}{(char) Is there a pathogen in the dataset as well? 13 | if it does not, then use \code{pathogen = nopathogen} (default). Supported\code{tb} 14 | (Tuberculosis), 15 | \code{lpn} (Legionella)} 16 | 17 | \item{species}{(char) Host organism (supported for now: \code{human} or \code{mouse})} 18 | } 19 | \value{ 20 | (data.frame) The same data.frame but with an extra column 21 | specifying the species 22 | } 23 | \description{ 24 | Adding the species name to every protein. 25 | This makes more sense if there are more than one species in the dataset, 26 | which must be specified in the \code{pathogen} option. Influenza is a special 27 | case that it does not need to be specified, as far as the proteins were 28 | originally annotated as \code{INFLUENZAGENE_STRAIN} 29 | (strains covered \code{H1N1}, \code{H3N2}, \code{H5N1}), as for example, \code{NS1_H1N1} 30 | } 31 | \examples{ 32 | # Adding a new column with the main species of the data. Easy. 33 | # But the main functionality is to add both the host-species and a pathogen, 34 | # which is not illustrated in this example 35 | data_with_specie <- artmsAnnotateSpecie(df = artms_data_ph_msstats_results, 36 | species = "human") 37 | } 38 | \keyword{annotation,} 39 | \keyword{species} 40 | -------------------------------------------------------------------------------- /man/artmsLeaveOnlyUniprotEntryID.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/annotations.R 3 | \name{artmsLeaveOnlyUniprotEntryID} 4 | \alias{artmsLeaveOnlyUniprotEntryID} 5 | \title{Leave only the Entry ID from a typical full Uniprot IDs in a 6 | given column} 7 | \usage{ 8 | artmsLeaveOnlyUniprotEntryID(x, columnid) 9 | } 10 | \arguments{ 11 | \item{x}{(data.frame) that contains the \code{columnid}} 12 | 13 | \item{columnid}{(char) Column name with the full uniprot ids} 14 | } 15 | \value{ 16 | (data.frame) with only Entry IDs. 17 | } 18 | \description{ 19 | Downloading a Reference Uniprot fasta database includes several 20 | Uniprot IDs for every protein. If the regular expression available in 21 | Maxquant is not activated, the full id will be used in the Proteins, 22 | Lead Protein, and Leading Razor Protein columns. This script leaves only the 23 | Entry ID. 24 | 25 | For example, values in a Protein column like this: 26 | 27 | \verb{sp|P12345|Entry_name;sp|P54321|Entry_name2} 28 | 29 | will be replace by 30 | 31 | `P12345;P54321`` 32 | } 33 | \examples{ 34 | # Example of data frame with full uniprot ids and sequences 35 | p <- c("sp|A6NIE6|RN3P2_HUMAN;sp|Q9NYV6|RRN3_HUMAN", 36 | "sp|A7E2V4|ZSWM8_HUMAN", 37 | "sp|A5A6H4|ROA1_PANTR;sp|P09651|ROA1_HUMAN;sp|Q32P51|RA1L2_HUMAN", 38 | "sp|A0FGR8|ESYT2_HUMAN") 39 | s <- c("ALENDFFNSPPRK", "GWGSPGRPK", "SSGPYGGGGQYFAK", "VLVALASEELAK") 40 | evidence <- data.frame(Proteins = p, Sequences = s, stringsAsFactors = FALSE) 41 | 42 | # Replace the Proteins column with only Entry ids 43 | evidence <- artmsLeaveOnlyUniprotEntryID(x = evidence, columnid = "Proteins") 44 | } 45 | \keyword{annotation,} 46 | \keyword{ids} 47 | -------------------------------------------------------------------------------- /man/artmsEvidenceToSaintExpress.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/evidenceToSaintExpressFormat.R 3 | \name{artmsEvidenceToSaintExpress} 4 | \alias{artmsEvidenceToSaintExpress} 5 | \title{MaxQuant evidence file to SAINTexpress format} 6 | \usage{ 7 | artmsEvidenceToSaintExpress( 8 | evidence_file, 9 | keys_file, 10 | ref_proteome_file, 11 | quant_variable = c("msspc", "msint"), 12 | output_file, 13 | verbose = TRUE 14 | ) 15 | } 16 | \arguments{ 17 | \item{evidence_file}{(char) The evidence file path and name} 18 | 19 | \item{keys_file}{(char) Keys file with a SAINT column 20 | specifying test (\code{T}) and control (\code{C}) conditions} 21 | 22 | \item{ref_proteome_file}{(char) Reference proteome path file name in 23 | fasta format} 24 | 25 | \item{quant_variable}{(char) choose either 26 | \itemize{ 27 | \item \code{msspc} (spectral counts, default) or 28 | \item \code{msint} (MS Intensity) 29 | }} 30 | 31 | \item{output_file}{(char) Output file name (must have extension .txt)} 32 | 33 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 34 | } 35 | \value{ 36 | The 3 required files by SAINTexpress: 37 | \itemize{ 38 | \item \code{interactions.txt} 39 | \item \code{preys.txt} 40 | \item \code{baits.txt} 41 | } 42 | } 43 | \description{ 44 | Converts the MaxQuant evidence file to the 3 required files 45 | by SAINTexpress. One can choose to either use the \verb{spectral counts} 46 | (use \code{msspc}) or the \code{intensities} (use \code{msint}) for the analysis. 47 | } 48 | \examples{ 49 | # Testing that the files cannot be empty 50 | artmsEvidenceToSaintExpress(evidence_file = NULL, 51 | keys_file = NULL, ref_proteome_file = NULL) 52 | } 53 | \keyword{APMS} 54 | \keyword{SAINT,} 55 | \keyword{SAINTexpress,} 56 | -------------------------------------------------------------------------------- /man/artmsAvgIntensityRT.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/avg_intensity_RT.R 3 | \name{artmsAvgIntensityRT} 4 | \alias{artmsAvgIntensityRT} 5 | \title{Summarize average intensity and retention time per protein} 6 | \usage{ 7 | artmsAvgIntensityRT( 8 | evidence_file, 9 | protein_file = NULL, 10 | output_file = FALSE, 11 | verbose = TRUE 12 | ) 13 | } 14 | \arguments{ 15 | \item{evidence_file}{(char) The filepath to the MaxQuant searched data 16 | (evidence) file (txt tab delimited file).} 17 | 18 | \item{protein_file}{(char) The file path to a file or vector containing 19 | a list of proteins of interest.} 20 | 21 | \item{output_file}{(char) The file name for the results 22 | (must have the extension \code{.txt}). If empty, then the 23 | results will be returned as an R object.} 24 | 25 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 26 | } 27 | \value{ 28 | An R object with the results and a file with the results (if the 29 | output_file argument is provided). It contains averages of Intensity, 30 | Retention Time, Caliberated Retention Time 31 | } 32 | \description{ 33 | Input an evidence file from MaxQuant and a file 34 | containing a list of proteins of interest (optional). 35 | The function will summarize from the evidence file and report back the 36 | average intensity, average retention time, and the average caliberated 37 | retention time. If a list of proteins is provided, then only those proteins 38 | will be summarized and returned. 39 | } 40 | \examples{ 41 | ave_int <- artmsAvgIntensityRT(evidence_file = artms_data_ph_evidence) 42 | } 43 | \keyword{MaxQuant,} 44 | \keyword{caliberated} 45 | \keyword{evidence,} 46 | \keyword{intensity,} 47 | \keyword{retention} 48 | \keyword{summary,} 49 | \keyword{time,} 50 | -------------------------------------------------------------------------------- /man/artmsGeneratePhSiteExtended.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/analysisQuantifications.R 3 | \name{artmsGeneratePhSiteExtended} 4 | \alias{artmsGeneratePhSiteExtended} 5 | \title{Generate ph-site specific detailed file} 6 | \usage{ 7 | artmsGeneratePhSiteExtended( 8 | df, 9 | pathogen = "nopathogen", 10 | species, 11 | ptmType, 12 | output_name 13 | ) 14 | } 15 | \arguments{ 16 | \item{df}{(data.frame) of log2fc and imputed values} 17 | 18 | \item{pathogen}{(char) Is there a pathogen in the dataset as well? Available 19 | pathogens are \code{tb} (Tuberculosis), \code{lpn} (Legionella). If it is not, 20 | then use \code{nopathogen} (default).} 21 | 22 | \item{species}{(char) Main organism (supported for now: \code{human} or \code{mouse})} 23 | 24 | \item{ptmType}{(char) It must be a ptm-site quantification dataset. Either: 25 | yes: \code{ptmsites} (for site specific analysis), or 26 | \code{ptmph} (Jeff's script output evidence file).} 27 | 28 | \item{output_name}{(char) A output file name (extension \code{.txt} required)} 29 | } 30 | \value{ 31 | (data.frame) extended version of the ph-site 32 | } 33 | \description{ 34 | Generate extended detailed ph-site file, where every line is a 35 | ph site instead of a peptide. Therefore, if one peptide has multiple ph sites 36 | it will be breaking down in each of the sites. This file will help generate 37 | input files for tools as \href{http://phosfate.com/}{Phosfate} or 38 | \href{https://github.com/jdrudolph/photon}{PHOTON} 39 | } 40 | \examples{ 41 | \dontrun{ 42 | artmsGeneratePhSiteExtended(df = dfobject, 43 | species = "mouse", 44 | ptmType = "ptmsites", 45 | output_name = log2fc_file) 46 | } 47 | } 48 | \keyword{external,} 49 | \keyword{phosfate} 50 | \keyword{tools,} 51 | -------------------------------------------------------------------------------- /man/artmsIsSpeciesSupported.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/annotations.R 3 | \name{artmsIsSpeciesSupported} 4 | \alias{artmsIsSpeciesSupported} 5 | \title{Check if a species is supported and available} 6 | \usage{ 7 | artmsIsSpeciesSupported(species, verbose = TRUE) 8 | } 9 | \arguments{ 10 | \item{species}{(char) The species name. Species currently supported 11 | as part of artMS: 12 | \itemize{ 13 | \item HUMAN 14 | \item MOUSE 15 | } 16 | 17 | And the following species can be used as well, but the user needs to 18 | install the corresponding org.db package: 19 | \itemize{ 20 | \item ANOPHELES (\code{install.packages(org.Ag.eg.db)}) 21 | \item BOVINE (\code{install.packages(org.Bt.eg.db)}) 22 | \item WORM (\code{install.packages(org.Ce.eg.db)}) 23 | \item CANINE (\code{install.packages(org.Cf.eg.db)}) 24 | \item FLY (\code{install.packages(org.Dm.eg.db)}) 25 | \item ZEBRAFISH (\code{install.packages(org.Dr.eg.db)}) 26 | \item CHICKEN (\code{install.packages(org.Gg.eg.db)}) 27 | \item RHESUS (\code{install.packages(org.Mmu.eg.db)}) 28 | \item CHIMP (\code{install.packages(org.Pt.eg.db)}) 29 | \item RAT (\code{install.packages(org.Rn.eg.db)}) 30 | \item YEAST (\code{install.packages(org.Sc.sgd.db)}) 31 | \item PIG (\code{install.packages(org.Ss.eg.db)}) 32 | \item XENOPUS (\code{install.packages(org.Xl.eg.db)}) 33 | }} 34 | 35 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 36 | } 37 | \value{ 38 | (string) Name of the package for the given species 39 | } 40 | \description{ 41 | Given a species name, it checkes whether is supported, and 42 | if supported, check whether the annotation package is installed. 43 | } 44 | \examples{ 45 | # Should return TRUE 46 | artmsIsSpeciesSupported(species = "HUMAN") 47 | artmsIsSpeciesSupported(species = "CHIMP") 48 | } 49 | \keyword{annotation,} 50 | \keyword{species} 51 | -------------------------------------------------------------------------------- /man/artmsEnrichLog2fc.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/enrichments.R 3 | \name{artmsEnrichLog2fc} 4 | \alias{artmsEnrichLog2fc} 5 | \title{Enrichment of changes in protein abundance or PTMs} 6 | \usage{ 7 | artmsEnrichLog2fc( 8 | dataset, 9 | species, 10 | background, 11 | heatmaps = FALSE, 12 | output_name = "enrichment.txt", 13 | verbose = TRUE 14 | ) 15 | } 16 | \arguments{ 17 | \item{dataset}{(data.frame) with a \code{Gene} and \verb{Comparison or Label} (with 18 | the name of the comparisons specified in the contrast file) columns} 19 | 20 | \item{species}{(char) Specie, only supported "human" or "mouse"} 21 | 22 | \item{background}{(vector) Background genes for the enrichment analysis.} 23 | 24 | \item{heatmaps}{(logical) if \code{TRUE} generates heatmaps (pdf), 25 | \code{FALSE} (default) otherwise.} 26 | 27 | \item{output_name}{(char) Name of the annotation files, which will be used 28 | as well for the heatmaps (if \code{heatmaps} is selected) 29 | Default \code{output_name = "enrichment.txt"}} 30 | 31 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 32 | } 33 | \value{ 34 | (data.frame) Results from the enrichment analysis using Gprofiler 35 | and heatmaps (if selected) 36 | } 37 | \description{ 38 | Enrichment analysis of the selected proteins 39 | } 40 | \examples{ 41 | \dontrun{ 42 | # The data must be annotated (Protein and Gene columns) 43 | data_annotated <- artmsAnnotationUniprot( 44 | x = artms_data_ph_msstats_results, 45 | columnid = "Protein", 46 | species = "human") 47 | # And then the enrichment 48 | enrich_set <- artmsEnrichLog2fc( 49 | dataset = data_annotated, 50 | species = "human", 51 | background = unique(data_annotated$Gene)) 52 | } 53 | } 54 | \keyword{enrichment} 55 | -------------------------------------------------------------------------------- /man/artmsResultsWide.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/MSstats_functions.R 3 | \name{artmsResultsWide} 4 | \alias{artmsResultsWide} 5 | \title{Reshape the MSstats results file from long to wide format} 6 | \usage{ 7 | artmsResultsWide( 8 | results_msstats, 9 | output_file = NULL, 10 | select_pvalues = c("adjpvalue", "pvalue"), 11 | species, 12 | verbose = TRUE 13 | ) 14 | } 15 | \arguments{ 16 | \item{results_msstats}{(char) Input file name and location 17 | (MSstats \code{results.txt} file)} 18 | 19 | \item{output_file}{(char) Output file name and location 20 | (e.g. \code{results-wide.txt}). If \code{NULL} (default) returns an 21 | R object (data.frame)} 22 | 23 | \item{select_pvalues}{(char) Either 24 | \itemize{ 25 | \item \code{pvalue} or 26 | \item \code{adjpvalue} (default) 27 | }} 28 | 29 | \item{species}{(char) Specie name for annotation purposes. 30 | Check \code{?artmsMapUniprot2Entrez} to find out more about the 31 | supported species (e.g \code{species = "human"})} 32 | 33 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 34 | } 35 | \value{ 36 | (output file tab delimited) reshaped file with unique protein ids 37 | and as many columns log2fc and adj.pvalues as comparisons available 38 | } 39 | \description{ 40 | Converts the normal MSStats results.txt file into "wide" format 41 | where each row represents a unique protein's results, and each column 42 | represents the comparison made by MSStats. The fold change and p-value 43 | of each comparison will be its own column. 44 | } 45 | \examples{ 46 | ph_results_wide <- artmsResultsWide( 47 | results_msstats = artms_data_ph_msstats_results, 48 | output_file = NULL, 49 | species = "human") 50 | } 51 | \keyword{msstats,} 52 | \keyword{reshape} 53 | \keyword{results,} 54 | \keyword{wide,} 55 | -------------------------------------------------------------------------------- /docs/bootstrap-toc.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Bootstrap Table of Contents v0.4.1 (http://afeld.github.io/bootstrap-toc/) 3 | * Copyright 2015 Aidan Feldman 4 | * Licensed under MIT (https://github.com/afeld/bootstrap-toc/blob/gh-pages/LICENSE.md) */ 5 | 6 | /* modified from https://github.com/twbs/bootstrap/blob/94b4076dd2efba9af71f0b18d4ee4b163aa9e0dd/docs/assets/css/src/docs.css#L548-L601 */ 7 | 8 | /* All levels of nav */ 9 | nav[data-toggle='toc'] .nav > li > a { 10 | display: block; 11 | padding: 4px 20px; 12 | font-size: 13px; 13 | font-weight: 500; 14 | color: #767676; 15 | } 16 | nav[data-toggle='toc'] .nav > li > a:hover, 17 | nav[data-toggle='toc'] .nav > li > a:focus { 18 | padding-left: 19px; 19 | color: #563d7c; 20 | text-decoration: none; 21 | background-color: transparent; 22 | border-left: 1px solid #563d7c; 23 | } 24 | nav[data-toggle='toc'] .nav > .active > a, 25 | nav[data-toggle='toc'] .nav > .active:hover > a, 26 | nav[data-toggle='toc'] .nav > .active:focus > a { 27 | padding-left: 18px; 28 | font-weight: bold; 29 | color: #563d7c; 30 | background-color: transparent; 31 | border-left: 2px solid #563d7c; 32 | } 33 | 34 | /* Nav: second level (shown on .active) */ 35 | nav[data-toggle='toc'] .nav .nav { 36 | display: none; /* Hide by default, but at >768px, show it */ 37 | padding-bottom: 10px; 38 | } 39 | nav[data-toggle='toc'] .nav .nav > li > a { 40 | padding-top: 1px; 41 | padding-bottom: 1px; 42 | padding-left: 30px; 43 | font-size: 12px; 44 | font-weight: normal; 45 | } 46 | nav[data-toggle='toc'] .nav .nav > li > a:hover, 47 | nav[data-toggle='toc'] .nav .nav > li > a:focus { 48 | padding-left: 29px; 49 | } 50 | nav[data-toggle='toc'] .nav .nav > .active > a, 51 | nav[data-toggle='toc'] .nav .nav > .active:hover > a, 52 | nav[data-toggle='toc'] .nav .nav > .active:focus > a { 53 | padding-left: 28px; 54 | font-weight: 500; 55 | } 56 | 57 | /* from https://github.com/twbs/bootstrap/blob/e38f066d8c203c3e032da0ff23cd2d6098ee2dd6/docs/assets/css/src/docs.css#L631-L634 */ 58 | nav[data-toggle='toc'] .nav > .active > ul { 59 | display: block; 60 | } 61 | -------------------------------------------------------------------------------- /man/artmsConvertMetabolomics.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/metabolomics.R 3 | \name{artmsConvertMetabolomics} 4 | \alias{artmsConvertMetabolomics} 5 | \title{Convert Markview Metabolomics file (alignment table) into 6 | a artMS compatible format} 7 | \usage{ 8 | artmsConvertMetabolomics(input_file, out_file, id_file = NULL, verbose = TRUE) 9 | } 10 | \arguments{ 11 | \item{input_file}{(char) Markview input file} 12 | 13 | \item{out_file}{(char) Output file name} 14 | 15 | \item{id_file}{(char) KEGG database} 16 | 17 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 18 | } 19 | \value{ 20 | (text file) Outputs the converted output name 21 | } 22 | \description{ 23 | \code{artMS} enables the relative quantification of untargeted 24 | polar metabolites using the alignment table generated by Markview. 25 | MarkerView is an ABSciex software that supports the files 26 | generated by Analyst software (\code{.wiff}) used to run our specific mass 27 | spectrometer (ABSciex Triple TOF 5600+). 28 | It also supports \code{.t2d} files generated by the 29 | Applied Biosystems 4700/4800 MALDI-TOF. 30 | MarkerView software is used to align mass spectrometry data from several 31 | samples for comparison. Using the import feature in the software, \code{.wiff} 32 | files (also \code{.t2d} MALDI-TOF files and tab-delimited \code{.txt} mass spectra data 33 | in mass-intensity format) are loaded for retention time alignment. 34 | Once the data files are selected, a series of windows will appear wherein 35 | peak finding, alignment, and filtering options can be entered and selected. 36 | These options include minimum spectral peak width, minimum retention time 37 | peak width, retention time and mass tolerance, and the ability to filter 38 | out peaks that do not appear in more than a user selected number of samples. 39 | 40 | `artmsConvertMetabolomics`` processes the markview file to enable 41 | QC analysis and relative quantification using the artMS functions 42 | } 43 | \examples{ 44 | # Testing that the arguments cannot be null 45 | artmsConvertMetabolomics(input_file = NULL, 46 | out_file = NULL) 47 | } 48 | \keyword{convert} 49 | \keyword{metabolomics,} 50 | -------------------------------------------------------------------------------- /docs/docsearch.js: -------------------------------------------------------------------------------- 1 | $(function() { 2 | 3 | // register a handler to move the focus to the search bar 4 | // upon pressing shift + "/" (i.e. "?") 5 | $(document).on('keydown', function(e) { 6 | if (e.shiftKey && e.keyCode == 191) { 7 | e.preventDefault(); 8 | $("#search-input").focus(); 9 | } 10 | }); 11 | 12 | $(document).ready(function() { 13 | // do keyword highlighting 14 | /* modified from https://jsfiddle.net/julmot/bL6bb5oo/ */ 15 | var mark = function() { 16 | 17 | var referrer = document.URL ; 18 | var paramKey = "q" ; 19 | 20 | if (referrer.indexOf("?") !== -1) { 21 | var qs = referrer.substr(referrer.indexOf('?') + 1); 22 | var qs_noanchor = qs.split('#')[0]; 23 | var qsa = qs_noanchor.split('&'); 24 | var keyword = ""; 25 | 26 | for (var i = 0; i < qsa.length; i++) { 27 | var currentParam = qsa[i].split('='); 28 | 29 | if (currentParam.length !== 2) { 30 | continue; 31 | } 32 | 33 | if (currentParam[0] == paramKey) { 34 | keyword = decodeURIComponent(currentParam[1].replace(/\+/g, "%20")); 35 | } 36 | } 37 | 38 | if (keyword !== "") { 39 | $(".contents").unmark({ 40 | done: function() { 41 | $(".contents").mark(keyword); 42 | } 43 | }); 44 | } 45 | } 46 | }; 47 | 48 | mark(); 49 | }); 50 | }); 51 | 52 | /* Search term highlighting ------------------------------*/ 53 | 54 | function matchedWords(hit) { 55 | var words = []; 56 | 57 | var hierarchy = hit._highlightResult.hierarchy; 58 | // loop to fetch from lvl0, lvl1, etc. 59 | for (var idx in hierarchy) { 60 | words = words.concat(hierarchy[idx].matchedWords); 61 | } 62 | 63 | var content = hit._highlightResult.content; 64 | if (content) { 65 | words = words.concat(content.matchedWords); 66 | } 67 | 68 | // return unique words 69 | var words_uniq = [...new Set(words)]; 70 | return words_uniq; 71 | } 72 | 73 | function updateHitURL(hit) { 74 | 75 | var words = matchedWords(hit); 76 | var url = ""; 77 | 78 | if (hit.anchor) { 79 | url = hit.url_without_anchor + '?q=' + escape(words.join(" ")) + '#' + hit.anchor; 80 | } else { 81 | url = hit.url + '?q=' + escape(words.join(" ")); 82 | } 83 | 84 | return url; 85 | } 86 | -------------------------------------------------------------------------------- /man/artms_data_ph_config.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{artms_data_ph_config} 5 | \alias{artms_data_ph_config} 6 | \title{artMS configuration for the available PH dataset} 7 | \format{ 8 | The configuration (\code{yaml}) file contains the following sections: 9 | \describe{ 10 | \item{files}{ 11 | \itemize{ 12 | \item \code{evidence} : Empty. To test an example, run \code{artms_data_ph_config$files$evidence <- artms_data_ph_evidence} 13 | \item \code{keys} : Empty To test an example datasets run \code{artms_data_ph_config$files$keys <- artms_data_ph_keys} 14 | \item \code{contrasts} : Empty. To test the example datasets, run \code{artms_data_ph_config$files$contrasts <- artms_data_ph_contrast} 15 | \item \code{summary} : 16 | \item \code{output} : "results.txt" 17 | } 18 | } 19 | 20 | \item{qc}{ 21 | \itemize{ 22 | \item basic: 0 23 | \item extended: 0 24 | \item extendedSummary: 0 25 | } 26 | } 27 | 28 | \item{data}{ 29 | \itemize{ 30 | \item enabled : 1 31 | \item silac: 32 | \itemize{ 33 | \item enabled : 0 34 | } 35 | \item filters: 36 | \itemize{ 37 | \item enabled : 1 38 | } 39 | \item contaminants : 1 40 | \item protein_groups : remove 41 | \item modifications : PH 42 | \item sample_plots : 1 43 | } 44 | } 45 | 46 | \item{msstats}{ 47 | \itemize{ 48 | \item enabled : 1 49 | \item msstats_input : # blank if not previous msstats input file is available 50 | \item profilePlots : none # before, after, before-after, none 51 | \item normalization_method : equalizeMedians 52 | \item normalization_reference : #should be a value in the Protein column 53 | \item summaryMethod : TMP 54 | \item censoredInt : NA 55 | \item cutoffCensored : minFeature 56 | \item MBimpute : 1 57 | \item feature_subset: all 58 | } 59 | } 60 | 61 | \item{output_extras}{ 62 | \itemize{ 63 | \item output_extras : 64 | \itemize{ 65 | \item enabled : 1 66 | } 67 | \item annotate : 68 | \itemize{ 69 | \item enabled: 1 70 | } 71 | \item species : HUMAN 72 | \item plots: 73 | \itemize{ 74 | \item volcano: 1 75 | \item heatmap: 1 76 | \item LFC : -1 1 77 | \item FDR : 0.05 78 | \item heatmap_cluster_cols : 0 79 | \item heatmap_display : log2FC} 80 | } 81 | } 82 | } 83 | } 84 | \usage{ 85 | artms_data_ph_config 86 | } 87 | \description{ 88 | The configuration file with default options to run the 89 | available PH dataset with `artmsQuantification()`` 90 | } 91 | \keyword{datasets} 92 | -------------------------------------------------------------------------------- /man/artmsMsstatsSummary.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/msstat_summary.R 3 | \name{artmsMsstatsSummary} 4 | \alias{artmsMsstatsSummary} 5 | \title{Summarize the MSStats results and data quantification} 6 | \usage{ 7 | artmsMsstatsSummary( 8 | evidence_file, 9 | prot_group_file, 10 | keys_file, 11 | results_file, 12 | return_df = FALSE, 13 | verbose = TRUE 14 | ) 15 | } 16 | \arguments{ 17 | \item{evidence_file}{(char or data.frame) The filepath to the MaxQuant 18 | searched data (evidence) file (txt tab delimited file). 19 | Only works for the newer versions of the evidence file.} 20 | 21 | \item{prot_group_file}{(char) The filepath to the MaxQuant 22 | \code{proteinGroups.txt} file (txt tab delimited file) or data.frame} 23 | 24 | \item{keys_file}{(char) The filepath to the keys file used with MSStats 25 | (txt tab delimited file).} 26 | 27 | \item{results_file}{(char) The filepath to the MSStats results file in t 28 | he default long format (txt tab delimited file or data.frame).} 29 | 30 | \item{return_df}{(data.frame) Whether or not to return the results 31 | to the R environment upon completion. This is useful if this is being 32 | used in an R pipeline and you want to feed the results directly into the 33 | next stage of analysis via an R environment/terminal. 34 | Regardless, the results will be written to file. Default = FALSE} 35 | 36 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 37 | } 38 | \value{ 39 | (data.frame or txt file) with the summary 40 | } 41 | \description{ 42 | Converts the MSStats results file to wide format 43 | (unique Protein ID and columns are the comparisons), as well as adds 44 | BioReplicate information about 45 | \itemize{ 46 | \item the Number of Unique Peptides, 47 | \item Spectral Counts 48 | \item Intensities 49 | for each protein. 50 | In cases where there are multiple values for a Protein-BioReplicate 51 | pair due to minute changes in sequence, the maximum value is taken for the 52 | pair. Any pairs without a value are assigned a value of NA. 53 | } 54 | } 55 | \examples{ 56 | # Testing warning if files are not submitted 57 | test <- artmsMsstatsSummary(evidence_file = NULL, 58 | prot_group_file = NULL, 59 | keys_file = NULL, 60 | results_file = NULL) 61 | } 62 | \keyword{MSStats,} 63 | \keyword{MaxQuant,} 64 | \keyword{evidence,} 65 | \keyword{summary} 66 | -------------------------------------------------------------------------------- /man/artmsPlotHeatmapQuant.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/plots.R 3 | \name{artmsPlotHeatmapQuant} 4 | \alias{artmsPlotHeatmapQuant} 5 | \title{Outputs a heatmap of the MSStats results created using the log2fold 6 | changes} 7 | \usage{ 8 | artmsPlotHeatmapQuant( 9 | input_file, 10 | output_file = "quantifications_heatmap.pdf", 11 | species, 12 | labels = "*", 13 | cluster_cols = FALSE, 14 | display = "log2FC", 15 | lfc_lower = -2, 16 | lfc_upper = 2, 17 | whatPvalue = "adj.pvalue", 18 | FDR = 0.05, 19 | verbose = TRUE 20 | ) 21 | } 22 | \arguments{ 23 | \item{input_file}{(char) MSstats \code{results.txt} file and location (or 24 | data.frame of resuts)} 25 | 26 | \item{output_file}{(char) Output file name (pdf format) and location. 27 | Default:"quantifications_heatmap.pdf"} 28 | 29 | \item{species}{(char). Specie name to be able to add the Gene name. To find 30 | out more about the supported species check \code{?artmsMapUniprot2Entrez}} 31 | 32 | \item{labels}{(vector) of uniprot ids if only specific labes would like to 33 | be plotted. Default: all labels} 34 | 35 | \item{cluster_cols}{(boolean) \code{True} or \code{False} to cluster columns. 36 | Default: FALSE} 37 | 38 | \item{display}{Metric to be displayed. Options: 39 | \itemize{ 40 | \item \code{log2fc} (default) 41 | \item \code{adj.pvalue} 42 | \item \code{pvalue} 43 | }} 44 | 45 | \item{lfc_lower}{(int) Lower limit for the log2fc. Default: -2} 46 | 47 | \item{lfc_upper}{(int) Upper limit for the log2fc. Default: +2} 48 | 49 | \item{whatPvalue}{(char) \code{pvalue} or \code{adj.pvalue} (default)} 50 | 51 | \item{FDR}{(int) Upper limit false discovery rate (or pvalue). Default: 0.05} 52 | 53 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 54 | } 55 | \value{ 56 | (pdf or ggplot2 object) heatmap of the MSStats results using the 57 | selected metric 58 | } 59 | \description{ 60 | Heatmap of the Relative Quantifications (MSStats results) 61 | } 62 | \examples{ 63 | # Unfortunately, the example does not contain any significant hits 64 | # Use for illustration purposes 65 | artmsPlotHeatmapQuant(input_file = artms_data_ph_msstats_results, 66 | species = "human", 67 | output_file = NULL, 68 | whatPvalue = "pvalue", 69 | lfc_lower = -1, 70 | lfc_upper = 1) 71 | } 72 | \keyword{heatmap,} 73 | \keyword{log2fc} 74 | -------------------------------------------------------------------------------- /inst/extdata/artms_config.yaml: -------------------------------------------------------------------------------- 1 | files: 2 | evidence: evidence.txt 3 | keys: keys.txt 4 | contrasts: contrast.txt 5 | summary: summary.txt # Optional 6 | output: results_folder_name/results.txt # The folder must exist 7 | qc: 8 | basic: 1 # 1 = yes; 0 = no 9 | extended: 1 # 1 = yes; 0 = no 10 | extendedSummary: 0 # 1 = yes; 0 = no; Requires the summary file 11 | data: 12 | enabled: 1 # 1 = yes; 0 = no 13 | silac: 14 | enabled: 0 # 1 for SILAC experiments 15 | filters: 16 | enabled: 1 17 | contaminants: 1 18 | protein_groups: remove #remove, keep 19 | modifications: AB # PH, UB, AB, APMS 20 | sample_plots: 1 # correlation plots 21 | msstats: # check ?MSstats::dataProcess() to find out more 22 | enabled: 1 # 1: activate this msstats section. 0: deactivate 23 | msstats_input: # provide a msstats file if available ("-mss.txt"), otherwise, leave it blank 24 | profilePlots: none # Options: before, after, before-after (recommended, but time consuming), none 25 | normalization_method: equalizeMedians # options: equalizeMedians, quantile, 0 (no normalization), globalStandards (if chosen, include a reference protein(s)), 26 | normalization_reference: # if globalStandards is chosen, then an UNIPROT ID must be provided (or several uniprot ids, comma separated) 27 | summaryMethod: TMP # "TMP"(default) means Tukey's median polish, which is robust estimation method. "linear" uses linear mixed model. "logOfSum" conducts log2 (sum of intensities) per run. 28 | MBimpute: 1 29 | censoredInt: NA 30 | feature_subset: all 31 | n_top_feature: 3 32 | logTrans: 2 33 | remove_uninformative_feature_outlier: FALSE 34 | min_feature_count: 2 35 | equalFeatureVar: TRUE 36 | remove50missing: FALSE 37 | fix_missing: 38 | maxQuantileforCensored: 0.999 39 | use_log_file: FALSE 40 | append: FALSE 41 | log_file_path: 42 | output_extras: 43 | enabled: 1 # if 0, it wont do anything in this section 44 | annotate: 45 | enabled: 1 # 1|0 whether to annotate the proteins in the results or not 46 | species: HUMAN # Supported species: HUMAN, MOUSE, ANOPHELES, ARABIDOPSIS, BOVINE, WORM, CANINE, FLY, ZEBRAFISH, ECOLI_STRAIN_K12, ECOLI_STRAIN_SAKAI, CHICKEN, RHESUS, MALARIA, CHIMP, RAT, YEAST, PIG, XENOPUS 47 | plots: 48 | volcano: 1 49 | heatmap: 1 50 | LFC: -0.58 0.58 # Range of minimal log2fc. Default log2fc: 0.58 (a fold change of 1.5) 51 | FDR: 0.05 # adjusted p-value, false discovery rate 52 | heatmap_cluster_cols: 0 53 | heatmap_display: log2FC # log2FC or pvalue 54 | -------------------------------------------------------------------------------- /DESCRIPTION: -------------------------------------------------------------------------------- 1 | Package: artMS 2 | Type: Package 3 | Title: Analytical R tools for Mass Spectrometry 4 | Version: 1.10.3 5 | Date: 2021-07-14 6 | Authors@R: c(person("David", "Jimenez-Morales", role = c("aut","cre"), 7 | email = "biodavidjm@gmail.com", 8 | comment = c(ORCID = "0000-0003-4356-6461")), 9 | person("Alexandre", "Rosa Campos", role = c("aut","ctb"), 10 | comment = c(ORCID = "0000-0003-3988-7764")), 11 | person("John", "Von Dollen", role = c("aut")), 12 | person("Nevan", "Krogan", role = c("aut"), 13 | comment = c(ORCID = "0000-0003-4902-337X")), 14 | person("Danielle", "Swaney", role = c("aut", "ctb"), 15 | comment = c(ORCID = "0000-0001-6119-6084"))) 16 | Description: artMS provides a set of tools for the analysis of proteomics 17 | label-free datasets. It takes as input the MaxQuant search result 18 | output (evidence.txt file) and performs quality control, 19 | relative quantification using MSstats, downstream analysis 20 | and integration. artMS also provides a set of functions to re-format 21 | and make it compatible with other analytical tools, including, SAINTq, 22 | SAINTexpress, Phosfate, and PHOTON. Check 23 | [http://artms.org](http://artms.org) for details. 24 | License: GPL (>= 3) + file LICENSE 25 | URL: http://artms.org 26 | BugReports: https://github.com/biodavidjm/artMS/issues 27 | Depends: R (>= 4.1.0) 28 | Imports: 29 | AnnotationDbi, 30 | bit64, 31 | circlize, 32 | cluster, 33 | corrplot, 34 | data.table, 35 | dplyr, 36 | getopt, 37 | ggdendro, 38 | ggplot2, 39 | gplots, 40 | ggrepel, 41 | graphics, 42 | grDevices, 43 | grid, 44 | limma, 45 | MSstats, 46 | openxlsx, 47 | org.Hs.eg.db, 48 | pheatmap, 49 | plotly, 50 | plyr, 51 | RColorBrewer, 52 | scales, 53 | seqinr, 54 | stats, 55 | stringr, 56 | tidyr, 57 | UpSetR, 58 | utils, 59 | VennDiagram, 60 | yaml 61 | Suggests: 62 | BiocStyle, 63 | ComplexHeatmap, 64 | factoextra, 65 | FactoMineR, 66 | gProfileR, 67 | knitr, 68 | PerformanceAnalytics, 69 | org.Mm.eg.db, 70 | rmarkdown, 71 | testthat 72 | Encoding: UTF-8 73 | LazyLoad: yes 74 | LazyData: true 75 | biocViews: Proteomics, 76 | DifferentialExpression, 77 | BiomedicalInformatics, 78 | SystemsBiology, 79 | MassSpectrometry, 80 | Annotation, 81 | QualityControl, 82 | GeneSetEnrichment, 83 | Clustering, 84 | Normalization, 85 | ImmunoOncology, 86 | MultipleComparison 87 | NeedsCompilation: no 88 | VignetteBuilder: knitr 89 | RoxygenNote: 7.1.1 90 | Roxygen: list(markdown = TRUE) 91 | -------------------------------------------------------------------------------- /man/artmsEvidenceToSAINTq.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/evidenceToSAINTqFormat.R 3 | \name{artmsEvidenceToSAINTq} 4 | \alias{artmsEvidenceToSAINTq} 5 | \title{MaxQuant evidence file to SAINTq format} 6 | \usage{ 7 | artmsEvidenceToSAINTq( 8 | evidence_file, 9 | keys_file, 10 | output_dir = "artms_saintq", 11 | sc_option = c("all", "msspc"), 12 | fractions = FALSE, 13 | quant_variable = c("msint", "msspc"), 14 | verbose = TRUE 15 | ) 16 | } 17 | \arguments{ 18 | \item{evidence_file}{(char or data.frame) The evidence file path and name, 19 | or data.frame} 20 | 21 | \item{keys_file}{(char) Keys file with a SAINT column specifying 22 | test (\code{T}) and control (\code{C}) conditions} 23 | 24 | \item{output_dir}{(char) New directory to create and save files. 25 | Default is current directory (recommended to provide a new folder name).} 26 | 27 | \item{sc_option}{(char). Filter peptides with spectral counts only. 28 | Two options: 29 | \itemize{ 30 | \item \code{msspc}: use only peptides with spectral_counts 31 | \item \code{all} (default): all peptides detected (including the one resulting from 32 | the MaxQuant 'Match between run' algorithm) 33 | }} 34 | 35 | \item{fractions}{(logical) \code{TRUE} for 2D proteomics (fractions). 36 | Default: \code{FALSE}} 37 | 38 | \item{quant_variable}{(char) Select the quantitative variable. 39 | Two options available: 40 | \itemize{ 41 | \item \code{msint}: MS Intensity (default) 42 | \item \code{msspc}: MS.MS.count (Spectral Counts) 43 | }} 44 | 45 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 46 | } 47 | \value{ 48 | The input files requires to run SAINTq 49 | } 50 | \description{ 51 | Converts the MaxQuant evidence file to the required files 52 | by SAINTq. The user can choose to use either peptides with \verb{spectral counts} 53 | (use \code{msspc}) or the all the peptides (use \code{all}) for the analysis. 54 | The quantitative can be also chosen (either MS Intensity or Spectral Counts) 55 | } 56 | \details{ 57 | After running the script, the new specified folder should contain 58 | the folling files: 59 | \itemize{ 60 | \item saintq-config-peptides 61 | \item saintq-config-proteins 62 | \item saintq_input_peptides.txt 63 | \item saintq_input_proteins.txt 64 | } 65 | 66 | Then \code{cd} into the new folder and run either of the following two options 67 | (assuming that \code{saintq} is installed in your linux/unix/mac os x system): 68 | 69 | \verb{> saintq config-saintq-peptides} 70 | 71 | or 72 | 73 | \verb{> saintq config-saintq-proteins} 74 | } 75 | \examples{ 76 | # Testing that the files cannot be empty 77 | artmsEvidenceToSAINTq (evidence_file = NULL, 78 | keys_file = NULL, 79 | output_dir = NULL) 80 | } 81 | \keyword{APMS} 82 | \keyword{SAINT,} 83 | \keyword{SAINTq,} 84 | -------------------------------------------------------------------------------- /man/artmsQuantification.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/main.R 3 | \name{artmsQuantification} 4 | \alias{artmsQuantification} 5 | \title{Relative quantification using MSstats} 6 | \usage{ 7 | artmsQuantification( 8 | yaml_config_file, 9 | data_object = FALSE, 10 | printPDF = TRUE, 11 | printTables = TRUE, 12 | display_msstats = FALSE, 13 | return_results_object = FALSE, 14 | verbose = TRUE 15 | ) 16 | } 17 | \arguments{ 18 | \item{yaml_config_file}{(char, required) The yaml file name and location} 19 | 20 | \item{data_object}{(logical) flag to indicate whether the configuration file 21 | is a string to a file that should be opened or config object (yaml). 22 | Default is \code{FALSE}. Choose \code{TRUE} if \code{yaml_config_file} is a yaml object} 23 | 24 | \item{printPDF}{(logical) if \code{TRUE} (default), prints out pdf} 25 | 26 | \item{printTables}{(logical) \code{TRUE} (default) print results tables} 27 | 28 | \item{display_msstats}{(logical) if \code{TRUE}, prints MSstats outputs (default is \code{FALSE})} 29 | 30 | \item{return_results_object}{(logical) Default is \code{FALSE}. 31 | If \code{TRUE}, it returns a list of data frames with MSstats results, including: 32 | \itemize{ 33 | \item \code{comparisonResult}: comparison results 34 | \item \code{ModelQC} 35 | \item \code{FittedModel}: fit model details 36 | \item \code{power}: power calculations 37 | \item \code{sample_size}: sample size estimations 38 | }} 39 | 40 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 41 | } 42 | \value{ 43 | The relative quantification of the conditions and comparisons 44 | specified in the keys/contrast file resulting from running MSstats, in 45 | addition to quality control plots (if selected) 46 | } 47 | \description{ 48 | Relative quantification using MSstats including: 49 | \itemize{ 50 | \item plots 51 | \item quantifications (log2fc, pvalues, etc) 52 | \item normalized abundance values 53 | } 54 | } 55 | \examples{ 56 | # Recommended 57 | # artmsQuantification(yaml_config_file = "your-config-file.yaml") 58 | 59 | # Example to test this function using the example dataset available in artMS 60 | # Step 1: Add evidence, keys, and contrast to configuration object 61 | artms_data_ph_config$files$evidence <- artms_data_ph_evidence 62 | artms_data_ph_config$files$keys <- artms_data_ph_keys 63 | artms_data_ph_config$files$contrasts <- artms_data_ph_contrast 64 | 65 | # Step 2: Run the quantification step 66 | quant_results <- artmsQuantification(yaml_config_file = artms_data_ph_config, 67 | data_object = TRUE, 68 | display_msstats = FALSE, 69 | printPDF = FALSE, 70 | printTables = FALSE) 71 | # Check the list of data frames "quant_results". Nothing should be printed out. 72 | } 73 | \keyword{driver,} 74 | \keyword{function} 75 | \keyword{main,} 76 | -------------------------------------------------------------------------------- /man/artmsQualityControlMetabolomics.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/qualityControlMetabolomics.R 3 | \name{artmsQualityControlMetabolomics} 4 | \alias{artmsQualityControlMetabolomics} 5 | \title{Quality Control analysis of the evidence-like metabolomics dataset} 6 | \usage{ 7 | artmsQualityControlMetabolomics( 8 | evidence_file, 9 | keys_file, 10 | met_exp = c("MV"), 11 | output_name = "qcPlots_metab", 12 | plotINTDIST = FALSE, 13 | plotCORMAT = TRUE, 14 | plotINTMISC = TRUE, 15 | printPDF = TRUE, 16 | verbose = TRUE 17 | ) 18 | } 19 | \arguments{ 20 | \item{evidence_file}{(char or data.frame) The evidence file path and name, or 21 | data.frame} 22 | 23 | \item{keys_file}{(char or data.frame) The keys file path and name or 24 | data.frame} 25 | 26 | \item{met_exp}{(char) Metabolomics experiment. Only one option available 27 | (so far): 28 | \itemize{ 29 | \item \code{MV}: Markview output 30 | }} 31 | 32 | \item{output_name}{(char) prefix output name (no extension). 33 | Default: "qcPlots_metab"} 34 | 35 | \item{plotINTDIST}{if \code{TRUE} (default) plots both \emph{Box-dot plot} 36 | and \emph{Jitter plot} of biological replicates based on MS (raw) 37 | intensity values.} 38 | 39 | \item{plotCORMAT}{if \code{TRUE} (default) generates up to 3 pdf files for 40 | technical replicates, biological replicates, and conditions. Each pdf file 41 | contains: 42 | \itemize{ 43 | \item \emph{Correlation matrix} for all the biological replicates using 44 | MS Intensity values, 45 | \item \emph{Clustering matrix} of the MS Intensities and correlation distribution 46 | \item \emph{histogram} of the distribution of correlations 47 | }} 48 | 49 | \item{plotINTMISC}{if \code{TRUE} (default) plots several pages, including 50 | bar plots of \emph{Total Sum of Intensities in BioReplicates}, 51 | \emph{Total Sum of Intensities in Conditions}, 52 | \emph{Total Feature Counts in BioReplicates}, 53 | \emph{Total Feature Counts in conditions} separated by categories 54 | (INT: has a intensity value NOINT: no intensity value ) 55 | \emph{Box plots} of MS Intensity values per 56 | biological replicates and conditions; \emph{bar plots} of total intensity 57 | by bioreplicates and conditions; Barplots of 58 | \emph{total feature counts} by bioreplicates and conditions.} 59 | 60 | \item{printPDF}{If \code{TRUE} (default) prints out the pdfs. Warning: plot 61 | objects are not returned due to the large number of them.} 62 | 63 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 64 | } 65 | \value{ 66 | Quality control files and plots for metabolomics 67 | } 68 | \description{ 69 | Quality Control analysis of the evidence-like metabolomics 70 | dataset 71 | } 72 | \examples{ 73 | # Testing that input arguments cannot be null 74 | artmsQualityControlMetabolomics(evidence_file = NULL, 75 | keys_file = NULL, 76 | met_exp = "MV") 77 | } 78 | \keyword{QC,} 79 | \keyword{control,} 80 | \keyword{evidence,} 81 | \keyword{metabolomics} 82 | \keyword{quality,} 83 | -------------------------------------------------------------------------------- /man/artmsQualityControlSummaryExtended.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/qualityControlSummaryExtended.R 3 | \name{artmsQualityControlSummaryExtended} 4 | \alias{artmsQualityControlSummaryExtended} 5 | \title{Quality Control of the MaxQuant summary.txt file} 6 | \usage{ 7 | artmsQualityControlSummaryExtended( 8 | summary_file, 9 | keys_file, 10 | output_dir = "qc_summary", 11 | output_name = "qcExtended_summary", 12 | isFractions = FALSE, 13 | plotMS1SCANS = TRUE, 14 | plotMS2 = TRUE, 15 | plotMSMS = TRUE, 16 | plotISOTOPE = TRUE, 17 | printPDF = TRUE, 18 | verbose = TRUE 19 | ) 20 | } 21 | \arguments{ 22 | \item{summary_file}{(char or data.frame) The evidence file path and name, or 23 | data.frame} 24 | 25 | \item{keys_file}{(char or data.frame) The keys file path and name or 26 | data.frame} 27 | 28 | \item{output_dir}{(char) Name for the folder to output the results plots. 29 | Default is "qc_summary".} 30 | 31 | \item{output_name}{(char) prefix output name (no extension). 32 | Default: "qcExtended_summary"} 33 | 34 | \item{isFractions}{(logical) \code{TRUE} if it is a 2D experiment (fractions). 35 | Default: \code{FALSE}} 36 | 37 | \item{plotMS1SCANS}{(logical) \code{TRUE} generates MS1 scan counts plot: 38 | Page 1 shows the number of MS1 scans in each BioReplicate. 39 | If replicates are present, Page 2 shows the mean number of MS1 scans 40 | per condition with error bar showing the standard error of the mean. 41 | If isFractions \code{TRUE}, each fraction is a stack on the individual bar graphs.} 42 | 43 | \item{plotMS2}{(logical) \code{TRUE} generates MS2 scan counts plot: 44 | Page 1 shows the number of MSs scans in each BioReplicate. 45 | If replicates are present, Page 2 shows the mean number of MS1 scans per 46 | condition with error bar showing the standard error of the mean. 47 | If isFractions \code{TRUE}, each fraction is a stack on the individual bar graphs.} 48 | 49 | \item{plotMSMS}{(logical) \code{TRUE} generates MS2 identification rate (\%) plot: 50 | Page 1 shows the fraction of MS2 scans confidently identified in each 51 | BioReplicate. If replicates are present, Page 2 shows the mean rate of MS2 52 | scans confidently identified per condition with error bar showing the 53 | standard error of the mean. 54 | If isFractions \code{TRUE}, each fraction is a stack on the individual bar graphs.} 55 | 56 | \item{plotISOTOPE}{(logical) \code{TRUE} generates Isotope Pattern counts plot: 57 | Page 1 shows the number of Isotope Patterns with charge greater than 1 in 58 | each BioReplicate. If replicates are present, Page 2 shows the mean number 59 | of Isotope Patterns with charge greater than 1 per condition with error bar 60 | showing the standard error of the mean. 61 | If isFractions \code{TRUE}, each fraction is a stack on the individual bar graphs.} 62 | 63 | \item{printPDF}{If \code{TRUE} (default) prints out the pdfs. Warning: plot 64 | objects are not returned due to the large number of them.} 65 | 66 | \item{verbose}{(logical) \code{TRUE} (default) shows function messages} 67 | } 68 | \value{ 69 | A number of plots from the summary file 70 | } 71 | \description{ 72 | Performs quality control based on the information available in 73 | the MaxQuant summary.txt file. 74 | } 75 | \examples{ 76 | # Testing warning if files are not submitted 77 | test <- artmsQualityControlSummaryExtended(summary_file = NULL, 78 | keys_file = NULL) 79 | } 80 | \keyword{keys} 81 | \keyword{qc,} 82 | \keyword{summary,} 83 | -------------------------------------------------------------------------------- /NAMESPACE: -------------------------------------------------------------------------------- 1 | # Generated by roxygen2: do not edit by hand 2 | 3 | export(artmsAnalysisQuantifications) 4 | export(artmsAnnotateSpecie) 5 | export(artmsAnnotationUniprot) 6 | export(artmsAvgIntensityRT) 7 | export(artmsChangeColumnName) 8 | export(artmsConvertMetabolomics) 9 | export(artmsDataPlots) 10 | export(artmsEnrichLog2fc) 11 | export(artmsEnrichProfiler) 12 | export(artmsEvidenceToSAINTq) 13 | export(artmsEvidenceToSaintExpress) 14 | export(artmsFilterEvidenceContaminants) 15 | export(artmsGeneratePhSiteExtended) 16 | export(artmsIsEvidenceNewVersion) 17 | export(artmsIsSpeciesSupported) 18 | export(artmsLeaveOnlyUniprotEntryID) 19 | export(artmsMapUniprot2Entrez) 20 | export(artmsMergeEvidenceAndKeys) 21 | export(artmsMsstatsSummary) 22 | export(artmsPhosfateOutput) 23 | export(artmsPhotonOutput) 24 | export(artmsPlotHeatmapQuant) 25 | export(artmsProtein2SiteConversion) 26 | export(artmsQualityControlEvidenceBasic) 27 | export(artmsQualityControlEvidenceExtended) 28 | export(artmsQualityControlMetabolomics) 29 | export(artmsQualityControlSummaryExtended) 30 | export(artmsQuantification) 31 | export(artmsResultsWide) 32 | export(artmsSILACtoLong) 33 | export(artmsSpectralCounts) 34 | export(artmsVolcanoPlot) 35 | export(artmsWriteConfigYamlFile) 36 | import(AnnotationDbi, except = c(head)) 37 | import(MSstats) 38 | import(RColorBrewer) 39 | import(UpSetR) 40 | import(VennDiagram) 41 | import(bit64) 42 | import(circlize) 43 | import(data.table) 44 | import(getopt) 45 | import(ggdendro) 46 | import(ggplot2) 47 | import(ggrepel) 48 | import(grid) 49 | import(limma) 50 | import(openxlsx) 51 | import(org.Hs.eg.db) 52 | import(pheatmap) 53 | import(plotly, except = c(last_plot, mutate, arrange, 54 | rename, summarise, select, add_heatmap)) 55 | import(seqinr, except = c(zscore, count, a)) 56 | import(stringr) 57 | import(yaml) 58 | importFrom(cluster,pam) 59 | importFrom(corrplot,corrplot) 60 | importFrom(dplyr,arrange) 61 | importFrom(dplyr,count) 62 | importFrom(dplyr,desc) 63 | importFrom(dplyr,everything) 64 | importFrom(dplyr,mutate) 65 | importFrom(dplyr,one_of) 66 | importFrom(gplots,heatmap.2) 67 | importFrom(grDevices,colorRampPalette) 68 | importFrom(grDevices,dev.off) 69 | importFrom(grDevices,pdf) 70 | importFrom(graphics,barplot) 71 | importFrom(graphics,hist) 72 | importFrom(graphics,lines) 73 | importFrom(graphics,pairs) 74 | importFrom(graphics,panel.smooth) 75 | importFrom(graphics,par) 76 | importFrom(graphics,plot) 77 | importFrom(graphics,rect) 78 | importFrom(graphics,strwidth) 79 | importFrom(graphics,text) 80 | importFrom(plyr,ddply) 81 | importFrom(plyr,rename) 82 | importFrom(plyr,summarise) 83 | importFrom(scales,percent) 84 | importFrom(stats,IQR) 85 | importFrom(stats,aggregate) 86 | importFrom(stats,as.dendrogram) 87 | importFrom(stats,as.dist) 88 | importFrom(stats,complete.cases) 89 | importFrom(stats,cor) 90 | importFrom(stats,dist) 91 | importFrom(stats,fisher.test) 92 | importFrom(stats,hclust) 93 | importFrom(stats,kmeans) 94 | importFrom(stats,median) 95 | importFrom(stats,order.dendrogram) 96 | importFrom(stats,phyper) 97 | importFrom(stats,prcomp) 98 | importFrom(stats,qt) 99 | importFrom(stats,quantile) 100 | importFrom(stats,sd) 101 | importFrom(tidyr,pivot_longer) 102 | importFrom(tidyr,pivot_wider) 103 | importFrom(tidyr,unnest) 104 | importFrom(utils,capture.output) 105 | importFrom(utils,combn) 106 | importFrom(utils,globalVariables) 107 | importFrom(utils,head) 108 | importFrom(utils,read.delim) 109 | importFrom(utils,sessionInfo) 110 | importFrom(utils,setTxtProgressBar) 111 | importFrom(utils,txtProgressBar) 112 | importFrom(utils,write.table) 113 | -------------------------------------------------------------------------------- /man/artms_config.Rd: -------------------------------------------------------------------------------- 1 | % Generated by roxygen2: do not edit by hand 2 | % Please edit documentation in R/data.R 3 | \docType{data} 4 | \name{artms_config} 5 | \alias{artms_config} 6 | \title{artMS configuration template} 7 | \format{ 8 | The configuration (\code{yaml}) file contains the following sections: 9 | \describe{ 10 | \item{files}{ 11 | \itemize{ 12 | \item \code{evidence} : /path/to/the/evidence.txt 13 | \item \code{keys} : /path/to/the/keys.txt 14 | \item \code{contrasts} : /path/to/the/contrast.txt 15 | \item \code{summary} : /path/to/the/summary.txt 16 | \item \code{output} : /path/to/the/output/results/results.txt} 17 | } 18 | 19 | \item{qc}{ 20 | \itemize{ 21 | \item basic: 1 # 1 = yes; 0 = no 22 | \item extended: 1 # 1 = yes; 0 = no 23 | \item extendedSummary: 0 # 1 = yes; 0 = no 24 | } 25 | } 26 | 27 | \item{data}{ 28 | \itemize{ 29 | \item enabled : 1 # 1 = yes; 0 = no 30 | \item silac: 31 | \itemize{ 32 | \item enabled : 0 # 1 for SILAC experiments 33 | } 34 | \item filters: 35 | \itemize{ 36 | \item enabled : 1 37 | } 38 | \item contaminants : 1 39 | \item protein_groups : remove #remove, keep 40 | \item modifications : ab # PH, UB, AB, APMS 41 | \item sample_plots : 1 # correlation plots } 42 | } 43 | 44 | \item{msstats}{ 45 | \itemize{ 46 | \item enabled : 1 47 | \item msstats_input : # blank if not previous msstats input file is available 48 | \item profilePlots : none # before, after, before-after, none 49 | \item normalization_method : equalizeMedians # globalStandards 50 | (include a reference protein(s) ), equalizeMedians, quantile, 0 51 | \item normalization_reference : #should be a value in the Protein column 52 | \item summaryMethod : TMP # "TMP"(default) means Tukey's median polish, 53 | which is robust estimation method. "linear" uses linear mixed model. 54 | "logOfSum" conducts log2 (sum of intensities) per run. 55 | \item censoredInt : NA # Missing values are censored or at random. 'NA' 56 | (default) assumes that all 'NA's in 'Intensity' column are censored. 57 | '0' uses zero intensities as censored intensity. In this case, 58 | NA intensities are missing at random. The output from Skyline 59 | should use '0'. Null assumes that all NA intensites are randomly missing. 60 | \item MBimpute : 1 # only for summaryMethod="TMP" and censoredInt='NA' or '0'. 61 | TRUE (default) imputes 'NA' or '0' (depending on censoredInt option) by 62 | Accelated failure model. FALSE uses the values assigned by cutoffCensored 63 | \item For all othe features, please check documentation for MSstats' dataProcess function 64 | } 65 | } 66 | 67 | \item{output_extras}{ 68 | \itemize{ 69 | \item output_extras : 70 | \itemize{ 71 | \item enabled : 1 # if 0, it wont do anything in this section 72 | } 73 | \item annotate : 74 | \itemize{ 75 | \item enabled: 1 # 1|0 whether to annotate the proteins in the results or not 76 | } 77 | \item species : HUMAN # Supported species: HUMAN, MOUSE, ANOPHELES, ARABIDOPSIS, 78 | BOVINE, WORM, CANINE, FLY, ZEBRAFISH, ECOLI_STRAIN_K12, ECOLI_STRAIN_SAKAI, 79 | CHICKEN, RHESUS, MALARIA, CHIMP, RAT, YEAST, PIG, XENOPUS 80 | \item plots: 81 | \itemize{ 82 | \item volcano: 1 83 | \item heatmap: 1 84 | \item LFC : -1.5 1.5 # Range of minimal log2fc 85 | \item FDR : 0.05 86 | \item heatmap_cluster_cols : 0 87 | \item heatmap_display : log2FC # log2FC or pvalue} 88 | } 89 | } 90 | } 91 | } 92 | \usage{ 93 | artms_config 94 | } 95 | \description{ 96 | The configuration file in \code{yaml} format contains 97 | the configuration details required to run \code{artmsQuantification()}, which 98 | includes quality control functions 99 | } 100 | \keyword{datasets} 101 | -------------------------------------------------------------------------------- /docs/pkgdown.js: -------------------------------------------------------------------------------- 1 | /* http://gregfranko.com/blog/jquery-best-practices/ */ 2 | (function($) { 3 | $(function() { 4 | 5 | $('.navbar-fixed-top').headroom(); 6 | 7 | $('body').css('padding-top', $('.navbar').height() + 10); 8 | $(window).resize(function(){ 9 | $('body').css('padding-top', $('.navbar').height() + 10); 10 | }); 11 | 12 | $('[data-toggle="tooltip"]').tooltip(); 13 | 14 | var cur_path = paths(location.pathname); 15 | var links = $("#navbar ul li a"); 16 | var max_length = -1; 17 | var pos = -1; 18 | for (var i = 0; i < links.length; i++) { 19 | if (links[i].getAttribute("href") === "#") 20 | continue; 21 | // Ignore external links 22 | if (links[i].host !== location.host) 23 | continue; 24 | 25 | var nav_path = paths(links[i].pathname); 26 | 27 | var length = prefix_length(nav_path, cur_path); 28 | if (length > max_length) { 29 | max_length = length; 30 | pos = i; 31 | } 32 | } 33 | 34 | // Add class to parent
Dataset randomly generated for testing purposes
140 |artms_data_randomDF
143 |
144 |
145 | A data frame with 100 rows and 10 variables:
R/data.R
139 | artms_data_pathogen_TB.RdTB PATHOGEN: Mycobacterium tuberculosis 144 | (strain ATCC 35801 / TMC 107 / Erdman) UNIPROTS IDS
145 |artms_data_pathogen_TB
148 |
149 |
150 | A data.frame of Entry IDs
153 | 154 |R/data.R
137 | artms_data_ph_contrast.RdContrast file with the relative quantification to be performed 142 | for the two conditions available in the example dataset: "Cal33-HSC6". 143 | See vignette for more details on how to prepare the contrast file.
144 |artms_data_ph_contrast
147 |
148 |
149 | list with one comparison: "Cal33-HSC6"
152 | 153 |Normalized data obtained from the artmsQuantification() step
141 | of the PH dataset (global analysis)
artms_data_ph_msstats_modelqc
145 |
146 |
147 | A data frame resulting from running the latest version of
150 | MSstats::groupComparison function required as input for
151 | artmsAnalysisQuantifications()
R/data.R
139 | artms_data_pathogen_LPN.RdLPN PATHOGEN: Legionella pneumophila subsp. pneumophila 144 | (strain Philadelphia 1 / ATCC 33152 / DSM 7513) UNIPROT IDS
145 |artms_data_pathogen_LPN
148 |
149 |
150 | A data.frame of Entry IDs
153 | 154 |Relative quantification results obtained running MSstats
143 | on the available PH datasets (global analysis).
144 | Changes in protein phosphorylation were quantified between two conditions
145 | (check artms_data_ph_contrast)
artms_data_ph_msstats_results
149 |
150 |
151 | A data frame resulting from running the latest version of MSstats
154 | 155 |