Syntax - the arrangement of whole-slide-images and their image tiles to create well-formed computational pathology pipelines.
Project description
Help building our code and community!
All contributions are welcome! Please raise an issue for a bug, feature or pull request!
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
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
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
compay-syntax-0.4.0.tar.gz
(9.3 kB
view hashes)
Built Distribution
Close
Hashes for compay_syntax-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94447a50fd3b309b1ccf876ddedbb06867673e713260241fc94a9e0ed33cc0bf |
|
MD5 | 12da48a5eddb8286da04d329c7c59f9a |
|
BLAKE2b-256 | a5c0f72c145a5145eb9195cb0d835a51e5e8a4266042cbde83a5c5b01883e065 |