Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatetools

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatetools

Python tools for GATE, see https://github.com/OpenGATE/Gate

  • 0.12.4
  • PyPI
  • Socket score

Maintainers
3

Build status PyPI

Tools for GATE simulations.

Install with : pip install gatetools

Clone the repository with git clone --recursive https://github.com/OpenGATE/GateTools.git (or git submodule update --init to update) then cd GateTools, then pip install -e .

Example of usage:

gt_gate_info
gt_image_convert input.dcm -o output.mhd
gt_image_convert input.mhd -o output_float.mhd -p float
gt_image_arithm *.mhd -o output.mhd -O sum
gt_gamma_index dose.mhd gate-DoseToWater.mhd -o gamma.mhd --dd 2 --dta 2.5 -u "%" -T 0.2

Use the flag -h to get print the help of each tool. Here is the current list of command line tools.

ToolComment
gt_affine_transformResample (resize, rotate) an image
gt_dicom_infoPrint tag values of a dicom file
gt_dicom_rt_pbs2gateConvert Dicom RT proton plan for Gate
gt_dicom_rt_struct_to_imageTurn Dicom RT Struct contours into mask image
gt_dvhCreate Dose Volume Histogram
gt_gamma_indexCompute gamma index between images
gt_gate_infoDisplay info about current Gate/G4 version
gt_hausdorffCompute Hausdorff distance
gt_image_arithmPixel- or voxel-wise arithmetic operations
gt_image_convertConvert image file format (dicom, mhd, hdr, nii ... )
gt_image_cropCrop an image
gt_image_gaussBlur an image using gaussian filter
gt_image_resizeResize an image
gt_image_statisticsStatistics of an image
gt_image_to_dicom_rt_structConvert mask image to Dicom RTStruct
gt_image_uncertaintyCompute statistical uncertainty
gt_merge_rootMerge root files
gt_morpho_mathCompute morphological operation
gt_phsp_convertConvert a phase space file from root to npy
gt_phsp_infoDisplay information about a phase space file
gt_phsp_mergeMerge two phase space files (output in npy only)
gt_phps_peaksTry to detect photopeaks (experimental)
gt_phsp_plotPlot marginal distributions form a phase space file
gt_write_dicomConvert image (mhd, nii, ...) to dicom
gt_digi_mac_converterConvert old digitizer macros to the new commands (Gate9.3)

All tools are also available to be use within your own Python script with, for example:

import gatetools as gt
gt.image_convert(inputImage, pixeltype)

Tests: run

python -m unittest gatetools -v
python -m unittest gatetools.phsp -v

Classes and function documentation. Use the following command to open a browser for documentation (it is still not very convenient ; will be improved later).

pydoc -b

For developers, please have a look at the readme_dev.md file.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc