Skip to content

Commit

Permalink
adding an acquisitionNum column to psms - fixes issue #17
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGatto committed Feb 5, 2015
1 parent 9b01612 commit f881535
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: mzR
Type: Package
Title: parser for netCDF, mzXML, mzData and mzML and mzIdentML files
(mass spectrometry data)
Version: 2.1.5
Version: 2.1.6
Author: Bernd Fischer, Steffen Neumann, Laurent Gatto, Qiang Kou
Maintainer: Bernd Fischer <bernd.fischer@embl.de>,
Steffen Neumann <sneumann@ipb-halle.de>,
Expand Down
5 changes: 5 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
CHANGES IN VERSION 2.1.6
------------------------
o adding an acquisitionNum column to psms (closes issue #17)
[2015-02-05 Thu]

CHANGES IN VERSION 2.1.5
------------------------
o don't print '1' to the console when calling get3Dmap
Expand Down
7 changes: 6 additions & 1 deletion R/methods-mzRident.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ setMethod("mzidInfo",

setMethod("psms",
signature=c("mzRident"),
function(object) return(object@backend$getPsmInfo()))
function(object) {
psms <- object@backend$getPsmInfo()
psms$acquisitionNum <-
as.numeric(sub("^.*=([[:digit:]]+)$", "\\1", psms$spectrumID))
return(psms)
})

setMethod("score",
signature=c("mzRident"),
Expand Down
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
BUILT_RCPP_VERSION = package_version("0.11.2")
BUILT_RCPP_VERSION = package_version("0.11.4")

.onLoad <-
function(libname, pkgname) {
Expand Down

0 comments on commit f881535

Please sign in to comment.