Open stanstrup opened 4 years ago
Firstly, I think this issue would better fit in the CompoundDb repo.
Interesting use case. So, what you would like to do is to add new spectra to a CompDb
database that contains already e.g. spectra from HMDB? The MsBackendCompDb
is read-only at present, so that's why you can't add data to it. So what you would need is the possibility to change the content of the database, right?
No I would not use HMDB data. That was just for the example.
I would probably like to create an empty DB that I can keep adding to as I process the spectra. So yes, it would need a way to change the database. I thought that was already there but I can see now that it was just the database connection that can be made writeable for direct re-use.
Unless you see a better way to make a dynamic in-house database?
Feel free to transfer the issues if it is possible to transfer between orgs.
I you just want/need to have MS2 spectra it might be enough to use the MsBackendDataFrame
and save/load the object with save
/load
- or you could export
the Spectra
to an mgf file with the MsBackendMgf
.
I will also think of a way to have a better way to expand a CompDb
database, but this might not be that straight forward. I'll open an issue for that in CompoundDb
.
Sure. But an R file is not such a proper database to me and not safe for multiple users in the same way. Ideally the curating tool could be used by multiple people at the same time working on one common database.
Makes sense. For multiple users working on the same database it might even make more sense to use MySQL/MariaDB as a database engine.
Guess we should continue discussing this over in CompoundDb
(https://github.com/EuracBiomedicalResearch/CompoundDb/issues/61)
With a
MsBackendDataFrame
backed object you can concatenate like this and thus add to your object:This does not work when the backend is
MsBackendCompDb
. Is there any way to add to such an object?I am building a GUI for curating spectra and making a database. My idea was to use a
Spectra
object backed byMsBackendCompDb
so that the sql file is in effect the database.