rendeirolab / LazySlide

Modular and scalable whole slide image analysis
https://lazyslide.rtfd.io/
17 stars 0 forks source link

[IO] Support for remote WSI #17

Closed Mr-Milk closed 4 months ago

Mr-Milk commented 5 months ago

Allow users to load WSI from a remote address.

The WSI should be saved in a temporary file on the machine where the code runs.

The corresponding .zarr file should be created with the following attempts:

  1. The same directory of the slide on the remote
  2. A local temporary file
  3. A local permanent file if user specified
import lazyslide as zs

wsi = zs.WSI("https://wsi.file")
# ssh support
wsi = zs.WSI("ssh://server:username@password:/path_to_wsi")