You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am working on storing some MS/MS data in Spectra objects. I was interested in storing the adduct type, so ideally when this is exported to msp or mgf (or other) that adduct type is exported with the MS/MS data. Is there a slot for this that has a defined name? Thanks.
Corey
The text was updated successfully, but these errors were encountered:
we generally store the information as a spectra variable "adduct". Then, for export to e.g. MGF it depends a bit into which "field" you want the information to be written. We have a parameter mapping that allows to specify the mapping between spectra variables and the fields in the MGF for both data import and export.
The parameter takes a named character, names being the spectra variable names and the values the name of the "field" in the MGF. An example could be:
This is how I currently load information from the matchms cleaned GNPS MGF files. If your Spectra object has a spectra variable $adduct the information will be written as ADDUCT: with the value of the $adduct variable for that specific spectrum into the MGF. You see that there are also a lot of other mappings and variables. If your Spectra object does not provide these, the data will simply not exported (same for the import), i.e. you can provide mappings also for variables that you don't have.
i am working on storing some MS/MS data in Spectra objects. I was interested in storing the adduct type, so ideally when this is exported to msp or mgf (or other) that adduct type is exported with the MS/MS data. Is there a slot for this that has a defined name? Thanks.
Corey
The text was updated successfully, but these errors were encountered: