-
Notifications
You must be signed in to change notification settings - Fork 2
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
Discussion on design patterns of (meta)data management and extraction #59
Comments
I also realise that there is a lot of active development. |
Hi David! I just parsed your file with:
The previous spec is now renamed to ab or ab_no_atm_comp I add the screenshots of the output: |
What was the length of the sc_sample you got with the read_opus_file() function? |
opusreader2/R/prepare_spectra.R Line 25 in 989cfa8
|
|
Indeed, you can calculate the apparent absorbance with the In case there would be atmospheric compensation set in the measurement settings in OPUS, there would be an additional |
Well, we hope that with the current development efforts we can now soon release a stable CRAN release of opusreader2. @ThomasKnecht has done some internal refactoring to clean the parse logic with some proper modularization. We want to have |
Short question: We plan to draft a vignette in the R package that shines light on the inner working of the Bruker file specification and parsing. For this purpose and for extended unit tests, we would like to compile a test suite of files (many types of Bruker FT-IR instruments, equipments and measurements setttings). Can we use your file for this purpose? We would reference your institution for credits. |
@philipp-baumann and @ThomasKnecht. First, thank you very much for your rapid and enthusiastic replies! I overlooked Client code calling I will raise the atmospheric compensation question with the researchers I am collaborating with (as a research software engineer). It may be that this has changed over time or that different Opus settings are applied across site labs for different purposes, but it is very much worth discussing, so thank you. @ThomasKnecht, I don't recall what was the length of the @philipp-baumann, I suspect there will be no problem in using the file in your vignette but I will talk with the researchers. |
One thing I'm wondering about is whether rather than or in addition to a message like:
from |
On the subject of metadata, can the existing |
What is the best way to determine which block to look for data in? For example, suppose the data are reflectance, will the block containing data always be But how to determine which of these to use? In
and get:
|
Could you elaborate on how and when you got such an integer overflow condition? Assume it must be an extremely large integer. |
@ThomasKnecht and me have discussed a plan how to work on a much better metadata extraction/management scheme that enables more sophisticated data integrity checks (plate positions, sample id, time stamps) etc. We'd like to separate key infos across table "dumps" so we can link them in relational manner via keys. Save common entries and meanwhile enable comprehensive standard operation procedures on a platform. @ThomasKnecht is currently drafting something you could check out soon. |
first part, partly yes. either it is only |
@davidbenncsiro , FYI we have been updating some basic stuff like README and we are now starting proper semantic verisioning announced in NEWS.md. |
Generally I'd be very cautious mixing corrected and non-corrected data in a production environment (when doing cross-comparisons of two identical spectrometers at two different locations on basis of models (developing models with data on one device with atmospheric correction, predict on the same type but different instrument using measurements without correction). It took us a while to figure out what is going on. We'll consider this case to be most flexible in metadata and spectra management. |
#44 @Thorsten-Behrens FYI the discussion we are having with @davidbenncsiro here also refers to your issue/wish. We are working on something along the line of |
I checked with the researcher in question and this is fine. |
I thought I had created a ticket for this but it appears I didn't. I will need to see if I can reproduce this. |
for the metadata extraction see #66 |
also @davidbenncsiro we have now support for basic metadata here #84 |
closing since we have this in #66 |
Around August, there was a function called
read_opus_file()
inopusreader2
.This yielded what appeared to be correct sample data from files I have been testing with, such as the one attached: DECCW1013_A11.zip
I updated the package today and note that
read_opus_file()
does not exist now.I tried to use
read_opus()
but this returns a different result.Instead of
result$spec$wavenumbers
andresult$spec$data
we now haveresult$sc_sample$wavenumbers
,result$sc_sample$data
,result$sc_ref$wavenumbers
,result$sc_ref$data
and so on for different block types.Should I do something like divide
sc_sample
bysc_ref
data to yield absorbance data?Also, at least in the case of
sc_sample
, thewavenumbers
vector has a different length from the data and the data values don't match what I was seeing fromresult$spec$data
withread_opus_file()
.See also:
The text was updated successfully, but these errors were encountered: