Skip to main content



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! ⭐

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

Metadata

Release files for compay-syntax 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for compay-syntax 0.4.1
File Size Uploaded
compay-syntax-0.4.1.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for compay-syntax 0.4.1
File Interpreter ABI Platform
compay_syntax-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 24.6 kB

Release files / compay-syntax-0.4.1.tar.gz

Download URL compay-syntax-0.4.1.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d0d6c140c969784dd6b8e39524c04d71925eef78b4659afc049ad32353a41b60
BLAKE2b-256 checksum
How to use checksums
faf29ec7ef2f92459de386725af4369b596439cc9c834788a6d58059efb65bd2
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / compay_syntax-0.4.1-py3-none-any.whl

Download URL compay_syntax-0.4.1-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d85eaa683342b68f75112eccc9df4af33f4c026b9eb98a341cb311e07259bf46
BLAKE2b-256 checksum
How to use checksums
e3869f96226f7d97ff605c8003f44410ed2eb5fd6f3c016557405aa3c03062fa
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page