GithubHelp home page GithubHelp logo

jgamper / compay-syntax Goto Github PK

View Code? Open in Web Editor NEW
55.0 55.0 1.0 44.59 MB

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

License: MIT License

Python 100.00%
computational-pathology medical-imaging openslide pathology-image slide-images whole-slide-image whole-slide-imaging wsis

compay-syntax's People

Contributors

jgamper avatar peter554 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

yshtii

compay-syntax's Issues

No matlab engine found

I have pip installed wsisampler. But when I run the code, it says no Matlab engine found. How do I resolve this issue?

development / test OpenJP2 versus Openslide objects

Gotta start documenting the development somehow? Is there a way to keep goals that we would like to reach?

Either way, it would be good to write unittest applied to one WSI that would be read by OpenJP2 versus Openslide, and compare the outputs (just to be sure), and also develop something like thumbnail for OpenJP2.

Issue with extracting patches in magnificent level - x10

Describe the bug
When extracting the patches in magnificent level - 10x, I have got few images in black colour with stripes and few images are not clear. And when I tried extracting in x20 they were fine. I am just wondering why the difference ?

I have attached the patches with x10 for your reference.
5_class_0_from_TCGA-UT-A88D-01Z-00-DX2 AE0B6725-767E-4E45-A34D-3BC8F1CBE923
15_class_0_from_TCGA-UT-A88D-01Z-00-DX2 AE0B6725-767E-4E45-A34D-3BC8F1CBE923

Patch Coordinates?

Hi,

This is a brill repo!

I was wondering whether it is possible to retrieve the coordinates of the patches. For example, are the patches randomly retrieved?

Taran

Move test data

Move test data to dropbox, and use wget to set up Travis CI.
Dont delete from g-drive though. Edit notebook link.

Annotations

Record standard annotation formats in the lab, and work from that

[BUG]

Describe the bug
I have tried to run the code snippet in the Readme.MD file and I am getting a few errors. The WSIs is from the Panda Challenge hosted on Kaggle.

Code snippet or Error Message
The code that I have used:

slide = Slide(slide_path=dataset[0])

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'])

The error I have got is:

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
/opt/conda/lib/python3.6/site-packages/syntax/slide/slide.py in __init__(self, slide_path, level0, verbose)
     44             try:
---> 45                 self.level0 = float(self.properties['openslide.objective-power'])
     46                 if self.verbose:

/opt/conda/lib/python3.6/site-packages/openslide/__init__.py in __getitem__(self, key)
    250         if v is None:
--> 251             raise KeyError()
    252         return v

KeyError: 

During handling of the above exception, another exception occurred:

Exception                                 Traceback (most recent call last)
<ipython-input-7-d399eadbf4ad> in <module>
      4 from syntax.transformers import Pipeline, visualize_pipeline_results
      5 
----> 6 slide = Slide(slide_path=dataset[0])
      7 
      8 pipeline = Pipeline([OtsuTissueMask(), SimpleTiling(magnification=40,

/opt/conda/lib/python3.6/site-packages/typeguard/__init__.py in wrapper(*args, **kwargs)
    838         memo = _CallMemo(python_func, _localns, args=args, kwargs=kwargs)
    839         check_argument_types(memo)
--> 840         retval = func(*args, **kwargs)
    841         check_return_type(retval, memo)
    842 

/opt/conda/lib/python3.6/site-packages/syntax/slide/slide.py in __init__(self, slide_path, level0, verbose)
     47                     print('Level 0 found @ {}X'.format(self.level0))
     48             except:
---> 49                 raise Exception('Slide does not have property objective-power.')
     50         else:
     51             self.level0 = float(level0)

Exception: Slide does not have property objective-power.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.