Skip to main content

TissUUmaps is a lightweight viewer that uses basic web tools to visualize gene expression data or any kind of point data on top of whole slide images.

Project description

FlaskTissUUmaps

FlaskTissUUmaps is a minimal python server for TissUUmaps using Flask.

Differences with TissUUmaps

Image format

FlaskTissUUmaps allows to visualize all images from a folder and sub-folders in TissUUmaps. By using a minimal deepzoom server, FlaskTissUUmaps removes the need for creating DZI files of every image.

FlaskTissUUmaps can read whole slide images in any format recognized by the OpenSlide library:

  • Aperio (.svs, .tif)
  • Hamamatsu (.ndpi, .vms, .vmu)
  • Leica (.scn)
  • MIRAX (.mrxs)
  • Philips (.tiff)
  • Sakura (.svslide)
  • Trestle (.tif)
  • Ventana (.bif, .tif)
  • Generic tiled TIFF (.tif)

plus classical images in any format recognized by the PIL library (png, jpg, etc.)

:warning: Warning: classical non pyramidal images will have to be loaded in RAM and will be read entirely for each generated tile. If you have big images, consider converting them in pyramidal format using VIPS.

Saving TissUUmaps state

FlaskTissUUmaps allows to save all TissUUmaps states (Gene expressions, Cell morphology, Regions, Layers) so that you can reload images with all additional information, just as you saved them.

Installation

Note that steps 1-4 are optional and can be replaced by installing a recent version of Python.

  1. Install Anaconda (or miniconda).

  2. Create a new conda environment from an Anaconda prompt:

    conda create --name tissuumaps
    
  3. Activate the new conda environment:

    conda activate tissuumaps
    
  4. You should be in the tissuumaps environment:

    (tissuumaps) C:\
    
  5. Install the Openslide library

    • For windows:

    • For linux:

      • Install openslide using your distribution package (for example in Ubuntu : apt-get install openslide-tools).
    • For MacOs:

      • Install openslide using your MacPorts or Homebrew (port install openslide or brew install openslide).
  6. Install python dependencies (openslide, flask and pillow):

    pip install openslide-python flask pillow
    

    In linux, check that you only have one installation of pillow:

    sudo pip uninstall pillow
    pip install pillow
    
  7. Clone the FlaskTissUUmaps git repository or download in zip format and extract to a FlaskTissUUmaps folder

    git clone https://github.com/wahlby-lab/FlaskTissUUmaps
    
  8. Go to the FlaskTissUUmaps folder and start the FlaskTissUUmaps server:

    cd \Users\myUser\Documents\FlaskTissUUmaps
    python flasktissuumaps.py path_to_image_folder
    
  9. Open http://127.0.0.1:5000/ in your favorite browser.

    :warning: Remember that Flask is running on a built-in development server (flask run) and should not be used in production. If you want to deploy FlaskTissUUmaps on a production server, please read https://flask.palletsprojects.com/en/1.1.x/tutorial/deploy/ or any similar tutorial.

Options

FlaskTissUUmaps can be used with the following options:

Usage: flasktissuumaps.py [options] [slide-directory]

Options:
  -h, --help            show this help message and exit
  -B, --ignore-bounds   display entire scan area
  -c FILE, --config=FILE
                        config file
  -d, --debug           run in debugging mode (insecure)
  -e PIXELS, --overlap=PIXELS
                        overlap of adjacent tiles [1]
  -f {jpeg|png}, --format={jpeg|png}
                        image format for tiles [jpeg]
  -l ADDRESS, --listen=ADDRESS
                        address to listen on [127.0.0.1]
  -p PORT, --port=PORT  port to listen on [5000]
  -Q QUALITY, --quality=QUALITY
                        JPEG compression quality [75]
  -s PIXELS, --size=PIXELS
                        tile size [254]
  -D LEVELS, --depth=LEVELS
                        folder depth search for opening files [4]

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

TissUUmaps-2.3.1.tar.gz (1.6 MB view details)

Uploaded Source

Built Distribution

TissUUmaps-2.3.1-py3-none-any.whl (1.7 MB view details)

Uploaded Python 3

File details

Details for the file TissUUmaps-2.3.1.tar.gz.

File metadata

  • Download URL: TissUUmaps-2.3.1.tar.gz
  • Upload date:
  • Size: 1.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for TissUUmaps-2.3.1.tar.gz
Algorithm Hash digest
SHA256 306a5bf9e2affc25d21e1c1d291b7104389f853618909a86553369df6f8a6eec
MD5 1c88879351705ab060f47397fc198900
BLAKE2b-256 939a3fc125ae242f6b58f346825826b45bc67bff260df37557ff2a227b3d3dd7

See more details on using hashes here.

File details

Details for the file TissUUmaps-2.3.1-py3-none-any.whl.

File metadata

  • Download URL: TissUUmaps-2.3.1-py3-none-any.whl
  • Upload date:
  • Size: 1.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5

File hashes

Hashes for TissUUmaps-2.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82ff78e821b334bed73c246dda0a7fc0ce5be612db7e141d9dee28982cc285ba
MD5 ca0521aa0ffd484ac56d5d9b8ff4aa46
BLAKE2b-256 5e05f1bf7d354a694534992f627b66bfcc5ab48074d57ac4cbe5d58e224ce7be

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page