Skip to main content

VoxTool: A tool for labeling intracranial electrodes on CT images

Project description

VoxTool 2.0

Setup

  • Clone the repository from GitHub
  • Create a Conda environment from the definition file
    conda env install -f conda_env.yml
    
    This creates an environment named vt in which to run voxTool.

Running

  • Activate the conda environment:
    source activate vt
    
  • Launch the program:
    python launch_pyloc.py
    

Usage

  1. Load a CT file, adjusting the threshold as necessary. To adjust the threshold, change the number in the bar at the top of the window marked CT Threshold, then press the Update button next to it.
  2. If continuing a previous localization: load the existing coordinates from a JSON coordinate file using the Load Coordinates button.
  3. Press Define leads to set the names, shapes, types, and microcontacts for each implanted lead. Shapes are rows x columns.
  4. Select the lead you wish to localize in the dropdown menu labeled Label in the upper left corner
  5. Click on the CT to highlight the next contact on that lead, then press Submit to mark its location
    • Alternatively, press the Seeding button to turn on seeding. VoxTool will attempt to extrapolate the locations of the remaing contacts as you select them, incrementing the contact number. Be sure to double-check that the results make sense, as occasionally two contacts will be given the same location
    • Alternatively, add the ends of a strip or depth or the corners of the grid with the Submit button, then press the Interpolate button. VoxTool will attempt to fill in the lead. It may not be completely successful. Pressing Interpolate again may interpolate additional contacts.
  6. Press Add Micro-Contacts to add micro-contacts to any macro/micro leads.
  7. Press the Save as button to save the list of localized contacts. If the checkbox labelled Include Bipolar Pairs is checked, locations will also be saved for the midpoint of each pair of neighboring contacts.

Keyboard Shortcuts:

Button Key Sequence
Load Scan Ctrl-O
Define Leads Ctrl-D
Save As Ctrl-S
Submit (contact panel) S
Submit (lead definition window) S
Delete (contact panel) Delete
Delete (lead definition window) Delete
Confirm (lead definition window) Enter

Other Notes

  • The list of contact names is sorted by lead name, and within each lead by contact number. The Interpolate button does not always assign contact numbers in the expected order, so be sure to double-check that the numbers it has assigned are the ones that you want after using it.

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

voxtool-0.0.1.tar.gz (24.8 kB view details)

Uploaded Source

File details

Details for the file voxtool-0.0.1.tar.gz.

File metadata

  • Download URL: voxtool-0.0.1.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for voxtool-0.0.1.tar.gz
Algorithm Hash digest
SHA256 307bc499c38e8b8f09d5b2cc2625d806f9608e0c66929cb30a7c5f2f849b89f7
MD5 4342a51a04f8ce6b10bfb1af023abf5e
BLAKE2b-256 b9fc369cb5cdddaa7b419faf8540f32942df67164747d8db6e6a0f6e3ed88478

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