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

Same suffix name is used to fetch and write labels #89

Open
sandrinebedard opened this issue Apr 17, 2024 · 1 comment
Open

Same suffix name is used to fetch and write labels #89

sandrinebedard opened this issue Apr 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@sandrinebedard
Copy link
Member

Description

When I specify the suffix for the labels, for example -suffix-files-seg _seg, then it will search for the labels with the suffix _seg to correct, but it will also use that suffix for the corrected label name written in derivatives.

Since SCT adds the suffix _seg automatically, and the correct name for the spinal cord segmentation is SC-label_seg it is not possible to have this option:

Input: _seg
Output: _SC-label_seg

@sandrinebedard sandrinebedard added the bug Something isn't working label Apr 17, 2024
@valosekj
Copy link
Member

but it will also use that suffix for the corrected label name written in derivatives.

Correct, this is the current behaviour. The "input suffix" is also used as the "output suffix".

To fix the output suffixes, I cuurenly use for loop 😅 For example:

for file in sub*/anat/*seg*;do echo mv $file ${file/_seg/_SC-label_seg};done

Input: _seg
Output: _SC-label_seg

Agree! Allowing the script to do something like this would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants