-
Notifications
You must be signed in to change notification settings - Fork 7
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
add BrukerTiffImagingExtractor
#220
Conversation
TODO: add tests (haven't found test data to upload to test folder) |
How long would that take compared to writing a |
How big is this session of data? Would including only a handful of the first tiffs (basically a stub) cause a problem for the reader? (like a mismatch with something expected from the header) |
You're right, I haven't considered that approach, makes sense!
~11.81GB on disk total. Currently it would, but it can be changed that I ignore what is in the header and assume the number of frames from the tif files within the folder (but also make sure they are in consecutive order, which is the case when collecting them from the header) |
What field of the header describes how many frames to expect? |
I think it's better to build an extension for Bruker rather than using a DynamicTable |
It is not a single field, each frame has an entry like this:
|
src/roiextractors/extractors/tiffimagingextractors/brukertiffimagingextractor.py
Outdated
Show resolved
Hide resolved
src/roiextractors/extractors/tiffimagingextractors/brukertiffimagingextractor.py
Outdated
Show resolved
Hide resolved
src/roiextractors/extractors/tiffimagingextractors/brukertiffimagingextractor.py
Outdated
Show resolved
Hide resolved
Interesting... But right now you decide the iteration from def _get_files_names(self):
return [file.attrib["filename"] for file in self._get_xml_root().findall(".//File")] which seems similar to globbing... From there, if you wanted to confirm that the So to create a stub, we would remove all the |
src/roiextractors/extractors/tiffimagingextractors/brukertiffimagingextractor.py
Outdated
Show resolved
Hide resolved
src/roiextractors/extractors/tiffimagingextractors/brukertiffimagingextractor.py
Show resolved
Hide resolved
…magingextractor.py Co-authored-by: Cody Baker <51133164+CodyCBakerPhD@users.noreply.github.com>
Last 2 items then are
and
|
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
This reverts commit bf885d4
for more information, see https://pre-commit.ci
…into add_BrukerTiffImagingExtractor
for more information, see https://pre-commit.ci
@weiglszonja OK CI now has the data on its cache Just running into some actual errors now |
@CodyCBakerPhD Thanks, I see it now. I think the issue is that (but not sure how to check in the CI which tifffile version is installed), but in the roiextractors/requirements-full.txt Line 1 in 247ff5d
and I was using 2023.3.21 .I checked in neuroconv and TiffImagingInterface uses tiffile>=2018.10.18 .Can we change it here too? |
Do w/e you need to do to get the CI passing here, yeah |
…into add_BrukerTiffImagingExtractor
for more information, see https://pre-commit.ci
…into add_BrukerTiffImagingExtractor # Conflicts: # tests/test_brukertiffimagingextactor.py
Codecov Report
@@ Coverage Diff @@
## master #220 +/- ##
==========================================
+ Coverage 73.28% 74.27% +0.99%
==========================================
Files 33 34 +1
Lines 2302 2395 +93
==========================================
+ Hits 1687 1779 +92
- Misses 615 616 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Add support for Bruker 2P imaging data which consists of:
OME-TIF
format (.ome.tif
files) where each TIFF file corresponds to a single frame.xml
and.env
files)The metadata from the .xml file in dict form for reference: