Closed rohanbanerjee closed 11 months ago
Another minor related issue to the subjects.csv
file is related to the pathname. The pathname of the template.mnc
gets written as /derivatives/template//template_mask.mnc
. The extra \
has to be removed and for that the value the method create_mask_template
returns has to be changed.
Description:
The
generate_template.py
script needs thesubjects.csv
file in order to generate the template. https://github.com/neuropoly/template/blob/a7915f4ccfa075a5d31f4ea84bb9761d42710e9e/generate_template.py#L14This
subjects.csv
file is created as a part of thepreprocess_normalize.py
script. https://github.com/neuropoly/template/blob/a7915f4ccfa075a5d31f4ea84bb9761d42710e9e/preprocess_normalize.py#L650Current behaviour:
As per the current
preprocess_normalize.py
script, thesubjects.csv
gets created under the last subjects derivatives folder, specifically:PARENT_FOLDER/DATASET_NAME/derivatives/sct_straighten_spinalcord/LAST_SUBJECT_FOLDER/subjects.csv
Expected behaviour:
The
subjects.csv
should be created under thederivatives/template/
for easier access and less confusion.