- If you are on windows, you will need to set up WSL first (https://learn.microsoft.com/en-us/windows/wsl/install)
- Open powershell
- Run
wsl --install - Restart your machine
- Open wsl
- Clone the repository from GitHub
- Make the setup script executable
chmod +x setup_env.sh - Run the setup_env.sh file
This creates an environment named
./setup_env.shvtin which to run voxTool.
- Activate the conda environment:
conda activate vt - Launch the program:
python launch_pyloc.py
- 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 theUpdatebutton next to it. - If continuing a previous localization: load the existing coordinates
from a JSON coordinate file using the
Load Coordinatesbutton. - Press
Define leadsto set the names, shapes, types, and microcontacts for each implanted lead. Shapes are rows x columns. - Select the lead you wish to localize in the dropdown menu labeled
Labelin the upper left corner - Click on the CT to highlight the next contact on that lead, then press
Submitto mark its location- Alternatively, press the
Seedingbutton 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
Submitbutton, then press theInterpolatebutton. VoxTool will attempt to fill in the lead. It may not be completely successful. PressingInterpolateagain may interpolate additional contacts.
- Alternatively, press the
- Press
Add Micro-Contactsto add micro-contacts to any macro/micro leads. - Press the
Save asbutton to save the list of localized contacts. If the checkbox labelledInclude Bipolar Pairsis checked, locations will also be saved for the midpoint of each pair of neighboring contacts.
| 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 |
- The list of contact names is sorted by lead name, and within each
lead by contact number. The
Interpolatebutton 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.