Closed valosekj closed 3 years ago
Sounds like a good idea @valosekj
👍 thanks, because no effective yaml parser exists in bash, I will rewrite the script into python.
I have started to think about python implementation of extract_normative_metrics.sh and I realized that I call/run this script using sct_run_batch.py script to allow parallel run across whole multi-subject dataset.
I am now not sure, if the sct_run_batch.py
allows to run also python scripts. Because, in its help, only shell script is documented:
you could do something like this:
sct_run_batch -script my_shell_script.sh
I am dealing with thought, if not extend extract_normative_metrics.sh script to allow extraction of qMRI metrics from arbitrary ROI/label based on PAM50 atlas. So far, the script allows extraction only following ROI: https://github.com/sct-pipeline/normative-metrics/blob/50b99e50810f0e22b9e43370cbd76e9d6b17dda2/scripts/extract_normative_metrics.sh#L36-L43
Requested ROIs/labels could be define inside yaml file and passed to the script as a input. User could choose from ROIs/labels based on PAM50 atlas: