I was able to avoid the problem mentioned here using the -f flag and using individually the different labels.
Nevertheless, after following this other post about creating the hemicord, once I arrive to the sct_extract_metrics, i found myself with the same problem, but now I can’t (or I don’t know how to) use the -f flag if I want to obtain the results using the labels 56 and 57.
extop@:/aran/CNS_111/Hemicord_Julien$ sct_extract_metric -i n4_CNS_111.nii -l 56 -- Spinal Cord Toolbox (dev) Traceback (most recent call last): File "/home/extop/sct_dev/scripts/sct_extract_metric.py", line 425, in <module> perlevel=perlevel, verbose=verbose, combine_labels=combine_labels) File "/home/extop/sct_dev/scripts/sct_extract_metric.py", line 289, in main map_cluster in map_clusters].index(True)) ValueError: True is not in list
Hopefully the solution is “use method -wa” or another one.
If you confirm that you can create the hemicord and use sct_extract_metric with the -l 56, I will try some other things on my end.
PD: is there a written document where we can refresh how to write properly (the ~~~ for code, the ** for bold, etc)?