rformassspectrometry / MsBackendSql

MsBackend adding support to store/access mass spectrometry data in large SQL databases through the Spectra R package.
https://rformassspectrometry.github.io/MsBackendSql/
4 stars 0 forks source link

Implement a setBackend method for SQL backends #17

Closed jorainer closed 9 months ago

jorainer commented 9 months ago

setBackend,Spectra,MsBackend uses by default some chunk-wise processing, which is not supported by backendInitialize of the SQL backends due to creation of the database and database tables, setting the spectra IDs (primary keys) and finally also the indices for the database.

Disabling chunk-wise (and parallel) processing using f = factor() would still work, but then the full data will be loaded into memory at once. As alternative, a setBackend,Spectra,MsBackendSql could be implemented that addresses these specific needs from above and supports chunk-wise loading and inserting the data to the database.

jorainer commented 9 months ago

implemented