Skip to content
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

Alternatives to OpenSlide #54

Closed
sarthakpati opened this issue Jun 3, 2021 · 9 comments · Fixed by #303
Closed

Alternatives to OpenSlide #54

sarthakpati opened this issue Jun 3, 2021 · 9 comments · Fixed by #303
Assignees
Labels
enhancement New feature or request

Comments

@sarthakpati
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
OpenSlide is (and probably will always remain) a pain to install and use because it needs the library files present and correctly loaded in the environment prior to any import.

Describe the solution you'd like
Look for alternatives to this for WSI I/O.

Describe alternatives you've considered
N.A.

Additional context
Post alternatives (and reasons why it is better than OpenSlide) as comments.

@sarthakpati sarthakpati added the enhancement New feature or request label Jun 3, 2021
@sarthakpati
Copy link
Collaborator Author

sarthakpati commented Jun 3, 2021

  1. tifffile: https://pypi.org/project/tifffile/

Pros:

  • No additional libraries need to be installed, making the installation and usage very seamless and includes out-of-the-box support for Windows, Linux and macOS
  • Conda installer available
  • Support for (virtually) all formats supported by OpenSlide, barring a few proprietary ones

Cons:

  • Not as well-known as OpenSlide
  • Python <= 3.7 is not supported

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2021

Stale issue message

@sarthakpati
Copy link
Collaborator Author

Keeping this open for future considerations.

@grenkoca
Copy link
Contributor

grenkoca commented Dec 5, 2021

@sarthakpati I'm currently working on OPM2 to make it more stable and simplify code. We might want to look into using PathML as a backend.

@sarthakpati
Copy link
Collaborator Author

I'm currently working on OPM2 to make it more stable and simplify code

Awesome-sauce!

We might want to look into using PathML as a backend.

Let's discuss about this, since we want to move away from open-slide, not add yet another (potentially complicated) dependency for patch extraction. 😛

@sarthakpati
Copy link
Collaborator Author

sarthakpati commented Dec 19, 2021

After #261 is merged, the OpenSlide requirements will be reduced to the following few (admittedly minor) items: https://github.com/CBICA/GaNDLF/search?l=Python&q=openslide

Could one of you take a crack at this?

@sarthakpati
Copy link
Collaborator Author

I think we have a winner with tiffslide, which is pretty much a drop-in replacement for OpenSlide using tifffile as the backend.

@ap--
Copy link

ap-- commented Feb 7, 2022

Hi @sarthakpati

I'd be super interested in your experience moving this project from openslide to tiffslide. Were there any issues you ran into or did everything work ootb?

Cheers,
Andreas 😃

@sarthakpati
Copy link
Collaborator Author

Thanks, @ap--. We will definitely let you know about our experience. Since I don't specialize in dealing with WSI on GaNDLF, I am waiting on feedback regarding my PR. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants