brain-microstructure-exploration-tools / abcd-registration-experiments

experiments with diffusion image registration
2 stars 1 forks source link

Use modules instead of scripts in `pairwise_evaluation_ants` #15

Closed ebrahimebrahim closed 1 month ago

ebrahimebrahim commented 2 months ago

In pairwise_evaluation_ants we have scripts calling scripts.

We should minimize our use of subprocess.open and instead create modules that we import and use.

Most things don't need to be scripts but can be modules containing functions that achieve the various tasks

This should pay off later by (a) giving us a more modular API with which to create the evaluation scripts for the other registration methods and (b) giving us more informative tracebacks for debugging.

Some things, like calls to mrtrix or FSL, need to use subprocess and that's okay.

But things we write ourselves don't need to. TractSeg also has a python interface.