-
Notifications
You must be signed in to change notification settings - Fork 125
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
Non BIDS-compliant suffixes when using --bids flag #520
Comments
Sorry for the delay! I was about to release 0.10.0 and spotted that you referenced #485 as a possible reason. (edit: well done on diagnosis and cross-referencing, thank you!)
they aren't because we do not know how those files differ -- what does the heuristic you use (which one?) do/tell them to be named? what is the difference between them -- just a |
@yarikoptic thanks for the response! I'm a bit confused though, are you saying the heudiconvXXX suffixes should only appear when the heuristic doesn't distinguish between two images and doesn't include a |
Did you have two sequences with the same protocol name? Edit: don't remember the meaning of item variable in that format expression. You can check out how we deal with duplicates in reproin heuristic. May be if you shared your heuristic I could get a better idea |
If it was a single sequence, such had eg original + filtered or otherwise processed one, then your heuristic needs to pay attention to such processed/derivative files |
@yarikoptic I uploaded the full heuristic here: https://gist.github.com/Terf/89975b5aaaac65217c6204b886fae975 Thanks for taking a look! The two sequences do have the same protocol name, so I'm looking for a way to get the output filenames to be identical except for an incremented run number. |
will have a look.
that is what you are to do in your heuristic. once again -- can have a look at reproin heuristic on that. edit: you could also use reproin heuristic, just remap your protocol names into reproin (with |
Summary
After converting a large clinical dataset with heudiconv I'm seeing many files with odd suffixes.
Some files have a heudiconvXXX suffix, which appears to be logic added in v0.9.0, as you can see the difference between 0.8.0 and 0.9.0:
I ended up renaming these files to remove the suffix (incrementing the run number if that caused a collision with another file). But I’m wondering if there’s a reason heudiconv shouldn’t do this itself, as when using the --bids flag all output should be BIDS-compliant, but @yarikoptic said this was “a feature which would ease troubleshooting”. What do the heudiconvXXX suffixes indicate, and how should I rename them to be BIDS-compliant?
I also have images with numerical suffixes e.g.
FLAIR1
andFLAIR2
as well as this_EQ
suffix, but can’t track down where in the heudiconv source code those are added, so I’m wondering what they indicate and how I should deal with them as well.Platform details:
Choose one:
The text was updated successfully, but these errors were encountered: