This PR adds a generic for the spectraVariableMapping method. Backend instances are thus expected to implement that method (if needed). This should avoid overriding the different spectraVariableMapping function that are already implemented in the MsBackendMgf, MsBackendMassbank and MsBackendMsp packages.
Usage is supposed to be changed in these packages to:
be <- MsBackendMsp()
map <- spectraVariableMapping(be)
## Or to use different file format flavors
map <- spectraVariableMapping(be, "MoNa")
This PR adds a generic for the
spectraVariableMapping
method. Backend instances are thus expected to implement that method (if needed). This should avoid overriding the differentspectraVariableMapping
function that are already implemented in theMsBackendMgf
,MsBackendMassbank
andMsBackendMsp
packages.Usage is supposed to be changed in these packages to: