choosehappy / HistoQC

HistoQC is an open-source quality control tool for digital pathology slides
BSD 3-Clause Clear License
266 stars 105 forks source link

Unable to process .bif files #312

Closed Himanshunitrr closed 3 months ago

Himanshunitrr commented 3 months ago

I am trying to process .bif files but got, what can i do to process them?


2024-07-24 21:37:49,673 - INFO - /data/TMH 4.bif        <class 'openslide.lowlevel.OpenSlideError'> An error produced by the OpenSlide library.    Import this from openslide rather than from openslide.lowlevel.     Bad direction attribute "LEFT"
<code object __init__ at 0x7c5e202a6b30, file "/opt/HistoQC/venv/lib/python3.8/site-packages/histoqc/BaseImage.py", line 21>
jacksonjacobs1 commented 3 months ago

Although Openslide officially supports .bif, there are some open issues related to this file format. For instance: https://github.com/openslide/openslide/issues/234

Can you check if you can open & read the image with the openslide python interface?

Himanshunitrr commented 3 months ago

Checked, get the same error while directly reading it

jacksonjacobs1 commented 3 months ago

In that case the issue seems to be with Openslide and not HistoQC. I would recommend bumping the issue I linked to -- maybe the openslide folks can provide support.

Himanshunitrr commented 3 months ago

the workaround it is to convert those .bif files to .tif files using tifffile