ANTsX / ANTs

Advanced Normalization Tools (ANTs)
Apache License 2.0
1.14k stars 374 forks source link

Multivariate template construction with > 10 modalities #1731

Closed ntustison closed 3 hours ago

ntustison commented 2 months ago

Just ran into this issue and decided to post to get some feedback. With the adopted naming convention, when we ls the set of images for a particular modality (e.g., here), the files for modality 1 get listed with 10. An immediate solution seems to be adding something like an underscore in the base filename after the modality index but just wanted to see if there was an alternative preferred approach.

cookpa commented 2 months ago

An underscore seems like a sensible quick fix, but it would be nice to have more explicit naming, something like {prefix}_templatemodality-{i} or {prefix}_input-{j}modality-{i} for input images. The trailing underscore prevents the same problem with 1Warp.nii.gz getting joined to {i}.

ntustison commented 2 months ago

Thanks @cookpa . Sounds good. I'll work on putting together a pull request.