Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
6e2df25
Added BiocStyle to Imports section of Description to fix error in R C…
Oct 14, 2020
5dd7373
Update README
sneumann Oct 20, 2020
9033bc4
Added more badges
sneumann Oct 20, 2020
0010155
Better error handling in getCtsKey
sneumann Oct 21, 2020
22be6df
Fix warning in loadRmbSettings('mysettings.ini') in issue #257
Oct 22, 2020
3a001a6
Merge pull request #258 from tsufz/dev
Oct 22, 2020
75e15a7
Merge remote-tracking branch 'upstream/dev' into dev
Oct 23, 2020
83bc07d
Removed prefix restriction to 2 letters and updated RMassBank.Rmd acc…
Oct 26, 2020
cd7092b
Removed `BiocStyle` from the "Imports" section of the `DESCRIPTION` o…
Oct 26, 2020
e514334
bump x.y.z version to even y prior to creation of RELEASE_3_12 branch
nturaga Oct 27, 2020
1ea0650
bump x.y.z version to odd y following creation of RELEASE_3_12 branch
nturaga Oct 27, 2020
f3c61f8
Implemented parsing of scan range
Oct 29, 2020
4a4c512
Included parsed scan range in MassBank record:
Nov 2, 2020
d496876
Adjusted record structure according to specification:
Nov 3, 2020
65cb935
Changed name of subtag from `SCAN_RANGE_M/Z` to `MASS_RANGE_M/Z` as d…
Nov 3, 2020
f3cfb8d
Added warning to `settings_example.R` for cases where the length of t…
Nov 3, 2020
87617ed
Merge pull request #268 from pstahlhofen/dev
Nov 10, 2020
2d0aaa4
Merge pull request #269 from pstahlhofen/scan_range
Nov 10, 2020
5bd06f2
Trying to fix travis error by stating 4.1 as explicit R version inste…
Nov 16, 2020
7485c61
Trying to fix travis error by using bioc-release as R version
Nov 23, 2020
d0d15fb
Merge pull request #272 from pstahlhofen/dev
Nov 23, 2020
323ec10
Included project tag in record format and updated documentation in `R…
Nov 23, 2020
b83114b
Fix an issue if no electronic noise was specified in settings.ini, cl…
sneumann Nov 29, 2020
e089775
Merge pull request #274 from pstahlhofen/project_name
Dec 2, 2020
d3f9eb4
switched parsing of AC$CHROMATOGRAPHY SOLVENT to list format in order…
Dec 2, 2020
083ff89
Fixed warnings due to nested lists
Dec 7, 2020
d3dd0e6
Updated example settings file to include changes
Dec 7, 2020
1496508
Encapsulated adding of generic information
Dec 7, 2020
d7208cc
Merge pull request #279 from pstahlhofen/solvent
sneumann Dec 8, 2020
c80adc5
Merge pull request #276 from MassBank/fix/issue239
Jan 4, 2021
f4a1279
Update formulaCalculator.R
lauperbe Mar 9, 2021
80d1432
Merge pull request #282 from lauperbe/patch-1
sneumann Mar 13, 2021
ed278a9
Merge branch 'main' into dev
sneumann Mar 16, 2021
63e6db1
Replaced 'babel' by 'obabel' in commands in createMassbank.R
Mar 16, 2021
ba135d3
bump x.y.z version to even y prior to creation of RELEASE_3_13 branch
nturaga May 19, 2021
aa7c2cf
bump x.y.z version to odd y following creation of RELEASE_3_13 branch
nturaga May 19, 2021
c786850
Merge pull request #285 from pstahlhofen/babel
Jun 1, 2021
b9cd944
Added examples provided by tsufz
Dec 14, 2020
9aeca3f
Renamed .msp files in order to match compound list
Jan 5, 2021
0892562
Adjusted findMsMsHRperMsp.direct in order to enable reading of msp fi…
Jan 11, 2021
b86df53
renamed msp-files to their original names again.
Jan 18, 2021
0d82458
Changed msp files such that RT can be read by the msp parser
Jan 19, 2021
8fb4963
Moved msp files to inst/msp_examples so they will be automatically in…
Jun 7, 2021
7f22afb
Added a README to document the usage of mbWorkflow on msp data
Jun 7, 2021
ccb320b
Added check whether peaks are in scan range
Jun 14, 2021
69e98ea
adjusted run_msp_example and stored constructed infolist in inst/msp_…
Jun 28, 2021
e7fa3be
Saved record data produced by msp-processing
Jun 28, 2021
0f110af
Minor adjustments:
Jun 29, 2021
f840711
moved data to RMassBankData, adapted msp workflow
Jul 5, 2021
57c80fb
fixed infolist load
Jul 5, 2021
f1a32f7
Merge pull request #288 from pstahlhofen/new_msp
Jul 5, 2021
2385435
- Added check if scanWindowUpperLimit and scanWindowLowerLimit are pr…
Jul 5, 2021
6b18b95
Merge pull request #290 from pstahlhofen/dev
Jul 5, 2021
076dadf
Rounded MS$FOCUSED_ION: PRECURSOR_INTENSITY to 2 digits.
Jul 7, 2021
b83a436
Added logger-setting to RMassBank.env in zzz.R
Jul 7, 2021
fe4b6e7
Implemented log_wrapper.R
Jul 12, 2021
2daf00f
Updated documentation
Jul 12, 2021
6ec8201
Added possibility to set the logging file by the user
Jul 13, 2021
c57bd56
Updated documentation of RMB_settings in the vignette
Jul 13, 2021
dca7051
Replaced all calls to `message` by `log_info`
Jul 13, 2021
f175f79
respect relative or absolute paths in filetable
Aug 3, 2021
5eacf0b
added R.utils import
Aug 3, 2021
72a735a
Processing mode per-entry from mode argument or filetable
Aug 3, 2021
3b2a0c9
removed outdated .polarity
Aug 3, 2021
30920cd
Merge remote-tracking branch 'pstahlhofen/logger' into nz-enhancements
Aug 3, 2021
bdf618d
removed old adduct type definitions, now using adduct table
Aug 3, 2021
7432337
Fixed charge to integer type
Aug 3, 2021
9b70a61
Removed unnecessary mode argument in workflow steps
Aug 3, 2021
2defe7f
fixes for 0-length ch@ok
Aug 3, 2021
e81095f
fix for some spectra with zero good peaks in aggregation step
Aug 6, 2021
3f0f954
added mAc, fixed vignettes after mode changes
Aug 9, 2021
9ce6c23
fix for empty spectra in list.tsv step
Aug 12, 2021
3cc61f2
Simplified logging behaviour
Aug 17, 2021
e238c13
Replaced calls to `log_info` by `rmb_log_info`
Aug 17, 2021
6fa7aef
re-generated documentation and NAMESPACE with Roxygen
Aug 17, 2021
9a23f3d
Update email of Erik and addition of Paul as an author
Sep 2, 2021
2ba286b
fix typo
Sep 2, 2021
59d86b5
replaced calls to message also in leMsMs.r (was forgotten earlier)
Sep 7, 2021
112b6b5
Merge pull request #291 from pstahlhofen/logger
pstahlhofen Sep 7, 2021
75d4aeb
closes #293
Sep 7, 2021
56af0d0
Merge pull request #294 from pstahlhofen/dev
pstahlhofen Sep 7, 2021
2b61340
Merge branch 'dev' of https://github.com/MassBank/RMassBank into dev
Sep 8, 2021
d0fd61a
Update Emma's email
Sep 8, 2021
68e56d9
Merge pull request #292 from tsufz/dev
Sep 8, 2021
e620b97
Adjusted rounding of mass range
Sep 8, 2021
64596fd
Merge pull request #295 from pstahlhofen/dev
pstahlhofen Sep 8, 2021
ab936c6
Merge remote-tracking branch 'origin/dev'
Sep 9, 2021
734453e
Bumped version number
Sep 9, 2021
f1bd05a
Merge branch 'master' into nz-enhancements
Sep 9, 2021
f72da37
(Re?)Added RCurl to dependencies (Why is it still there? Aren't we us…
Sep 13, 2021
b3c20ef
Changed argument order in .propertySet to resolve #260
Sep 21, 2021
42eeb54
Merge pull request #296 from pstahlhofen/dev
pstahlhofen Sep 21, 2021
dfa05c4
Changed Roxygen-tags for the following functions
Sep 28, 2021
8c7e3ad
Started to create note-files for documentation-authors
Sep 28, 2021
8e137eb
Removed old method 'compileRecord' with all its cross-references from…
Sep 29, 2021
a80a340
Re-documented parseMbRecord and parseMassBank
Oct 1, 2021
96aaae4
Added documentation for findMsMsHRperMsp
Oct 5, 2021
00101b7
Added documentation for methods 'mergePeaks' and 'mergeSpectra'
Oct 5, 2021
be73ffd
Added documentation for 'property' get and set-methods
Oct 14, 2021
78bf126
bump x.y.z version to even y prior to creation of RELEASE_3_14 branch
nturaga Oct 26, 2021
aabc062
bump x.y.z version to odd y following creation of RELEASE_3_14 branch
nturaga Oct 26, 2021
808be3f
Started to document `RmbSpectrum2`
Oct 27, 2021
3374b94
Completed documentation of `RmbSpectrum2`
Nov 1, 2021
5f229a5
Updated the documentation in the man and vignettes folder based on work
Nov 8, 2021
12d3a09
Added a script to create a Compoundlist from JCAMP-DX data
Dec 15, 2021
6d7afc5
Updated documentation, NAMESPACE and DESCRIPTION
Dec 15, 2021
44deb36
Starting with BioC 3.15 + R 4.2, 32-bit Windows is no longer supporte…
hpages Dec 16, 2021
4848405
Merge pull request #300 from pstahlhofen/jcamp_parser
Dec 22, 2021
697b325
Adjusted links in the documentation of RmbSpectrum2
Dec 22, 2021
850fc93
Fixed documentation of .updateObject.RmbSpectrum2.formulaSource
Dec 22, 2021
871fbde
Re-generated documentation with Roxygen
Dec 22, 2021
e51aa6f
Switch to using mzML files in the vignette after mzR dropped support …
sneumann Jan 28, 2022
df02127
Added acetate adduct
Mar 8, 2022
4ccb5d6
replaced do.typing by set.atom.types, fixing #303
Mar 9, 2022
72ae58f
Merge commit '871fbdea7e44a4e611292da50e45dd2ea4b4a7c8' into dev
Mar 9, 2022
01dae46
Bump version, remove stray file
Mar 9, 2022
b896a8a
Merge remote-tracking branch 'origin/nz-enhancements' into dev
Mar 9, 2022
27128b5
Merge branch 'main' into dev (forward-port mzData fix), bump version
Mar 10, 2022
7b780e2
Fixing mz calculation for multiply-charged ions and negative atoms
Mar 17, 2022
161cc76
Fix charges for water loss
Mar 18, 2022
e1fd3b6
Bumped version
Mar 29, 2022
a39ac11
fixed missing data.table import
Apr 1, 2022
c5c56ac
bump x.y.z version to even y prior to creation of RELEASE_3_15 branch
nturaga Apr 26, 2022
046da5f
bump x.y.z version to odd y following creation of RELEASE_3_15 branch
nturaga Apr 26, 2022
8825980
Remove getCompTox() because EPA AcTORWS web services have been retired
sneumann May 11, 2022
b834ae4
Fix issue when a FileList had no mode column, closes #309
sneumann May 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .BBSoptions

This file was deleted.

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: r
r: bioc-devel
r: bioc-release
cache: packages

# Set CXX1X for R-devel, as R-devel does not detect CXX1X support for gcc 4.6.3,
Expand Down
21 changes: 13 additions & 8 deletions DESCRIPTION
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
Package: RMassBank
Type: Package
Title: Workflow to process tandem MS files and build MassBank records
Version: 2.99.2
Version: 3.7.1
Authors@R: c(
person(given = "RMassBank at Eawag", email = "massbank@eawag.ch",
role=c("cre")),
person(given = "Michael A.", family = "Stravs", email =
"michael.stravs@eawag.ch", role=c("aut")), person(given = "Emma L.",
family = "Schymanski", email = "emma.schymanski@eawag.ch", role=c("aut")),
family = "Schymanski", email = "emma.schymanski@uni.lu", role=c("aut")),
person(given = "Steffen", family = "Neumann", role = "aut", email =
"sneumann@ipb-halle.de"), person(given = "Erik", family = "Muller", role =
"aut", email = "erik.mueller@student.uni-halle.de"), person(given =
"Tobias", family = "Schulze", role = "ctb", email =
"aut", email = "erik.mueller@ufz.de"), person(given = "Paul", family = "Stahlhofen", role =
"aut", email = "paul-jonas.stahlhofen@ufz.de"),
person(given = "Tobias", family = "Schulze", role = "ctb", email =
"tobias.schulze@ufz.de"), person(given =
"Hendrik", family = "Treutler", role = "ctb", email =
"hendrik.treutler@gmail.com") )
Expand All @@ -33,13 +34,15 @@ Encoding: UTF-8
Imports:
XML,rjson,S4Vectors,digest,
rcdk,yaml,mzR,methods,Biobase,MSnbase,httr,
enviPat,assertthat
enviPat,assertthat,logger,RCurl,readJDX,webchem,
ChemmineR,ChemmineOB,R.utils,data.table
Suggests:
BiocStyle,gplots,RMassBankData,
BiocStyle,gplots,RMassBankData (>= 1.33.1),
xcms (>= 1.37.1),
CAMERA,
RUnit,
knitr
knitr,
rmarkdown
Collate:
'alternateAnalyze.R'
'formulaCalculator.R'
Expand Down Expand Up @@ -71,4 +74,6 @@ Collate:
'fillback.R'
'parseMbRecord.R'
'zzz.R'
RoxygenNote: 7.1.1
'log_wrapper.R'
'createCompoundlist.R'
RoxygenNote: 7.1.2
40 changes: 29 additions & 11 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Generated by roxygen2: do not edit by hand

export("property<-")
export(.updateObject.RmbSpectrum2.formulaSource)
export(CAS2SMILES)
export(CTS.externalIdSubset)
export(CTS.externalIdTypes)
export(RmbDefaultSettings)
Expand All @@ -21,6 +23,8 @@ export(checkIsotopes)
export(checkSpectra)
export(cleanElnoise)
export(combineMultiplicities)
export(compoundlist2SDF)
export(createCompoundlist)
export(createMolfile)
export(dbe)
export(deprofile)
Expand All @@ -30,6 +34,7 @@ export(deprofile.scan)
export(deprofile.spline)
export(exportMassbank)
export(fillback)
export(filterCompoundlist)
export(filterMultiplicity)
export(filterPeakSatellites)
export(filterPeaksMultiplicity)
Expand All @@ -42,7 +47,7 @@ export(findMsMsHR)
export(findMsMsHR.direct)
export(findMsMsHR.mass)
export(findMsMsHR.ticms2)
export(findMsMsHRperMsp.direct)
export(findMsMsHRperMsp)
export(findMsMsHRperxcms)
export(findMsMsHRperxcms.direct)
export(findMz)
Expand All @@ -60,9 +65,9 @@ export(gatherPubChem)
export(getAnalyticalInfo)
export(getCSID)
export(getCactus)
export(getCompTox)
export(getCtsKey)
export(getCtsRecord)
export(getField)
export(getMolecule)
export(getPcId)
export(is.valid.formula)
Expand All @@ -77,8 +82,8 @@ export(makeMollist)
export(makePeaksCache)
export(makeRecalibration)
export(mbWorkflow)
export(mergePeaks.df)
export(mergeSpectra.RmbSpectrum2List)
export(mergePeaks)
export(mergeSpectra)
export(msmsRead)
export(msmsRead.RAW)
export(msmsWorkflow)
Expand All @@ -97,6 +102,7 @@ export(ppm)
export(problematicPeaks)
export(processProblematicPeaks)
export(progressBarHook)
export(property)
export(readMbdata)
export(reanalyzeFailpeak)
export(reanalyzeFailpeaks)
Expand All @@ -110,13 +116,21 @@ export(recalibrateSingleSpec)
export(recalibrateSpectra)
export(resetInfolists)
export(resetList)
export(rmb_log_debug)
export(rmb_log_error)
export(rmb_log_fatal)
export(rmb_log_info)
export(rmb_log_success)
export(rmb_log_trace)
export(rmb_log_warn)
export(selectPeaks)
export(selectSpectra)
export(smiles2mass)
export(spectraCount)
export(to.limits.rcdk)
export(toMassbank)
export(toRMB)
export(updateHeader)
export(updateSettings)
export(validate)
exportClasses(RmbSpectraSet)
Expand All @@ -125,38 +139,42 @@ exportClasses(RmbSpectrum2)
exportClasses(RmbSpectrum2List)
exportClasses(mbWorkspace)
exportClasses(msmsWorkspace)
exportMethods("property<-")
exportMethods(addProperty)
exportMethods(buildRecord)
exportMethods(checkSpectra)
exportMethods(cleanElnoise)
exportMethods(fillback)
exportMethods(getData)
exportMethods(mergePeaks)
exportMethods(mergeSpectra)
exportMethods(normalize)
exportMethods(peaksMatched)
exportMethods(peaksUnmatched)
exportMethods(property)
exportMethods(selectPeaks)
exportMethods(selectSpectra)
exportMethods(setData)
exportMethods(show)
exportMethods(spectraCount)
exportMethods(toMassbank)
import(MSnbase)
import(R.utils)
import(RCurl)
import(Rcpp)
import(S4Vectors)
import(XML)
import(assertthat)
import(digest)
import(httr)
import(logger)
import(methods)
import(mzR)
import(rcdk)
import(readJDX)
import(rjson)
import(yaml)
importFrom(Biobase,"classVersion<-")
importFrom(Biobase,classVersion)
importFrom(Biobase,isCurrent)
importFrom(Biobase,isVersioned)
importFrom(Biobase,isVersioned)
importFrom(ChemmineR,smiles2sdf)
importFrom(ChemmineR,validSDF)
importFrom(ChemmineR,write.SDF)
importFrom(data.table,fread)
importFrom(data.table,fwrite)
importFrom(webchem,cir_query)
42 changes: 41 additions & 1 deletion R/Generics.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,45 @@ setGeneric("selectPeaks", function(o, ...) standardGeneric("selectPeaks"))
#' @export
setGeneric("addProperty", function(o, name, type, value=NA) standardGeneric("addProperty"))

#' Get a property of an RmbSpectrum2 object
#'
#' This searches the 'properties' slot of the object
#' and returns a column with matching name (if found)
#' or NULL otherwise.
#'
#' @param o \code{RmbSpectrum2}
#' @param property character
#' The name of a property
#' @return The corresponding column of \code{o@properties}
#' @rdname property
#' @export
setGeneric("property", function(o, property) standardGeneric("property"))
setGeneric("property<-", function(o, property, value, addNew = FALSE, class="") standardGeneric("property<-"))

#' Replacement function to set properties of an RmbSpectrum2 object
#'
#' Update the 'properties' slot of the given object.
#' If the column you want to update does not exist yet and
#' \code{addNew = FALSE} (default), this will cause a warning
#' and the object will not be changed
#'
#' Please note that this is a replacement method, meaning that
#' \code{property(o, property) <- value}
#' can be used as a short-hand for the equivalent
#' \code{o <- 'property<-'(o, property, value)}
#'
#' @usage property(o, property, addNew=FALSE, class="") <- value
#' @param o \code{RmbSpectrum2}
#' The object whos 'properties' slot should be updated
#' @param property character
#' The name of the column in the 'properties' data frame to be updated
#' @param addNew logical, Default: FALSE
#' Whether or not a new column should be added in case a column of the
#' given name does not exist yet.
#' @param class character or missing
#' The class of the entries for the column to be added/updated
#' @param value ANY
#' The value(s) to be written into the column
#' @return The \code{RmbSpectrum2} object with an updated 'properties' slot
#' @rdname property-set
#' @export
setGeneric("property<-", function(o, property, addNew = FALSE, class="", value) standardGeneric("property<-"))
4 changes: 2 additions & 2 deletions R/Isotopic_Annotation.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ checkIsotopes <- function(w, mode = "pH", intensity_cutoff = 0, intensity_precis
if(nrow(currentMPeaks)){
rownames(currentMPeaks) <- 1:nrow(currentMPeaks)
} else {
message(paste0("Compound ", id, " in spectrum #", specEnv$specNum," does not have matched peaks, so no isotopes can be found"))
rmb_log_info(paste0("Compound ", id, " in spectrum #", specEnv$specNum," does not have matched peaks, so no isotopes can be found"))
if(plotSpectrum){
plot(currentMPeaks$mzFound, currentMPeaks$intensity,type="h", main=paste(id,findName(id)), col="black", xlab="m/z", ylab="intensity", lwd=3)
}
Expand Down Expand Up @@ -130,7 +130,7 @@ checkIsotopes <- function(w, mode = "pH", intensity_cutoff = 0, intensity_precis

# If there are no peaks left, then abort for this spectrum
if(!length(peaksToCheck)){
message(paste0("The already annotated peaks of compound ", id, " in spectrum #", specEnv$specNum," are not intense enough to search for isotopic peaks"))
rmb_log_info(paste0("The already annotated peaks of compound ", id, " in spectrum #", specEnv$specNum," are not intense enough to search for isotopic peaks"))
if(plotSpectrum){
plot(currentMPeaks$mzFound, currentMPeaks$intensity,type="h", main=paste(id,findName(id)), col="black", xlab="m/z", ylab="intensity", lwd=3)
}
Expand Down
10 changes: 5 additions & 5 deletions R/RmbSpectrum2Update.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@
#'
#' TODO: consider whether to add functionality to move reanalysis stuff from legacy data back in.
#'
#' @param w
#' @returnType
#' @return
#' @param w RmbSpectrum2
#' The object to be updated
#' @return The updated RmbSpectrum2 object
#'
#' @author stravsmi
#' @export
Expand Down Expand Up @@ -83,10 +83,10 @@

.updateObject.RmbSpectraSet.updatePolarity <- function(w)
{
w@parent@polarity <- .polarity[[w@mode]]
w@parent@polarity <- getAdductPolarity(w@mode)
for(n in seq_len(length(w@children)))
{
w@children[[n]]@polarity <- .polarity[[w@mode]]
w@children[[n]]@polarity <- getAdductPolarity(w@mode)
}
w
}
69 changes: 69 additions & 0 deletions R/SpectrumClasses.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,76 @@
#' @import MSnbase
#' @importFrom Biobase classVersion
#' @import S4Vectors
NULL

#' @title RMassBank Representation of an MSMS Spectrum
#'
#' @description This extends the \code{Spectrum2} class of the \code{MSnbase}
#' package and introduces further slots that are used to store information
#' during the \code{RMassBank} workflow.
#'
#' @slot satellite logical
#' If \code{TRUE}, the corresponding peak was removed as satellite.
#' @slot low logical
#' If \code{TRUE}, the corresponding peak was removed
#' because it failed the intensity cutoff.
#' @slot rawOk logical
#' If \code{TRUE}, the peak passed satellite and low-intensity cutoff removal.
#' @slot good logical
#' If \code{TRUE}, a formula could be found for the peak
#' and the peak passed all filter criteria. (see the
#' \code{RMassBank} vignette or the documentation of \code{\link{analyzeMsMs}}#' for details on filter settings)
#' @slot mzCalc numeric
#' The mz value calculated from the found formula for each peak (if any)
#' @slot formula character
#' The formula found for each peak.
#' \code{\link[rcdk]{generate.formula}} is used
#' for formula-fitting
#' @slot dbe numeric
#' The number of double bond equivalents.
#' This is calculated from the found formula for each peak (if any)
#' @slot formulaCount integer
#' The number of different formulae found for each peak.
#' Note: A peak for which multiple formulas were found will appear
#' multiple times. Hence there may be multiple entries in the \code{formula}
#' , \code{dppm} and \code{mzCalc} slot for the same mz value.
#' @slot formulaSource character "analyze" or "reanalysis"
#' Shows whether the current formula for the peak was determined by normal
#' analysis ("analyze") or by reanalysis of a failpeak ("reanalysis")
#' @slot dppm numeric
#' The ppm deviation of the mz value from the found formula (if any).
#' @slot dppmBest numeric
#' The ppm deviation of the mz value from the best formula found.
#' @slot ok logical one-element vector
#' If this is \code{TRUE}, the spectrum was successfully processed
#' with at least one resulting peak.
#' Otherwise, one of the following cases applies:
#' \itemize{
#' \item All peaks failed the intensity cutoff
#' i.e. the whole spectrum contains low intensity peaks, only.
#' \item All peaks were marked as satellites.
#' \item All peaks in the spectrum have a lower intensity than the value
#' given in the \code{specOkLimit} filter setting. (see the \code{RMassBank}
#' vignette or the documentation of \code{\link{analyzeMsMs}})
#' \item The precursor ion formula is invalid (see \code{\link{is.valid.formula}})
#' \item The spectrum is empty.
#' \item No molecular formula could be found for any of the peaks.
#' \item All peaks failed the \code{dbeMinLimit} criterion. (see the
#' \code{RMassBank} vignette or the documentation of \code{\link{analyzeMsMs}})
#' }
#' @slot info list
#' Spectrum identifying information
#' (collision energy, resolution, collision mode) from the \code{spectraList}
#' @slot properties data.frame
#' This is used as a flexible placeholder to store additional properties
#' for each peak throughout the workflow. After the last step of the
#' \code{mbWorkflow}, this will typically contain columns \code{mzRaw},
#' \code{noise}, \code{formulaMultiplicity}, \code{bestMultiplicity}
#' and \code{filterOK}. However, new columns may be added on demand
#' (see \code{\link{property<-}})
#' @seealso \code{\link[rcdk]{generate.formula}}, \code{\link{property<-}}
#' \code{\link{analyzeMsMs}}, \code{\link{generate.formula}},
#' \code{\link{is.valid.formula}}
#' @exportClass RmbSpectrum2
.RmbSpectrum2 <- setClass("RmbSpectrum2",
representation = representation(
Expand Down
Loading