Skip to main content

A software tool for graph theory analysis of microscopy images.

Project description

StructuralGT

A software tool that allows graph theory analysis of nanostructures. This is a modified version of StructuralGT initially proposed by Drew A. Vecchio, DOI: 10.1021/acsnano.1c04711.

Installation

1. Install as software

2. Install via source code

Therefore, please follow the manual installation instructions provided below:

  • Install Python version 3.13 on your computer.
  • Git Clone the branch DicksonOwuor-GUI from this repo: https://github.com/compass-stc/StructuralGT.git
  • Extract the source code folder named 'structural-gt' and save it to your preferred location on your PC.
  • Open a terminal application such as CMD.
  • Navigate to the location where you saved the 'structural-gt' folder using the terminal.
  • Execute the following commands:
cd structural-gt
pip install --upgrade pip
pip install -r requirements.txt
pip install .

2(a) Executing GUI App

To run the GUI version, please follow these steps:

  • Open a terminal application such as CMD.
  • Execute the following command:
StructuralGT

2(b) Executing Terminal App

Before executing StructuralGT-cli, you need to specify these parameters:

  • image file path or image directory/folder: [required and mutually exclusive] you can set the file path using -f path-to-image or set the directory path using -d path-to-folder. If the directory path is set, StructuralGT will compute the GT metrics of all the images simultaneously,
  • configuration file path: [required] you can set the path to config the file using -c path-to-config. To make it easy, find the file sgt_configs.ini (in the ''root folder'') and modify it to capture your GT parameters,
  • type of GT task: [required] you can either 'extract graph' using -t 1 or compute GT metrics using -t 2,
  • output directory: [optional] you can set the folder where the GT results will be stored using -o path-to-folder,
  • allow auto-scaling : [optional] allows StructuralGT to automatically scale images to an optimal size for computation. You can disable this using -s 0.

Please follow these steps to execute:

  • Open a terminal application such as CMD.
  • Execute the following command:
StructuralGT-cli -d datasets/ -c datasets/sgt_configs.ini -o results/ -t 2

OR

StructuralGT-cli -f datasets/InVitroBioFilm.png -c datasets/sgt_configs.ini -t 2

OR

StructuralGT-cli -f datasets/InVitroBioFilm.png -c datasets/sgt_configs.ini -t 1

References

  • Drew A. Vecchio, Samuel H. Mahler, Mark D. Hammig, and Nicholas A. Kotov ACS Nano 2021 15 (8), 12847-12859. DOI: 10.1021/acsnano.1c04711.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sgtlib-3.3.9.tar.gz (225.1 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sgtlib-3.3.9-py3-none-any.whl (219.5 kB view details)

Uploaded Python 3

sgtlib-3.3.9-cp313-cp313-win_amd64.whl (281.4 kB view details)

Uploaded CPython 3.13Windows x86-64

File details

Details for the file sgtlib-3.3.9.tar.gz.

File metadata

  • Download URL: sgtlib-3.3.9.tar.gz
  • Upload date:
  • Size: 225.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for sgtlib-3.3.9.tar.gz
Algorithm Hash digest
SHA256 b5f775a2197578280df51f6b44e20df5e32de18ed35c4bea4105b26cc0be698c
MD5 efa733c7742d0663ccc4ee1919e45e41
BLAKE2b-256 abd8a7d040ae22bef3aedf00e3dc5b321626d5f80747ae26330a4bb572358d4d

See more details on using hashes here.

File details

Details for the file sgtlib-3.3.9-py3-none-any.whl.

File metadata

  • Download URL: sgtlib-3.3.9-py3-none-any.whl
  • Upload date:
  • Size: 219.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for sgtlib-3.3.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ac514c96487aee3e93af836aee5a9722538e664eae4162096f82f3bfebc1c712
MD5 15eec58a933caccc244763ccfe59c5d2
BLAKE2b-256 9c7d320efb65540d4da85c1ece72ceb88a055972641a0042a109652a3e537081

See more details on using hashes here.

File details

Details for the file sgtlib-3.3.9-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: sgtlib-3.3.9-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 281.4 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for sgtlib-3.3.9-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 ce9964d82417cea4e774b482b299f571a3dddf32f2fc5eb0fb032b74e42f6beb
MD5 58272c006a0dc002fc2325ee3c142230
BLAKE2b-256 85ce1b0bdff6c8881a577c53d59666ff5a972190b1ce1d828835b07f8787bb1a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page