Git Product home page Git Product logo

codex_qupath's Introduction

codex_qupath

The script collection for QuPath.

Installation

You don't need to install the script. While some scripts can be executed as commands, most of them must be run within the QuPath GUI. The cell segmentation requires the cellpose and stardist extension in QuPath.

git clone [email protected]:jianhong/codex_qupath.git
## list available scripts
ls codex_qupath/scr
## list available stardist models
ls codex_qupath/models/stardist

Usage

Step 1. Cell segmentation

This step involves merging the results from Cellpose and Stardist analyses.

First, you'll need to install the Cellpose and Stardist extensions. Don't forget to set the Python path for the Cellpose extension.

Next, navigate to line 25 of the cellpose_stardist_multiNucleis_underGUI.groovy script and update the path of the stardistModel variable to match the file path of your cell_seg_model.pb. Adjust the parameters from line 26 to line 38 accordingly. You may want to change the cytoChannels and measurementPercentileCutoff according to your observations. The distanceCutoff is the maximal cutoff distance of nucleus for multiple nucleus cells.

Then, select a region in the opened TIFF view window in QuPath. Start with a small region when testing the script, and expand it once you achieve the desired results.

Finally, run the cellpose_stardist_multiNucleis_underGUI.groovy script by clicking the Run button in the Script Editor.

Youtube Video

Step 2. Export the cell segmentation

The script ExportCellDetectionMeasurement.groovy is designed to export cell segmentation data. Upon export, two files are generated and saved in a folder prefixed with "measurementsExport".

  • The .tsv file is compatible with createSeuratObj.R.
  • The .geojson file is intended for reloading into QuPath.

These exported files contain comprehensive information, including cell area, locations, marker signal statistics, and nucleus classification. The cell locations are particularly useful for neighborhood analysis.

Step 3. Fill the cell with colors

The script fill_detections.groovy is employed to duplicate detected cells into Detections and Annotations objects within QuPath. Subsequently, user can establishe the classes in QuPath to assign colors.

Users may want to try different classifier for the cell type detection by reset the line10-25. Here I set an example for the classifier.

Youtube Video

Credits

The scripts were originally a collection from published paper, Image.sc Forum, and imagescientist.com or written by Jianhong Ou.

This work were supported by Duke Regeneromics and Visgauss Lab @Duke.edu.

Contributions and Support

If you would like to contribute to this collection, please create a pull request.

For further information or help, don't hesitate to get in touch on issue channel.

Citations

If you use jianhong/codex_qupath for your analysis, please cite it using the following url: https://github.com/jianhong/codex_qupath.

An extensive list of references for the tools used by the pipeline can be found in the CITATIONS.md file.

codex_qupath's People

Contributors

jianhong avatar

Watchers

 avatar

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.