forked from sneumann/mzR
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: ensure header returns the same columns for all backends
- Fix for issue sneumann#238: ensure `header` returns the same columns for all backends.
- Loading branch information
Showing
6 changed files
with
68 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ Package: mzR | |
Type: Package | ||
Title: parser for netCDF, mzXML, mzData and mzML and mzIdentML files | ||
(mass spectrometry data) | ||
Version: 2.25.1 | ||
Version: 2.25.2 | ||
Author: Bernd Fischer, Steffen Neumann, Laurent Gatto, Qiang Kou, Johannes Rainer | ||
Maintainer: Steffen Neumann <[email protected]>, | ||
Laurent Gatto <[email protected]>, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
test_header_all <- function() { | ||
## Check that the header call returns the same columns irrespectively of the | ||
## backend. Issue #238 | ||
file <- system.file('cdf/ko15.CDF', package = "msdata") | ||
cdf <- openMSfile(file, backend="netCDF") | ||
header_cdf <- header(cdf) | ||
close(cdf) | ||
|
||
file <- system.file("threonine", "threonine_i2_e35_pH_tree.mzXML", package = "msdata") | ||
mzxml <- openMSfile(file, backend="pwiz") | ||
header_pwiz <- header(mzxml) | ||
close(mzxml) | ||
|
||
mzxml <- openMSfile(file, backend="Ramp") | ||
header_ramp <- header(mzxml) | ||
close(mzxml) | ||
|
||
checkEquals(colnames(header_cdf), colnames(header_pwiz)) | ||
checkEquals(colnames(header_ramp), colnames(header_pwiz)) | ||
} |