I'm going to write a database for the mass of data I seem to be accumulating now I've started my masters.
I'm using this thread mainly as a place to put my ideas and to see if they make sense, and of course any suggestions and answers to any questions are greatly appreciated
The data is in the form of spectra which are viewed in a program called Spinworks. Each set of data is in a folder named "yyyy-mm-dd-AB-xx". So far I have close to 50 of these sets of data, most having at least 2 spectrums within them in a subdirectory, some 3, giving over probably over 150 spectrums.
Each set of spectra also has a code that I have given it - ATxxx. The actual print outs (which are only used for basic reference) only have both codes, "yyyy-mm-dd-AB-xx" and "ATxxx" on them. I have a list in the back of my lab book telling me what compound/reaction each ATxxx refers to. With my lab book living in the lab most of the time and the accessing of the spectra being done in the office it makes it a real fucking arse checking which spectra is what. So today I made a spreadsheet containing these fields:
AT Code - ATxxx
Lab book ref - ATrxxx
Details - Compound conc etc
Solvent
Elements analysed - H, F, Fdc, C
Server code - yyyy-mm-dd-AB-xx
Time - xx:xx
Obviously a spreadsheet is only a tool for reference and isn't any use for actually looking at things. So, I thought, why not play about a bit, have all the data in a database with a webinterface where I can easily access my spectra, check out their details, and actually look at them.
As it happens, the NMR machine (this is all NMR data) that prints out the overview spectra saves this as a PDF in the "yyyy-mm-dd-AB-xx" folder, these can obviously be easily converted to JPEGs and resized so I can have a preview on the web interface to make sure it is the right one. The PDF itself can also be linked.
I plan to use PHP and MySQL since I've made a few basic databases before with it (which this clearly is). I'll host it on my server running XP, which means installing the right things there. I've never managed to get Apache and MySQL working on that. Can you use MySQL and PHP with IIS?
One thing that I'm wondering about and if it will work is, from the webinterface I want to be able to open the spectra in this Spinworks software. The "yyyy-mm-dd-AB-xx" directory contains a number of files that are needed so you can actually view and manipulate the spectra. The file you open is the "fid" file, which is just that, a file called "fid", no file extension. Is it possible to open a file from a browser, into an application (I will only use it on a system with Spinworks installed obviously) without saving it, or opening with? As if to open the app pointing it to the fid file, instead of opening the fid file itself.
Magnificent minds of Teh, is this all possible? |