Code Monkey home page Code Monkey logo

Comments (5)

Jorges1000 avatar Jorges1000 commented on August 14, 2024

setting up hchannel=True on preprocess_image (#31 run_starfysh error with poe argument) works but the image looks horrible:
Screenshot 2024-08-07 at 12 42 49 PM

from starfysh.

YinuoJin avatar YinuoJin commented on August 14, 2024

Hi @Jorges1000,

Thanks for using Starfysh! We'll try to reproduce the RGB dimension error you reported and get back later (will release a new version if it's a confirmed package error).

For your follow-up question with 1-D PoE, Starfysh performs H&E color deconvolution to pick only hematoxylin channels via histomicstk link, where we empirically found the positive correlations between H-channel and cell density.

From the uploaded image, the color segmentation picks up a lot of background noise distribution (repeated white blobs) + fiducial points (boundary black dots). However, Starfysh only input pixel patches mapped with valid Visium coordinates (img_metadata['map_info'][['imagerow', 'imagecol']]) while most of the background values should be dropped. Does your raw tissue consist of four separate tissues?

from starfysh.

Jorges1000 avatar Jorges1000 commented on August 14, 2024

Hi, thanks for the reply, it seems to be enhancing small differences in the background of the slide. Here is the source image:
tissue_hires_image

from starfysh.

Jorges1000 avatar Jorges1000 commented on August 14, 2024

And here is the estimated tissue density; it seems that the background is affecting it more than cell density
TissueDensityD1

from starfysh.

YinuoJin avatar YinuoJin commented on August 14, 2024

Thanks for the follow-up. We fixed the RGB issues and you can install through the GitHub version to run histology integration. I also looked into the 1D PoE: the Haematoxylin channel might either captures nucleus or the background depending on the color comparison w/ background (examples attached). We might extend it as a user option whether to flip the 1D intensities.

  • Provided histology:
    user_histology

  • Our sample histology vs. smoothed library size:
    sample1
    sample2
    sample3

Please let me know which intensity preprocessing setup makes more sense to you?

from starfysh.

Related Issues (20)

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.