thomasp85/mzID — pull request #17 by sgibb (2014-03-20 10:31:09+00:00)
Title: introduce translateNativeIDs argument

Hello Thomas,

this PR introduces the `translateNativeIDs` argument to mzID. With this an easy matching between the mzR output and the mzID output would be possible.

Some examples:
```s
## set translateNativeIDs to FALSE == the old behaviour
flatten(mzID("Thermo_Hela_PRTC_1_MS2cent.mzid", translateNativeIDs=FALSE, verbose=FALSE))[1:5, 1]
# [1] "controllerType=0 controllerNumber=1 scan=10792" "controllerType=0 controllerNumber=1 scan=11155"
# [3] "controllerType=0 controllerNumber=1 scan=11160" "controllerType=0 controllerNumber=1 scan=10795"
# [5] "controllerType=0 controllerNumber=1 scan=9769"

## set translateNativeIDs to TRUE == new default
flatten(mzID("Thermo_Hela_PRTC_1_MS2cent.mzid", translateNativeIDs=TRUE, verbose=FALSE))[1:5, 1]
[1] 10792 11155 11160 10795 9769
```
Best wishes,

Sebastian