Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLI for tractometry visualizations (along-tract metrics+glass brain) #3121

Open
wendyfyx opened this issue Mar 14, 2024 · 0 comments
Open

Comments

@wendyfyx
Copy link

wendyfyx commented Mar 14, 2024

This standalone script can be used to create tractometry visualizations with along-tract colors and glass brain. It would very helpful to have this in DIPY for reporting tractometry results such as those from BUAN (@BramshQamar ).

Some functionalities built with FURY API are already indipy_horizon, such as

  1. Visualizing streamline files;
  2. Visualizing binary images with the --roi_images (glass brain given brain mask nifti files);
  3. Visualizing surface files (.gifti);
  4. Saving output image to file.

But we would also like to:

  1. Plot along-tract metrics given .npy files (e.g. pvals.npy from BUAN containing 1D array or list of values for each segment). We could also add support for .txt files. The script currently creates assignment maps with same bundle, but the user could supply two streamline files, one to visualize and one to use as a reference for assignment maps as long as they are co-registered.
  2. Generate colors from matplotlib colormaps, with custom value range (e.g. 0-1 for FA and 1-100 for segment number), and save the color bar to file. I still need to add a binary mode to show non-sig vs. sig results.
  3. Load/save camera angles after users rotate the angle to generate consistent images. In the python script, I used the set_camera function in FURY (this would also be great to have in dipy_horizon). This function currently cannot save the zoom parameter so the output images contain lots of white space, can anyone advise?

dipy_horizon has the --buan, --buan_thr and --buan_highlight flags, but I'm not sure what they do or how to use them. Can any of the above functionalities be merged with these flags? Or to not overload the color-related flags in horizon, we could the move these flag into a new CLI for tractometry specific visualizations?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants