Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new spectra to an CompDb database #61

Closed
jorainer opened this issue Sep 17, 2020 · 1 comment
Closed

Add new spectra to an CompDb database #61

jorainer opened this issue Sep 17, 2020 · 1 comment

Comments

@jorainer
Copy link
Member

This is related to issue rformassspectrometry/Spectra#135 . Would be nice to have an expandable database, e.g. pre-fill with MS2 spectra from a public repository and then (sequentially) add own spectra and annotations to it.

Maybe best to add functions

addSpectra <- function(x, spectra)
updateSpectra <- function(x, spectra)
removeSpectra <- function(x, spectra)

Where x is a CompDb and spectra a Spectra object. Note that the spectra also need to have a reference to the compound in the compound table - which might have to be added before.

@michaelwitting
Copy link
Collaborator

A short question from my side: I have developed the MassBank backend, Steffen the Msp backend and maybe somebody else some other...
Shall at least the three/four/five of us agree on some common variable names, e.g. for InChIKey, SMILES, ID or so? Like this at least we don't have to map all the time between different preferences of variable naming. And maybe define a minimal set?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants