Skip to content

AndrewNorgan/wsi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Open source whole slide image preparation and viewing pipeline

An overiew of how to implement an open source virtual microscopy viewing solution.

Obtaining the software

The software can be download as binaries for major platforms, or alternatively can be loaded using a package manager or compiled manually from source.

Relevant Websites:

Install Software

For Apple macOS

If utilizing the Homebrew package manager

download brew at (https://brew.sh/)

lipvips

brew install vips

jekyll (commandline tools, Ruby, and RubyGems are installed)

gem install jekyll

OpenSeaDragon

download .js files from GitHub (https://openseadragon.github.io/#download)

Obtain WSI

You can convert WSI scanned using most scanners with the OpenSlide bindings in libvips. The following example is with a Leica (Aperio) format .SVS file.

__Using libvips to convert a .SVS file to the Deep Zoom format (https://en.wikipedia.org/wiki/Deep_Zoom)

vips dzsave --tile-size XXX in_file_name.svs out_folder_name

This command will generate a .dzi file, and a folder containing additional folders with the tiles images in .DZI format.

Viewing the WSI

Once converted to the DeepZoom format, the WSI can be viewed in the browser using an HTML webpage and the OpenSeaDragon JavaScript library.

An example using a minimal HTML wrapper:

<html>
<div id="openseadragon1" style="width: 100%; height: 100%";></div>
<script src="/filelocation/openseadragon.min.js"></script>
<script type="text/javascript">
    var viewer = OpenSeadragon({
        id: "openseadragon1",
        prefixUrl: "/filelocation/openseadragonimages/",
        tileSources: "yourwsi.dzi",
        sequenceMode: false,
        autoHideControls: true,
        animationTime: 1.0,
        blendTime: 0.6,
        constrainDuringPan: true,
        maxZoomPixelRatio: 1,
        visibilityRatio: 1,
        zoomPerScrolli: 1,
        defaultZoomLevel: 1,
        showReferenceStrip: true,
        showNavigator:  true,
	    showFullPageControl: false 
    });
</script>
</html>

Viewing the WSI from the Cloud

This example is provided using the Amazon S3 service, other major (Google or Azure) or minor cloud servies should also work.

About

Open source whole slide image preparation and viewing pipeline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published