Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jgamper/compay-syntax
:microscope: Syntax - the arrangement of whole-slide-images and their image tiles to create well-formed computational pathology pipelines.
https://github.com/jgamper/compay-syntax
computational-pathology medical-imaging openslide pathology-image slide-images whole-slide-image whole-slide-imaging wsis
Last synced: about 1 month ago
JSON representation
:microscope: Syntax - the arrangement of whole-slide-images and their image tiles to create well-formed computational pathology pipelines.
- Host: GitHub
- URL: https://github.com/jgamper/compay-syntax
- Owner: jgamper
- License: mit
- Created: 2018-02-08T18:29:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-22T06:22:15.000Z (about 2 years ago)
- Last Synced: 2024-10-22T09:49:07.315Z (2 months ago)
- Topics: computational-pathology, medical-imaging, openslide, pathology-image, slide-images, whole-slide-image, whole-slide-imaging, wsis
- Language: Python
- Homepage:
- Size: 43.5 MB
- Stars: 55
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pathology - compay-syntax - Tissue mask and tiling pipeline. (Software / Image IO)
README
# Help building our code and community!
[![](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/images/0)](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/links/0)[![](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/images/1)](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/links/1)[![](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/images/2)](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/links/2)[![](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/images/3)](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/links/3)[![](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/images/4)](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/links/4)[![](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/images/5)](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/links/5)[![](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/images/6)](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/links/6)[![](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/images/7)](https://sourcerer.io/fame/jgamper/jgamper/compay-syntax/links/7)
* 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
```python
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_resultsslide = 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:
```bash
#!/bin/bashsudo apt-get install openslide-tools
pip install openslide-python
```