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

Add human statement to emphasize that _desc is the last entity #1915

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yarikoptic
Copy link
Collaborator

@yarikoptic yarikoptic commented Aug 29, 2024

Partially addresses #1895

attn @arokem

Copy link

codecov bot commented Aug 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.23%. Comparing base (77ad779) to head (573a4c6).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1915   +/-   ##
=======================================
  Coverage   87.23%   87.23%           
=======================================
  Files          16       16           
  Lines        1410     1410           
=======================================
  Hits         1230     1230           
  Misses        180      180           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@effigies effigies added this to the 1.10.1 milestone Aug 29, 2024
@arokem
Copy link
Collaborator

arokem commented Sep 3, 2024

Thanks! I don't think this quite covers the issue raised in #1895 though, because this points to a specific example, without stating explicitly that this is the convention for other cases as well. Does that make sense?

@yarikoptic
Copy link
Collaborator Author

Good observation @arokem ! our problem is that we do not really introduce _desc anywhere before. For now I just adjusted original description that it doesn't really close that issue, but I think for this could be a quick enhancement.

@effigies
Copy link
Collaborator

I realized the other day that I now wish that we had put hemi- last. e.g., this would be preferable:

sub-01_desc-custom_hemi-L_white.surf.gii
sub-01_desc-custom_hemi-R_white.surf.gii
sub-01_desc-freesurfer_hemi-L_white.surf.gii
sub-01_desc-freesurfer_hemi-R_white.surf.gii

to

sub-01_hemi-L_desc-custom_white.surf.gii
sub-01_hemi-L_desc-freesurfer_white.surf.gii
sub-01_hemi-R_desc-custom_white.surf.gii
sub-01_hemi-R_desc-freesurfer_white.surf.gii

It seems to me that desc- is not a grouping entity, like echo- or part- (or hemi-) and generally we probably want grouping entities toward the back and distinguishing entities toward the front.

So if we have something like components and a mixing matrix that are distinguished by entity, we might prefer:

sub-01_task-rest_desc-ICA_<key>-components_<suffix>.<ext>
sub-01_task-rest_desc-ICA_<key>-mixing_<suffix>.<ext>

This is not grounded in a particular BEP, but just a thing to consider before we codify this.

@yarikoptic
Copy link
Collaborator Author

I think your motivation @effigies relates to fresh

as a more generic rule of entities composition.

generally we probably want grouping entities toward the back and distinguishing entities toward the front.

well, sub- is a very groupping entity ;) overall it all depends on the case and there might be no universally best order. May be could be in part or fully addressed as part of the

as that one already would require change of the order of entities in the folders/filenames. Hence could as well be extended to the customization of entities to fit "the best" order.

@effigies
Copy link
Collaborator

To be clear, by "grouping entity", I mean one that can be varied without changing the overall meaning of the files. Different parts or echos indicate multiple files that should be considered together. Different tasks or subs need separate consideration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants