You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import bioformats
import javabridge
javabridge.start_vm(class_path=bioformats.JARS, run_headless=True)
# file downloaded from https://downloads.openmicroscopy.org/images/OME-XML/2016-06/one-screen-one-plate-four-wells.ome.xml
path = "one-screen-one-plate-four-wells.ome.xml"
with open(path) as f:
raw_xml_string = f.read()
xml = bioformats.OMEXML(raw_xml_string)
print("number of plates:", len(xml.plates))
print(f"{xml.plates.ns=}")
javabridge.kill_vm()
The output of this script is
$ python plates_example.py
number of plates: 0
xml.plates.ns={'ome': 'http://www.openmicroscopy.org/Schemas/OME/2016-06', 'sa': None, 'spw': None}
I'm trying to iterate over the Wells to get each one's Row, Column, and Image IDs. Am I not using the xml object correctly, or is this a python-bioformats bug with parsing the tags from the xml?
Here is the content of the downloaded xml file mentioned above. It clearly has a Plate tag and several Well tags.
I'm not able to get plate or well information from the OMEXML object. I tried with a couple operetta format well plate images and an InCELL format image, both have this behavior. Here is a minimal example using one of the sample xml file downloaded from https://downloads.openmicroscopy.org/images/OME-XML/2016-06/one-screen-one-plate-four-wells.ome.xml
The output of this script is
I'm trying to iterate over the Wells to get each one's Row, Column, and Image IDs. Am I not using the
xml
object correctly, or is this a python-bioformats bug with parsing the tags from the xml?Here is the content of the downloaded xml file mentioned above. It clearly has a Plate tag and several Well tags.
The text was updated successfully, but these errors were encountered: