Write a PARAFAC model output to text file ready for importing in OpenFluor.
- openfluor(data, ncomps, filename);
The openfluor.m function (also available from openfluor.org), is included in PLS_toolbox. It is used for saving a speficic data structure,(X-block axisscale for modes 2 & 3, and PARAFAC loadings) as a .txt file that is compatible for querying the openflur.org database.
Note: The functions, parafacforopenfluor and queryopenfluor are a convenient means for converting a dataset object and PARAFAC model into a formatted .txt file (via openfluor.m) for querying the openfluor.org database (http://www.openfluor.org). queryopenfluor will also open a web browser on the openfluor.org query page.
- data: A specialized data structure containing the following fields: X, Em, Ex, Model2, which correspond to data, axisscale for mode 2, axisscale for mode 3, PARAFAC loadings respectively.
- ncomps: The number of factors in the PARAFAC model.
- filename: <string>, contains the name to be used in creating the .txt file used for querying the openfluor.org database. The ‘.txt’ file extension is required.
http://www.openfluor.org is an online database of published fluorescence spectra, it contains both absorbance and emission spectra as well as excitation and emission spectra (extracted components) from PARAFAC models. On Openfluor.org, users can query the database using their spectra for identification.
Users may also choose to upload their(published in scientific journal) spectra to be reviewed for being added to the openfluor.org database.
- Openfluor.m Copyright (C) 2013 Kathleen R. Murphy, used with permission.