Skip to main content

OCELOT: diffeOmorphiC rEgistration for voxel-wise anOmaly Tracking - a tool to generate cohort specific normative PET/CT images.

Project description

OCELOT: diffeOmorphiC rEgistration for voxel-wise anOmaly Tracking

OCELOT

diffeOmorphiC rEgistration for voxel-wise anOmaly Tracking

A tool to generate cohort specific normative PET/CT images and allow comparison with patient PET/CT images.

๐Ÿ–ฅ๏ธ System Requirements and Recommendations

Depending on the images you are processing (FOV, Spacing, Matrix size), it is recommended to use a system that has at least 64GB of RAM.

It is also HIGHLY suggested to use a system with a recent NVIDIA Graphics card.

๐Ÿ›  Installation Guide

Virtual Environment Setup

Creating a virtual environment is highly recommended to avoid any potential conflicts with other Python packages.

  • Windows:
python -m venv ocelotz_env
.\ocelotz_env\Scripts\activate
  • Linux/Mac:
python3 -m venv ocelotz_env
source ocelotz_env/bin/activate

Installing OCELOT

With your virtual environment activated, install OCELOT using pip:

pip install ocelotz # stable recommended version

๐Ÿ“ Folder Structure

To start processing data with OCELOT (the stratification pipeline, please see below) a simple folder structure is recommend:

stratification_directory
    โ”œโ”€โ”€ Subject_1
    โ”‚         โ”œโ”€โ”€ CT_FOLDER
    โ”‚         โ”‚    โ””โ”€โ”€ DICOM_FILES.dcm
    โ”‚         โ””โ”€โ”€ PT_FOLDER
    โ”‚              โ””โ”€โ”€ DICOM_FILES.dcm
    โ”œโ”€โ”€ Subject_2
    โ”‚         โ”œโ”€โ”€ CT_FOLDER
    โ”‚         โ”‚    โ””โ”€โ”€ DICOM_FILES.dcm
    โ”‚         โ””โ”€โ”€ PT_FOLDER
    โ”‚              โ””โ”€โ”€ DICOM_FILES.dcm
    .
    .
    .
    โ””โ”€โ”€ Subject_N
              โ”œโ”€โ”€ CT_FOLDER
              โ”‚    โ””โ”€โ”€ DICOM_FILES.dcm 
              โ””โ”€โ”€ PT_FOLDER
                   โ””โ”€โ”€ DICOM_FILES.dcm

The naming of the individual folders does not matter. It is only important that two sets of DICOM files exist within the subject directory: CT and PET.

Note: OCELOT might fail if specific header tags are not provided with the PET and CT DICOM files.

Following the stratification, you can then simply run OCELOT within normalization mode on the resulting stratified directory or compare the build NormDB with an incoming patient.

๐Ÿ“š Usage Guide

Getting started

OCELOT has three modes of operation: stratify, normalize and compare. To get an overview of the modes, you can simply do:

ocelot -h

To get more information for each mode, you can also do:

ocelot <mode> -h

So for example:

ocelot <stratify> -h

This will give you more information on the input parameters of the mode.

Stratification

The command structure for stratification is:

ocelot stratify -dir <directory/of/subject/data>

OCELOT will attempt to stratify the given presented subjects in -dir based on sex, BMI, age and height, standardize them and copy them into a new directory.

Template creation

ocelot normalize -sub-dir <directory/of/stratified/subject/data> -clean-up

OCELOT will attempt to normalize all subject in the provided -sub-dir and create a NormDB from them, including a reference

  • CT
  • PET
  • SUV-PET
  • STD-SUV-PET

Subject comparison

ocelot compare -ref-dir <directory/of/template> -sub-dir <directory/of/stratified/subject/data/to/compare> -clean-up -mask-regions [arms | legs | head]

OCELOT will attempt to compare all subjects in the -sub-dir to the NormDB in the -ref-dir. -clean-up is optional and removes all intermediate processing data after OCELOT is done. -mask-regions is optional and can be used to ignore regions during comparison.

Output

OCELOT will generate a folder named OCELOT in each directory where the results of each processing pipeline can be found.

๐Ÿพ OCELOT: A part of the enhance.pet community

Visit: https://enhance.pet

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

ocelotz-0.4.2.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

ocelotz-0.4.2-py3-none-any.whl (43.4 kB view details)

Uploaded Python 3

File details

Details for the file ocelotz-0.4.2.tar.gz.

File metadata

  • Download URL: ocelotz-0.4.2.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for ocelotz-0.4.2.tar.gz
Algorithm Hash digest
SHA256 bc80ec434756ecac2a15df4e05a5fdac68a0042f2881284620d690cdec893e2e
MD5 06683cf4b03eaa3ac5ac502673609880
BLAKE2b-256 0b899f575b2438f6883a218bfb0b415fe3f295d5221e040d3ba4ae82ef93afb6

See more details on using hashes here.

File details

Details for the file ocelotz-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: ocelotz-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 43.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for ocelotz-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0b64aca195ba1410b285f1bd6ec45906e7d441f7ffd8d67a9862683069609231
MD5 8d5aa5e7e09fe8776c2a7ff39b013c6b
BLAKE2b-256 98468fd6814030e741d1650d60e688a4c7e03db40c390d1972b9ee6d81d17091

See more details on using hashes here.

Supported by

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