Skip to main content

Syntax - the arrangement of whole-slide-images and their image tiles to create well-formed computational pathology pipelines.

Project description



GitHub Documentation GitHub release

Help building our code and community!

  • All contributions are welcome! Please raise an issue for a bug, feature or pull request!

  • Tweet about this repo!

  • Give this repo a star! :star:

Quick Start

Tissue mask and tiling pipeline

from syntax.slide import Slide
from syntax.transformers.tissue_mask import OtsuTissueMask
from syntax.transformers.tiling import SimpleTiling
from syntax.transformers import Pipeline, visualize_pipeline_results

slide = Slide(slide_path=slide_path)
pipeline = Pipeline([OtsuTissueMask(), SimpleTiling(magnification=40,
                                                  tile_size=224,
                                                  max_per_class=10)])
slide = pipeline.fit_transform(slide)
visualize_pipeline_results(slide=slide,
                           transformer_list=pipeline.transformers,
                           title_list=['Tissue Mask', 'Random Tile Sampling'])

Install

pip install compay-syntax==0.4.0

You will need to install openslide. This is included in the dependencies so may be automatically installed. If not I found this to help:

#!/bin/bash

sudo apt-get install openslide-tools
pip install openslide-python

Project details


Download files

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

Source Distribution

compay-syntax-0.4.1.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

compay_syntax-0.4.1-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file compay-syntax-0.4.1.tar.gz.

File metadata

  • Download URL: compay-syntax-0.4.1.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

File hashes

Hashes for compay-syntax-0.4.1.tar.gz
Algorithm Hash digest
SHA256 d0d6c140c969784dd6b8e39524c04d71925eef78b4659afc049ad32353a41b60
MD5 be039f471b5b057757f0d35d5751208a
BLAKE2b-256 faf29ec7ef2f92459de386725af4369b596439cc9c834788a6d58059efb65bd2

See more details on using hashes here.

File details

Details for the file compay_syntax-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: compay_syntax-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7

File hashes

Hashes for compay_syntax-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d85eaa683342b68f75112eccc9df4af33f4c026b9eb98a341cb311e07259bf46
MD5 f521be41bf8b98d6109b231fdaceef12
BLAKE2b-256 e3869f96226f7d97ff605c8003f44410ed2eb5fd6f3c016557405aa3c03062fa

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