Skip to content

Commit

Permalink
Merge pull request #13 from rformassspectrometry/alabaster
Browse files Browse the repository at this point in the history
Add alabaster support to MsIO (issue #12)
  • Loading branch information
jorainer authored Aug 22, 2024
2 parents 5526cb4 + 620f335 commit 385f74c
Show file tree
Hide file tree
Showing 22 changed files with 1,907 additions and 40 deletions.
28 changes: 18 additions & 10 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: MsIO
Title: Serializing and restoring/importing mass spectrometry data objects
Version: 0.0.2
Version: 0.0.4
Authors@R:
c(person(given = "Johannes", family = "Rainer",
email = "[email protected]",
Expand All @@ -15,20 +15,23 @@ Authors@R:
role = "ctb",
comment = c(ORCID = "0000-0002-1520-2268")))
Description: The serialization mechanism of R allows to save and load R data
objects in a binary format, that can however not read by other
objects in a binary format, that can however not be read by other
programming languages or software. The MsIO package supports
serializing and restoring or importing mass spectrometry data
objects to and from language agnostic file formats. The file type
can be defined and configured through a second argument `param`
of the export/import methods.
objects to and from language agnostic file formats. A variety
of different file types, including HDF5 and JSON-based formats
defined by the Bioconductor *alabaster* package are supported. The
file type can be defined and configured through a second argument
`param` of the export/import methods.
Depends:
R (>= 4.2.0)
Imports:
jsonlite,
methods,
MsCoreUtils,
MsCoreUtils (>= 1.17.1),
S4Vectors,
ProtGenerics,
S4Vectors
alabaster.base
Suggests:
BiocStyle (>= 2.5.19),
faahKO,
Expand All @@ -37,9 +40,11 @@ Suggests:
msdata,
rmarkdown,
roxygen2,
Spectra,
Spectra (>= 1.15.6),
testthat,
xcms
xcms,
alabaster.se,
alabaster.matrix
License: Artistic-2.0
Encoding: UTF-8
VignetteBuilder: knitr
Expand All @@ -49,10 +54,13 @@ biocViews: Infrastructure, MassSpectrometry, Metabolomics, DataImport, Proteomic
Roxygen: list(markdown=TRUE)
RoxygenNote: 7.3.2
Collate:
'PlainTextParam.R'
'AlabasterParam.R'
'AllGenerics.R'
'MsBackend.R'
'PlainTextParam.R'
'MsBackendMzR.R'
'MsExperiment.R'
'MsExperimentFiles.R'
'Spectra.R'
'XcmsExperiment.R'
'zzz.R'
11 changes: 11 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
# Generated by roxygen2: do not edit by hand

export(AlabasterParam)
export(PlainTextParam)
export(readObject)
exportMethods(readMsObject)
exportMethods(saveMsObject)
exportMethods(saveObject)
importClassesFrom(ProtGenerics,Param)
importFrom(MsCoreUtils,common_path)
importFrom(ProtGenerics,"dataStorage<-")
importFrom(ProtGenerics,dataStorage)
importFrom(ProtGenerics,spectra)
importFrom(S4Vectors,DataFrame)
importFrom(S4Vectors,SimpleList)
importFrom(alabaster.base,altReadObject)
importFrom(alabaster.base,altSaveObject)
importFrom(alabaster.base,readObject)
importFrom(alabaster.base,readObjectFile)
importFrom(alabaster.base,registerReadObjectFunction)
importFrom(alabaster.base,registerValidateObjectFunction)
importFrom(alabaster.base,saveObjectFile)
importFrom(jsonlite,read_json)
importFrom(jsonlite,serializeJSON)
importFrom(jsonlite,unserializeJSON)
Expand All @@ -24,3 +34,4 @@ importFrom(stats,setNames)
importFrom(utils,read.table)
importFrom(utils,write.table)
importMethodsFrom(S4Vectors,"mcols<-")
importMethodsFrom(alabaster.base,saveObject)
11 changes: 11 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Version 0.0

## Changes in 0.0.4

- Add *alabaster* `saveObject()` and `readObject()` methods as well as
`saveMsObject()` and `readMsObject()` methods with `AlabasterParam` param for
`MsBackendMzR`, `Spectra`, `MsExperiment` and `XcmsExperiment` objects.

## Changes in 0.0.3

- Implement `saveMsObject()` and `readMsObject()` with `PlainTextParam` for
`MsBackendMzR`, `Spectra`, `MsExperiment` and `XcmsExperiment`.

## Changes in 0.0.2

- Refactor code for text-based import and export of MS data objects.
Loading

0 comments on commit 385f74c

Please sign in to comment.