Skip to content

Commit

Permalink
MztabParam
Browse files Browse the repository at this point in the history
  • Loading branch information
philouail committed Feb 1, 2024
1 parent 1cf7cda commit c862f7c
Show file tree
Hide file tree
Showing 10 changed files with 638 additions and 8 deletions.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: xcms
Version: 4.1.7
Version: 4.1.8
Title: LC-MS and GC-MS Data Analysis
Description: Framework for processing and visualization of chromatographically
separated and single-spectra mass spectral data. Imports from AIA/ANDI NetCDF,
Expand Down Expand Up @@ -97,6 +97,7 @@ Collate:
'MPI.R'
'MsExperiment-functions.R'
'MsExperiment.R'
'MzTabParam.R'
'PlainTextParam.R'
'RDataParam.R'
'XcmsExperiment-functions.R'
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,7 @@ importFrom("jsonlite", "serializeJSON", "write_json", "unserializeJSON",
"read_json")
export("RDataParam")
export("PlainTextParam")
export("MzTabParam")
exportMethods("storeResults")

## filtering features things
Expand Down
14 changes: 12 additions & 2 deletions R/AllGenerics.R
Original file line number Diff line number Diff line change
Expand Up @@ -2024,7 +2024,8 @@ setGeneric("stitch.netCDF.new", function(object, lockMass) standardGeneric("stit
#' - [`PlainTextParam`]: Store `MsExperiment` and `XcmsExperiment` objects as a
#' folder of plain text files, folder path defined in the `path` argument.
#'
#' - `MzTabMParam`: Save in MzTab format (to be defined).
#' - [`MzTabMParam`]: Save an `XcmsExperiment` object as a .mztabm format. file
#' path defined in the `path` argument.
#'
#' For specific examples, see the help pages of the individual parameter classes
#' listed above.
Expand All @@ -2034,7 +2035,7 @@ setGeneric("stitch.netCDF.new", function(object, lockMass) standardGeneric("stit
#'
#' @param param The parameter object selecting and configuring the format for
#' saving. It can be one of the following classes: [`RDataParam`],
#' [`PlainTextParam`], or `MzTabMParam`.
#' [`PlainTextParam`], or [`MzTabMParam`].
#'
#' @param ... Optional parameters.
#'
Expand All @@ -2059,6 +2060,15 @@ setGeneric("stitch.netCDF.new", function(object, lockMass) standardGeneric("stit
#' ## Save as a collection of plain text files
#' storeResults(object = faahko_sub, param = param)
#'
#' ## Define param
#' param <- MzTabParam(studyId = "test",
#' polarity = "positive",
#' sampleDataColumn = "sample_type"
#' path = "test/path/")
#'
#' ## Save as a .mzTabm file
#' storeResults(object = faahko_sub, param = param)
#'
#' @md
setGeneric("storeResults", function(object, param, ...) standardGeneric("storeResults"))
setGeneric("subset<-", function(object, value) standardGeneric("subset<-"))
Expand Down
Loading

0 comments on commit c862f7c

Please sign in to comment.