| Title: | Companion package to the 'Using R and Bioconductor for proteomics data analysis' publication |
|---|---|
| Description: | This package contains code to illustrate the 'Using R and Bioconductor for proteomics data analysis' and 'Visualisation of proteomics data using R and Bioconductor' manuscripts. The vignettes describe the code and data needed to reproduce the examples and figures described in the paper and functionality for proteomics visualisation. It also contain various function to discover R software for mass spectrometry and proteomics. |
| Authors: | Laurent Gatto [aut, cre], Sebastian Gibb [ctb], Vlad Petyuk [ctb], Thomas Pedersen Lin [ctb] |
| Maintainer: | Laurent Gatto <[email protected]> |
| License: | Artistic-2.0 |
| Version: | 1.50.0 |
| Built: | 2026-10-10 11:07:20 UTC |
| Source: | https://github.com/bioc/RforProteomics |
Unless already present, downloads src in the destdir
directory.
downloadData(src, destdir = ".", unpack = TRUE, ...)downloadData(src, destdir = ".", unpack = TRUE, ...)
src |
The url of the file to download. |
destdir |
The destination directory. Default is |
unpack |
Should |
... |
Additional paramters passed to
|
Invisible returns the full path of the downloaded file.
Laurent Gatto
Finds the package names that have a specific biocView.
getPackagesInBiocView( view, rep = c("BioCsoft", "BioCann", "BioCexp", "BioCextra"), biocVersion )getPackagesInBiocView( view, rep = c("BioCsoft", "BioCann", "BioCexp", "BioCextra"), biocVersion )
view |
The biocView of interest. For example |
rep |
Repository of interest. One of |
biocVersion |
A |
An instance of class BiocView. NULL if the the
biocView was not found.
Laurent Gatto
Unless already present, downloads the PXD000001 mzData file
in the destdir directory. The resulting file is named
PRIDE_Exp_Complete_Ac_22134.xml
getPXD000001mzData(destdir = ".")getPXD000001mzData(destdir = ".")
destdir |
A |
Invisibly returns the name of the downloaded file.
Laurent Gatto
Unless already present, downloads the PXD000001 mzTab file
in the destdir directory. The resulting file is named
F063721.dat-mztab.txt.
getPXD000001mzTab(destdir = ".")getPXD000001mzTab(destdir = ".")
destdir |
A |
Invisibly returns the name of the downloaded file.
Laurent Gatto
Unless already present, downloads the PXD000001 mzXML file
in the destdir directory. The resulting file is named
TMT_Erwinia_1uLSike_Top10HCD_isol2_45stepped_60min_01.mzXML.
getPXD000001mzXML(destdir = ".")getPXD000001mzXML(destdir = ".")
destdir |
A |
Invisibly returns the name of the downloaded file.
Laurent Gatto
Downloads on of multiple Thermo Hela/PRTC data files.
getThermoHelaPRTC(src, destdir = ".")getThermoHelaPRTC(src, destdir = ".")
src |
The name of the file to be downloaded. If missing, a
vector of possible filenames is returned. If |
destdir |
Destination directory. Default is |
Invisibly return the path of the downloaded files.
Laurent Gatto
downloadData
## Not run: getThermoHelaPRTC() getThermoHelaPRTC("design") getThermoHelaPRTC("all") ## End(Not run)## Not run: getThermoHelaPRTC() getThermoHelaPRTC("design") getThermoHelaPRTC("all") ## End(Not run)
mzIdentML file
This file has been generated by searching the raw mzXML file of
the ProteomeXchange PXD000001 data set against the
erwinia_carotovora.fasta using the MSGF+ search engine:
java -jar ~/bin/MSGFPlus.20140630/MSGFPlus.jar -s
TMT_Erwinia_1uLSike_Top10HCD_isol2_45stepped_60min_01.mzXML -d
erwinia_carotovora.fasta -inst 1 -protocol 2
## source files to repeat the search library("rpx") px <- PXDataset("PXD000001") pxfiles(px) f <- dir(system.file("extdata", package = "RforProteomics"), pattern = "mzid", full.names=TRUE) library("mzID") id <- mzID(f) id## source files to repeat the search library("rpx") px <- PXDataset("PXD000001") pxfiles(px) f <- dir(system.file("extdata", package = "RforProteomics"), pattern = "mzid", full.names=TRUE) library("mzID") id <- mzID(f) id
This is the constructor function to generate a set of ions that can later be analysed with 'analyse()' and detected with 'detect()'.
new_ions(npeaks = 10, mzrange = c(100, 1000), nimg = 100) analyse(x, sleep = 0.1) analyze(x, sleep = 0.1) detect(x, new = FALSE) spectrum(x, ...)new_ions(npeaks = 10, mzrange = c(100, 1000), nimg = 100) analyse(x, sleep = 0.1) analyze(x, sleep = 0.1) detect(x, new = FALSE) spectrum(x, ...)
npeaks |
A 'numeric' scalar defining the number of unique peaks (M/Z values). Default is 10. |
mzrange |
A 'numeric' of length 2 defining the range of possible M/Z values. Default is 'c(100, 1000)'. |
nimg |
A 'numeric' scalar. When analysing the ions, their separation along their M/Z values will be split along a sequence of length 'nimg'. Default is 100. |
x |
An object of class 'ions'. |
sleep |
How much time to wait before producing the next plot. |
new |
A 'logical' scalar, indicating if the separated ions (last frame of calling 'analyse) should be plotting, or whether the detection should be overlaid. Default is 'FALSE', to add the plot on top of the opened device. |
... |
Additional arguments passed to [graphics::plot()]. |
An object of class 'ions'.
'analyse', 'detect' and 'spectrum' are used for their side effect or producing plots. They all invisibly return 'NULL'.
Laurent Gatto
set.seed(1L) x <- new_ions(nimg = 5) x analyse(x) detect(x) spectrum(x)set.seed(1L) x <- new_ions(nimg = 5) x analyse(x) detect(x) spectrum(x)
Format a BiocView as a data.frame.
packageDF(x, nsub = TRUE, version = TRUE)packageDF(x, nsub = TRUE, version = TRUE)
x |
An instance of class |
nsub |
A |
version |
A |
A data.frame with package information.
Laurent Gatto
Searches for all the packages with the "Proteomics"
(software), "MassSpectrometry" (software) and
"MassSepctrometryData" (data) packages and return their
names, titles and versions as a data.frame. The
(unexported but documented) underlying functions are
RforProteomics:::getPackagesInBiocView (to find relevant
package) and RforProteomics:::packageDF
(data.frame formatting).
proteomicsPackages(biocv, cache = FALSE) massSpectrometryPackages(biocv, cache = FALSE) massSpectrometryDataPackages(biocv, cache = FALSE)proteomicsPackages(biocv, cache = FALSE) massSpectrometryPackages(biocv, cache = FALSE) massSpectrometryDataPackages(biocv, cache = FALSE)
biocv |
A |
cache |
A |
A data.frame with the respective package names,
titles and versions.
Laurent Gatto
head(pp <- proteomicsPackages("3.0")) ppc <- proteomicsPackages("3.0", cache = TRUE) all.equal(pp, ppc)head(pp <- proteomicsPackages("3.0")) ppc <- proteomicsPackages("3.0", cache = TRUE) all.equal(pp, ppc)
In this TMT 6-plex experiment, four exogenous proteins were spiked into an equimolar Erwinia carotovora lysate with varying proportions in each channel of quantitation; yeast enolase (ENO) at 10:5:2.5:1:2.5:10, bovine serum albumin (BSA) at 1:2.5:5:10:5:1, rabbit glycogen phosphorylase (PHO) at 2:2:2:2:1:1 and bovin cytochrome C (CYT) at 1:1:1:1:1:2. Proteins were then digested, differentially labelled with TMT reagents, fractionated by reverse phase nanoflow UPLC (nanoACQUITY, Waters), and analysed on an LTQ Orbitrap Velos mass spectrometer (Thermo Scientific). Files in multiple format will be used to illustrate the input/output capabilities that are available to the proteomics audience. The companion package provides dedicated functions to directly download the data.
The data has been downloaded from the ProteomeXchange repository and
imported into R as illustrated in the example. It is of class
MSnSet. See also the MSnbase-demo vignette for
more details.
data("qnt")data("qnt")
An instance of class MSnSet
Laurent Gatto (2014). RforProteomcs: Companion package to the 'Using R and Bioconductor for proteomics data analysis' publicationR package version 1.3.1.
Gatto L, Christoforou A. Using R and Bioconductor for proteomics data analysis. Biochim Biophys Acta. 2013 May 18. doi:pii: S1570-9639(13)00186-6. 10.1016/j.bbapap.2013.04.032. [Epub ahead of print] PubMed PMID: 23692960.
## Not run: library("rpx") px1 <- PXDataset("PXD000001") mztab <- pxget(px1, "PXD000001_mztab.txt") library("MSnbase") qnt <- readMzTabData(mztab, what = "PEP") sampleNames(qnt) <- reporterNames(TMT6) qnt$conditions <- factor(c("A", "A", "B", "B", "B", "A")) qnt <- filterNA(qnt) selA <- qnt$conditions == "A" fData(qnt)$log2FC <- log(rowMeans(exprs(qnt)[, selA]), 2) - log(rowMeans(exprs(qnt)[, !selA]), 2) fData(qnt)$baseMean <- log(rowMeans(exprs(qnt)), 10) ## End(Not run) library("RforProteomics") library("MSnbase") data(qnt) class(qnt) head(exprs(qnt)) head(fData(qnt))## Not run: library("rpx") px1 <- PXDataset("PXD000001") mztab <- pxget(px1, "PXD000001_mztab.txt") library("MSnbase") qnt <- readMzTabData(mztab, what = "PEP") sampleNames(qnt) <- reporterNames(TMT6) qnt$conditions <- factor(c("A", "A", "B", "B", "B", "A")) qnt <- filterNA(qnt) selA <- qnt$conditions == "A" fData(qnt)$log2FC <- log(rowMeans(exprs(qnt)[, selA]), 2) - log(rowMeans(exprs(qnt)[, !selA]), 2) fData(qnt)$baseMean <- log(rowMeans(exprs(qnt)), 10) ## End(Not run) library("RforProteomics") library("MSnbase") data(qnt) class(qnt) head(exprs(qnt)) head(fData(qnt))
Opens the package and visualisation vignettes.
RforProteomics() RProtVis() RProtViz()RforProteomics() RProtVis() RProtViz()
An instance of class vignette. Used for its side effect,
opening a vignette.
Laurent Gatto