rformassspectrometry / CompoundDb

Creating and using (chemical) compound databases
https://rformassspectrometry.github.io/CompoundDb/index.html
17 stars 16 forks source link

Default spectra variable names #62

Open jorainer opened 4 years ago

jorainer commented 4 years ago

As suggested by @michaelwitting in issue #61 we should agree on a base nomenclature for compound/spectra identifiers. I am generally no big friend of camelCase in variable names (just too easy to misstype), so I'd suggest to use all in lower case?

Happy for feedback, change requests and expansion of the list @michaelwitting @stanstrup @sneumann

stanstrup commented 4 years ago

Unsure what kind of things go here exactly.

michaelwitting commented 4 years ago
michaelwitting commented 4 years ago

Once we agreed on a format, I would like to refactor this in MsBackendMassbank, so they spectra can be directly used without any reformatting

jorainer commented 4 years ago

I would suggest to always use the default for the core spectra variables (see the list of variables in the General description of the Spectra vignette. Thus I would use:

(note my lack of consistency here - sorry for that :( )

michaelwitting commented 4 years ago

To summarize so far. We have the spectra core variables:

And our "library" variables (plus a few more suggestion from my side)

In case of lipids we often don' have the exact structure, therefore I would like to have inchi, inchikey, smiles optional.

jorainer commented 4 years ago

OK, this means I should update/change the code in CompoundDb to use these new column names, right?

michaelwitting commented 4 years ago

I would guess so... If there are no objections from @stanstrup ?

stanstrup commented 4 years ago

No objections