-
Notifications
You must be signed in to change notification settings - Fork 14
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
smFRET-MFD measurement type #27
Comments
@AndersBarth, thanks for the contribution! To open a Pull Request, push the modifications to your own fork, preferably in a dedicated branch. Then open a pull request (using the github interface) from your fork to the original repo. The permission issue you are seeing is because you are trying to push directly to the official phconvert repository. However, regarding adding the support to MFD, this should be supported by the new "generic" measurement type in Photon-HDF5 v0.5 (implemented in phconvert 0.8+). See last point in: The introduction of a "generic" measurement type was motivated by the combinatorial explosion of needed measurement types needed to support CW and pulsed lasers, polarization/no polarization, spectral channels/no spectral channel, tcspc acquisition/no tcspc etc. For the historical discussion see: In this framework, you describe a TCSPC measurement with 1 laser and 2 polarizations with:
For 2 lasers, 2 spectral detection channels:
And for 2 lasers, 2 spectral channels and 2 polarization channels (4 detectors) you would use:
Please let me know if this covers all your needs. |
Dear Antonio, of course the 'generic' type covers the needs. However, it might still be worth to provide inherent support for MFD smFRET experiments, as many labs are solely doing these types of experiments. As an example, if I only want to support MFD experiments in my software, I now have to perform multiple checks to see if the data conforms. It would be more convenient to be able to check based on measurement_type. |
I agree. It is common enough to warrant a name (now that I understand the naming protocols betters – thanks for the clarification Antonino).
So: back to the naming.
How about smFRET-MFD-nsALEX? MFD is a rather general term for looking at multiple colors and polarizations with TCSPC information, and was used for smFRET measurements. We added the alternating lasers to those measurements with nsALEX, so I think that would be descriptive enough. PIE is a fine terminology, but I think we should stick with the first term used.
|
Ok, I though you where not aware of the generic measurement type. So the discussion is: adding ad-hoc measurement types for common measurements to make them easier to read. Can you spell the specs for the measurement types you would like to add? I was thinking that maybe we can get the advantage of both words by enforcing consistency between There is a problem though. What if somebody saves a generic measurement type with setup configuration corresponding to one existing measurement type. In this case a software relying on the |
@talaurence, in your definition, is |
Good point. Would it make sense for Photon-HDF5 to check if a file with a “generic” type is consistent with one of the “common measurements” and tag it accordingly? That would be more work on the developer’s side, but could even be a feature. On the other side, would Photon-HDF5 need to check if a given file is actually consistent with the given measurement_type?
From: Antonino Ingargiola <[email protected]>
Reply-To: Photon-HDF5/phconvert <[email protected]>
Date: Thursday, March 15, 2018 at 9:15 AM
To: Photon-HDF5/phconvert <[email protected]>
Cc: "Laurence, Ted A." <[email protected]>, Comment <[email protected]>
Subject: Re: [Photon-HDF5/phconvert] smFRET-MFD measurement type (#27)
Ok, I though you where not aware of the generic measurement type.
So the discussion is: adding ad-hoc measurement types for common measurements to make them easier to read. Can you spell the specs for the measurement types you would like to add?
I was thinking that maybe we can get the advantage of both words by enforcing consistency between measurement_type and /setup group. So, if your software decodes the setup group then you can as well ignore the measurement type and read any Photon-HDF5 file. But if you are interested only in one measurement type, then you can read measurement_type and be sure that all the needed fields in /setup and measurement_specs are present.
There is a problem though. What if somebody saves a generic measurement type with setup configuration corresponding to one existing measurement type. In this case a software relying on the measurement_type field only will not recognize the file.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#27 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AIAwG4DfziE2mRl3FMcjN95DbV9SYIyzks5tepN5gaJpZM4Sr0Sj>.
|
Yes
From: Antonino Ingargiola <[email protected]>
Reply-To: Photon-HDF5/phconvert <[email protected]>
Date: Thursday, March 15, 2018 at 9:19 AM
To: Photon-HDF5/phconvert <[email protected]>
Cc: "Laurence, Ted A." <[email protected]>, Mention <[email protected]>
Subject: Re: [Photon-HDF5/phconvert] smFRET-MFD measurement type (#27)
@talaurence<https://github.com/talaurence>, in your definition, is smFRET-MFD-nsALEX two interleaved lasers and two spectral channels and two polarization (4 detectors)?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#27 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AIAwG8EyyC8TEzfFAZWSXw2kkDUj4oGbks5tepRzgaJpZM4Sr0Sj>.
|
@talaurence, we already do all the checks to assure that each declared An option is just adding a warning when saving a "generic" file corresponding to specific measurement type. A user can decide to ignore the warning or to correct the measurement type as suggested. We could also add a keyword in |
@AndersBarth I had a cursory read of your code and it seems legit. Please send a PR from your own fork as explained in my first comment. Can you also provide a small test data file for testing the conversion? I don't have a strong opinion on the name of the new |
I have opened the discussion in the google group: https://groups.google.com/d/msg/photon-hdf5/0_gBZm7miK0/17Nhgr3pAQAJ
I have also modified the code in hdf5.py to accomodate the new measurement type 'smFRET-MFD', however I seem to not have permissions to push my branch with the changes.
I have essentially added the smFRET-MFD measurement type to the valid measurement types list, and modified _check_photon_data_tables as attached below. I have separated the check for polarized/split detection from the check of the number of spectral channels.
If you give me access rights, I can push the changes into a separate branch an make a pull request.
Best,
Anders
The text was updated successfully, but these errors were encountered: