... | ... |
@@ -2,18 +2,18 @@ Package: mzR |
2 | 2 |
Type: Package |
3 | 3 |
Title: parser for netCDF, mzXML, mzData and mzML and mzIdentML files |
4 | 4 |
(mass spectrometry data) |
5 |
-Version: 2.17.3 |
|
5 |
+Version: 2.17.4 |
|
6 | 6 |
Author: Bernd Fischer, Steffen Neumann, Laurent Gatto, Qiang Kou, Johannes Rainer |
7 | 7 |
Maintainer: Steffen Neumann <sneumann@ipb-halle.de>, |
8 | 8 |
Laurent Gatto <lg390@cam.ac.uk>, |
9 | 9 |
Qiang Kou <qkou@umail.iu.edu> |
10 | 10 |
Description: mzR provides a unified API to the common file formats and |
11 |
- parsers available for mass spectrometry data. It comes with a |
|
12 |
- wrapper for the ISB random access parser for mass spectrometry |
|
13 |
- mzXML, mzData and mzML files. The package contains the |
|
14 |
- original code written by the ISB, and a subset of the |
|
15 |
- proteowizard library for mzML and mzIdentML. The netCDF |
|
16 |
- reading code has previously been used in XCMS. |
|
11 |
+ parsers available for mass spectrometry data. It comes with a |
|
12 |
+ wrapper for the ISB random access parser for mass spectrometry |
|
13 |
+ mzXML, mzData and mzML files. The package contains the |
|
14 |
+ original code written by the ISB, and a subset of the |
|
15 |
+ proteowizard library for mzML and mzIdentML. The netCDF |
|
16 |
+ reading code has previously been used in XCMS. |
|
17 | 17 |
License: Artistic-2.0 |
18 | 18 |
LazyLoad: yes |
19 | 19 |
Depends: Rcpp (>= 0.10.1), methods, utils |
... | ... |
@@ -26,5 +26,5 @@ SystemRequirements: C++11, GNU make |
26 | 26 |
URL: https://github.com/sneumann/mzR/ |
27 | 27 |
BugReports: https://github.com/sneumann/mzR/issues/ |
28 | 28 |
biocViews: ImmunoOncology, Infrastructure, DataImport, Proteomics, Metabolomics, |
29 |
- MassSpectrometry |
|
29 |
+ MassSpectrometry |
|
30 | 30 |
RoxygenNote: 6.0.1 |
... | ... |
@@ -1,3 +1,8 @@ |
1 |
+CHANGES IN VERSION 2.17.4 |
|
2 |
+------------------------- |
|
3 |
+ o Update documentation, pointing to MSnbase rather than directly use |
|
4 |
+ low-level classes. <2019-04-17 Wed> |
|
5 |
+ |
|
1 | 6 |
CHANGES IN VERSION 2.17.3 |
2 | 7 |
------------------------- |
3 | 8 |
o Extract isolation window from mzML files (issue #193): data.frame returned |
... | ... |
@@ -14,9 +19,9 @@ CHANGES IN VERSION 2.15.5 |
14 | 19 |
|
15 | 20 |
CHANGES IN VERSION 2.15.4 |
16 | 21 |
------------------------- |
17 |
- o Use new dependency ncdf4 for netCDF reading, |
|
22 |
+ o Use new dependency ncdf4 for netCDF reading, |
|
18 | 23 |
removes a lot of build hassles with old libnetcdf-dev linking. |
19 |
- o specParams returns a numeric scan.number.s. |
|
24 |
+ o specParams returns a numeric scan.number.s. |
|
20 | 25 |
|
21 | 26 |
CHANGES IN VERSION 2.15.3 |
22 | 27 |
------------------------- |
... | ... |
@@ -75,10 +75,19 @@ |
75 | 75 |
\code{mzRpwiz} are available implementations. \code{mzRramp} uses the |
76 | 76 |
ISB 'RAMP' random access C/C++ API, and \code{mzRpwiz} uses |
77 | 77 |
Proteowizard to access the relevant information in \code{mzData}, |
78 |
- \code{mzXML} and \code{mzML} files. |
|
78 |
+ \code{mzXML} and \code{mzML} files. \code{mzRident} is used as an |
|
79 |
+ interface to \code{mzIdentML} files. |
|
80 |
+ |
|
81 |
+ IMPORTANT: New developers that need to access and manipulate raw mass |
|
82 |
+ spectrometry data are advised against using this infrastucture |
|
83 |
+ directly. They are invited to use the corresponding \code{MSnExp} |
|
84 |
+ (with \emph{on disk} mode) from the MSnbase package instead. The |
|
85 |
+ latter supports reading multiple files at once and offers access to |
|
86 |
+ the spectra data (m/z and intensity) as well as all the spectra |
|
87 |
+ metadata using a coherent interface. The MSnbase infrastructure itself |
|
88 |
+ used the low level classes in mzR, thus offering fast and efficient |
|
89 |
+ access. |
|
79 | 90 |
|
80 |
- Additional sub-classes using the proteowizard API and netCDF are |
|
81 |
- planned. |
|
82 | 91 |
} |
83 | 92 |
|
84 | 93 |
\section{Objects from the Class}{ |
... | ... |
@@ -86,10 +95,11 @@ |
86 | 95 |
|
87 | 96 |
Objects can be created by calls of the form \code{new("mzRramp", |
88 | 97 |
...)}, but more often they will be created with |
89 |
- \code{\link{openMSfile}}. |
|
90 |
- |
|
91 |
- After creating a \code{mzR}, you can write it into a file. |
|
92 |
- mzXML, mzML, mgf formats are supported. |
|
98 |
+ \code{\link{openMSfile}}. |
|
99 |
+ |
|
100 |
+ After creating an \code{mzR} object, one can write it into a new file. |
|
101 |
+ mzXML, mzML, mgf formats are supported. |
|
102 |
+ |
|
93 | 103 |
} |
94 | 104 |
|
95 | 105 |
\section{Slots}{ |
... | ... |
@@ -102,6 +112,7 @@ |
102 | 112 |
from Biobase.} |
103 | 113 |
} |
104 | 114 |
} |
115 |
+ |
|
105 | 116 |
\section{Extends}{ |
106 | 117 |
Class \code{"\linkS4class{Versioned}"}, directly. |
107 | 118 |
} |
... | ... |
@@ -110,14 +121,14 @@ |
110 | 121 |
|
111 | 122 |
For methods to access raw data (spectra and chromatograms), see |
112 | 123 |
\code{\link{peaks}}. |
113 |
- |
|
114 |
- |
|
124 |
+ |
|
125 |
+ |
|
115 | 126 |
Methods currently implemented for \code{mzR} |
116 | 127 |
|
117 | 128 |
\describe{ \item{fileName}{\code{signature(object = "mzR")}: ... } } |
118 |
- |
|
129 |
+ |
|
119 | 130 |
Methods currently implemented for \code{mzRramp} |
120 |
- |
|
131 |
+ |
|
121 | 132 |
\describe{ |
122 | 133 |
\item{analyzer}{\code{signature(object = "mzRramp")}: ... } |
123 | 134 |
\item{close}{\code{signature(con = "mzRramp")}: ... } |
... | ... |
@@ -145,7 +156,7 @@ |
145 | 156 |
\item{runInfo}{\code{signature(object = "mzRpwiz")}: ... } |
146 | 157 |
\item{chromatogramsInfo}{\code{signature(object = "mzRpwiz")}: ... } |
147 | 158 |
} |
148 |
- |
|
159 |
+ |
|
149 | 160 |
Methods currently implemented for \code{mzRident} |
150 | 161 |
\describe{ |
151 | 162 |
\item{mzidInfo}{\code{signature(object = "mzRident")}: ... } |
... | ... |
@@ -175,7 +186,7 @@ |
175 | 186 |
library(msdata) |
176 | 187 |
filepath <- system.file("microtofq", package = "msdata") |
177 | 188 |
file <- list.files(filepath, pattern="MM14.mzML", |
178 |
- full.names=TRUE, recursive = TRUE) |
|
189 |
+ full.names=TRUE, recursive = TRUE) |
|
179 | 190 |
mzml <- openMSfile(file) |
180 | 191 |
close(mzml) |
181 | 192 |
|
... | ... |
@@ -1,6 +1,6 @@ |
1 | 1 |
--- |
2 | 2 |
title: "A parser for raw and identification mass-spectrometry data" |
3 |
-author: |
|
3 |
+author: |
|
4 | 4 |
- name: Bernd Fischer |
5 | 5 |
- name: Steffen Neumann |
6 | 6 |
- name: Laurent Gatto |
... | ... |
@@ -9,7 +9,7 @@ package: mzR |
9 | 9 |
output: |
10 | 10 |
BiocStyle::html_document: |
11 | 11 |
toc_float: true |
12 |
-bibliography: mzR.bib |
|
12 |
+bibliography: mzR.bib |
|
13 | 13 |
vignette: > |
14 | 14 |
%\VignetteEngine{knitr::rmarkdown} |
15 | 15 |
%\VignetteIndexEntry{Accessin raw mass spectrometry and identification data} |
... | ... |
@@ -26,7 +26,7 @@ interface to several mass spectrometry data formats, namely `mzData` |
26 | 26 |
data, and `mzIdentML` [@Jones2012], somewhat similar to the |
27 | 27 |
Bioconductor package affyio for affymetrix raw data. No processing is |
28 | 28 |
done in `r BiocStyle::Biocpkg("mzR")`, which is left to packages such as `r |
29 |
-BiocStyle::Biocpkg("xcms")` [@Smith:2006, Tautenhahn:2008] or |
|
29 |
+BiocStyle::Biocpkg("xcms")` [@Smith:2006, Tautenhahn:2008] or |
|
30 | 30 |
`r BiocStyle::Biocpkg("MSnbase")` [@Gatto:2012]. These packages also provide more |
31 | 31 |
convenient, high-level interfaces to raw and identification. data |
32 | 32 |
|
... | ... |
@@ -55,6 +55,16 @@ The `r BiocStyle::Biocpkg("mzR")` package is in essence a collection of wrappers |
55 | 55 |
to the C++ code, and benefits from the C++ interface provided through |
56 | 56 |
the Rcpp package [@Rcpp11]. |
57 | 57 |
|
58 |
+**IMPORTANT** New developers that need to access and manipulate raw |
|
59 |
+mass spectrometry data are advised against using this infrastucture |
|
60 |
+directly. They are invited to use the corresponding `MSnExp` (with *on |
|
61 |
+disk* mode) from the`r BiocStyle::Biocpkg("MSnbase")` package instead. The |
|
62 |
+latter supports reading multiple files at once and offers access to |
|
63 |
+the spectra data (m/z and intensity) as well as all the spectra |
|
64 |
+metadata using a coherent interface. The MSnbase infrastructure itself |
|
65 |
+used the low level classes in mzR, thus offering fast and efficient |
|
66 |
+access. |
|
67 |
+ |
|
58 | 68 |
|
59 | 69 |
# Mass spectrometry raw data |
60 | 70 |
|
... | ... |
@@ -107,17 +117,17 @@ depends on the MS software which converted the data. |
107 | 117 |
|
108 | 118 |
## `mzXML`/`mzML`/`mzData` files |
109 | 119 |
|
110 |
-A short example sequence to read data from a mass spectrometer. |
|
120 |
+A short example sequence to read data from a mass spectrometer. |
|
111 | 121 |
First open the file. |
112 | 122 |
|
113 | 123 |
```{r openraw} |
114 | 124 |
library(mzR) |
115 | 125 |
library(msdata) |
116 | 126 |
|
117 |
-mzxml <- system.file("threonine/threonine_i2_e35_pH_tree.mzXML", |
|
127 |
+mzxml <- system.file("threonine/threonine_i2_e35_pH_tree.mzXML", |
|
118 | 128 |
package = "msdata") |
119 |
-aa <- openMSfile(mzxml) |
|
120 |
-``` |
|
129 |
+aa <- openMSfile(mzxml) |
|
130 |
+``` |
|
121 | 131 |
|
122 | 132 |
We can obtain different kind of header information. |
123 | 133 |
|
... | ... |
@@ -125,7 +135,7 @@ We can obtain different kind of header information. |
125 | 135 |
runInfo(aa) |
126 | 136 |
instrumentInfo(aa) |
127 | 137 |
header(aa,1) |
128 |
-``` |
|
138 |
+``` |
|
129 | 139 |
|
130 | 140 |
Read a single spectrum from the file. |
131 | 141 |
|
... | ... |
@@ -134,14 +144,14 @@ pl <- peaks(aa,10) |
134 | 144 |
peaksCount(aa,10) |
135 | 145 |
head(pl) |
136 | 146 |
plot(pl[,1], pl[,2], type="h", lwd=1) |
137 |
-``` |
|
147 |
+``` |
|
138 | 148 |
|
139 | 149 |
One should always close the file when not needed any more. This will |
140 | 150 |
release the memory of cached content. |
141 | 151 |
|
142 | 152 |
```{r close the file} |
143 | 153 |
close(aa) |
144 |
-``` |
|
154 |
+``` |
|
145 | 155 |
|
146 | 156 |
## `mzIdentML` files |
147 | 157 |
|
... | ... |
@@ -154,14 +164,14 @@ library(msdata) |
154 | 164 |
|
155 | 165 |
file <- system.file("mzid", "Tandem.mzid.gz", package="msdata") |
156 | 166 |
x <- openIDfile(file) |
157 |
-``` |
|
167 |
+``` |
|
158 | 168 |
|
159 | 169 |
`mzidInfo` function will return general information about this |
160 | 170 |
identification result. |
161 | 171 |
|
162 | 172 |
```{r metadata} |
163 | 173 |
mzidInfo(x) |
164 |
-``` |
|
174 |
+``` |
|
165 | 175 |
|
166 | 176 |
`psms` will return the detailed information on each |
167 | 177 |
peptide-spectrum-match, include `spectrumID`, `chargeState`, |
... | ... |
@@ -196,8 +206,8 @@ colnames(scr) |
196 | 206 |
Other file formats provided by HUPO, such as `mzQuantML` for |
197 | 207 |
quantitative data [@Walzer:2013] are also possible in the future. |
198 | 208 |
|
199 |
-# Session information {#sec:sessionInfo} |
|
209 |
+# Session information {#sec:sessionInfo} |
|
200 | 210 |
|
201 | 211 |
```{r label=sessioninfo, results='asis', echo=FALSE} |
202 | 212 |
toLatex(sessionInfo()) |
203 |
-``` |
|
213 |
+``` |