Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation ·

Repository

Basic Info
  • Host: GitHub
  • Owner: francisduvivier
  • License: mit
  • Language: Groovy
  • Default Branch: master
  • Size: 71.3 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme License Citation

README.md

Qupath helper scripts for comet tissue scan analysis

This project contains some scripts to help with tissue analysis in qupath.

Citing this work

Please check CITATION.cff for citing information in case you use this repository in your research.

How to use the scripts

These scripts are to be used with an image with the required annotations opened in the qupath application and then using the script from the Automate menu. See https://qupath.readthedocs.io/en/stable/docs/scripting/overview.html#custom-scripts for some more info.

Scripts in this project

scripts/add-liver-tumor-bands-annotations.groovy

Basic workings of the script

This script does the following in the case of no capsule: - At the start it removes all annotations that were previously made by this script - This means all the annotations with the classification Auto - It checks all annotations to find Area annotations with 1 or 2 line annotations that intersect it. - This means you need to have manually drawn an area and then manually drawn a line through this area, intersecting it on both sides. - For these annotations, it uses the line(s) to split the geometry of this annotation into 2 parts. - Then it checks these parts to find which one is a tumor part by looking for an annotation within it that has the classification Tumor - This means you need to have manually added some small annotation somewhere in the tumor tissue and have classified it with the name Tumor - After this step, it expands the tumor and liver with band sizes that can be specified at the start of the script (see liverBands and tumorBands) - Then the expansion is modified to only keep the part that intersects with the other tissue (otherwise the bands would go all around instead of being constrained by the given tissue annotation) - Of all these created parts, annotations are added with an Auto classification.

Case of tissue with Capsule

In case there is a capsule, you need to manually annotate both sides of the capsule with lines intersecting with the tissue. It is very important that these 2 lines do not touch or intersect each other. Also, it is best that the ends of the lines are similar in direction and distance from the edge of the tissue.

So in this case that the script detects 2 lines going through a tissue annotation, it will do the following additional steps: - It will draw a line annotation through the middle of the capsule, trying to divide the capsule into 2 parts. - It will add annotations for each half of the capsule. - The script will take into account the capsule for the expansion bands mentioned above.

Difficulties

The script has known difficulties with cases of an annotation where part of it are completely disconnected. Also if a part gets disconnected after the line splitting, this can cause problems. To somewhat remedy this, we have added "00_ignored" annotations for these parts to indicate which parts of the tissue has been ignored.

Development

To make script development easier, we use IntelliJ IDE and we have set the qupath app dir as library in the IDE module settings. The app dir path in case of running qupath from the repository looks like this: qupath/build/dist/QuPath-0.6.0-rc5-arm64.app/Contents/app.

Owner

  • Name: Francis Duvivier
  • Login: francisduvivier
  • Kind: user
  • Location: Wijnegem, Belgium

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this repository in your research, please cite it as below. Please also note the QuPath citing guide: https://qupath.readthedocs.io/en/stable/docs/intro/citing.html"
title: "Gradient Analysis in QuPath"
authors:
  - family-names: Duvivier, Sillis
    given-names: Francis, Yasmine
    affiliation: No affiliation, University of Antwerp/ZAS 
date-released: 2025-05-13
version: 0.1.0
repository-code: https://github.com/francisduvivier/image-analysis-qupath
license: MIT

GitHub Events

Total
  • Push event: 19
  • Pull request event: 2
  • Create event: 1
Last Year
  • Push event: 19
  • Pull request event: 2
  • Create event: 1

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 0
  • Total pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Total issue authors: 0
  • Total pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 2
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Issue authors: 0
  • Pull request authors: 1
  • Average comments per issue: 0
  • Average comments per pull request: 0.0
  • Merged pull requests: 2
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
  • francisduvivier (2)
Top Labels
Issue Labels
Pull Request Labels