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

[MISC] consistently list filename templates; ext --> extension; _photo.jpg --> _photo.<extension> #1458

Merged
merged 8 commits into from Apr 7, 2023

Conversation

sappelhoff
Copy link
Member

@sappelhoff sappelhoff commented Mar 30, 2023

closes #1456

NOTE: see update below this post

Looking at this more closely, I was a bit surprised to see "channels" as a potential suffix in the filename templates for MOTION ... but not for EEG.

This first commit is to try out what works and what doesn't: adding photo and coordsystem as well (see EEG spec: https://bids-specification.readthedocs.io/en/latest/modality-specific-files/electroencephalography.html)

Maybe we need to discuss this in more depth.

This is how it would look with the present changes: https://bids-specification--1458.org.readthedocs.build/en/1458/modality-specific-files/electroencephalography.html

... it looks good to me, it picks up all the correct extensions.

cc @Remi-Gau

@codecov
Copy link

codecov bot commented Mar 30, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (4e38968) 87.90% compared to head (9673d88) 87.90%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1458   +/-   ##
=======================================
  Coverage   87.90%   87.90%           
=======================================
  Files          14       14           
  Lines        1273     1273           
=======================================
  Hits         1119     1119           
  Misses        154      154           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sappelhoff
Copy link
Member Author

update: okay I remembered now that the file templates are listed in the modality sections -- not all at the top:

see e.g., this screenshot:

grafik

But that rather means that we'd have to adjust this for NIRS and MOTION ... just so that it's consistent across modalities. WDYT?

I also fixed:

@sappelhoff sappelhoff changed the title [FIX] incomplete filename templates [MISC] consistently list filename tamples; ext --> extension; _photo.jpg --> _photo.<extension> Mar 30, 2023
@Remi-Gau
Copy link
Collaborator

Note (maybe for another PR):

  • the filename template for MEG mentions calibration and crosstalk files but there is not a word about them in the text below the filename template. We should somehow add a link to their section in the appendix.

@Remi-Gau Remi-Gau changed the title [MISC] consistently list filename tamples; ext --> extension; _photo.jpg --> _photo.<extension> [MISC] consistently list filename templates; ext --> extension; _photo.jpg --> _photo.<extension> Mar 30, 2023
Copy link
Collaborator

@Remi-Gau Remi-Gau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove:

  • channels
  • optodes
  • coordsystem
    from the main filename templates of the NIRS given that they have their own section.

@sappelhoff
Copy link
Member Author

@Remi-Gau I think you were looking at an outdated commit, I already addressed your requests in 96eb6d6

@Remi-Gau
Copy link
Collaborator

@Remi-Gau I think you were looking at an outdated commit, I already addressed your requests in 96eb6d6

indeed

@Remi-Gau Remi-Gau dismissed their stale review March 30, 2023 15:12

out of date

@sappelhoff
Copy link
Member Author

the filename template for MEG mentions calibration and crosstalk files but there is not a word about them in the text below the filename template. We should somehow add a link to their section in the appendix.

I added it in e809a9c

effigies
effigies previously approved these changes Mar 30, 2023
@effigies
Copy link
Collaborator

Actually, looking at motion, is tracksys required for events.tsv? And is it forbidden for physio/stim.tsv.gz?

@sappelhoff
Copy link
Member Author

cc @sjeung @JuliusWelzel for Chris' question: #1458 (comment)

src/schema/rules/files/raw/task.yaml Outdated Show resolved Hide resolved
@Remi-Gau
Copy link
Collaborator

the filename template for MEG mentions calibration and crosstalk files but there is not a word about them in the text below the filename template. We should somehow add a link to their section in the appendix.

I added it in e809a9c

Nice !!

@sappelhoff sappelhoff dismissed Remi-Gau’s stale review March 31, 2023 08:37

adressed changes, thanks for the fix Remi.

@sappelhoff
Copy link
Member Author

Actually, looking at motion, is tracksys required for events.tsv? And is it forbidden for physio/stim.tsv.gz?

The spec text suggests it's optional for events.

Such an events file name SHOULD include the `tracksys` key and looks like `sub-<label>[_ses-<label>]_task-<label>[_acq-<label>]_tracksys-<label>[_run-<index>]_events.tsv`.

I guess it should be optional for physio/stim as well then 🤔

@Remi-Gau
Copy link
Collaborator

Actually, looking at motion, is tracksys required for events.tsv? And is it forbidden for physio/stim.tsv.gz?

The spec text suggests it's optional for events.

Such an events file name SHOULD include the `tracksys` key and looks like `sub-<label>[_ses-<label>]_task-<label>[_acq-<label>]_tracksys-<label>[_run-<index>]_events.tsv`.

I guess it should be optional for physio/stim as well then thinking

To store events alongside motion data when there are multiple tracking systems simulatenously in use, it is RECOMMENDED to designate a tracking system to the events file. Such an events file name SHOULD include the tracksys key and looks like sub-<label>[_ses-<label>]_task-<label>[_acq-<label>]_tracksys-<label>[_run-<index>]_events.tsv.

Actually made me notice a couple of things:

  • the example in the text does not have the entities in the right order.

It should be:

sub-<label>[_ses-<label>]_task-<label>_tracksys-<label>[_acq-<label>][_run-<index>]_events.tsv

and not

sub-<label>[_ses-<label>]_task-<label>[_acq-<label>]_tracksys-<label>[_run-<index>]_events.tsv

  • if the track-sys is optional for events then the filename template in the text and in the text must be changed to reflect that:

sub-<label>[_ses-<label>]_task-<label>[_tracksys-<label>][_acq-<label>][_run-<index>]_events.tsv

  • if the track-sys is required then the filename templates for events are correct but the SHOULD has to be turned into a MUST.

@sappelhoff
Copy link
Member Author

True. I think it'd be good if we could render inline filename templates using the schema as well ... that'd prevent this sort of error

@effigies effigies dismissed their stale review March 31, 2023 18:02

Waiting on determination of required/optional status of tracksys in events/physio/stim

@sjeung
Copy link
Collaborator

sjeung commented Apr 4, 2023

Hi @sappelhoff @Remi-Gau @effigies

Actually, looking at motion, is tracksys required for events.tsv? And is it forbidden for physio/stim.tsv.gz?

The spec text suggests it's optional for events.

Such an events file name SHOULD include the `tracksys` key and looks like `sub-<label>[_ses-<label>]_task-<label>[_acq-<label>]_tracksys-<label>[_run-<index>]_events.tsv`.

I guess it should be optional for physio/stim as well then thinking

To store events alongside motion data when there are multiple tracking systems simulatenously in use, it is RECOMMENDED to designate a tracking system to the events file. Such an events file name SHOULD include the tracksys key and looks like sub-<label>[_ses-<label>]_task-<label>[_acq-<label>]_tracksys-<label>[_run-<index>]_events.tsv.

Actually made me notice a couple of things:

  • the example in the text does not have the entities in the right order.

It should be:

sub-<label>[_ses-<label>]_task-<label>_tracksys-<label>[_acq-<label>][_run-<index>]_events.tsv

and not

sub-<label>[_ses-<label>]_task-<label>[_acq-<label>]_tracksys-<label>[_run-<index>]_events.tsv

  • if the track-sys is optional for events then the filename template in the text and in the text must be changed to reflect that:

sub-<label>[_ses-<label>]_task-<label>[_tracksys-<label>][_acq-<label>][_run-<index>]_events.tsv

  • if the track-sys is required then the filename templates for events are correct but the SHOULD has to be turned into a MUST.

Hi!
Sorry about the somewhat delayed feedback.

First of all, the tracksys entity is optional for both physio and stim, as well as events.

And thanks Remi for spotting the order error, that is certainly a mistake in the text and it has to be updated to

sub-<label>[_ses-<label>]_task-<label>[_tracksys-<label>][_acq-<label>][_run-<index>]_events.tsv

@sappelhoff
Copy link
Member Author

@effigies @Remi-Gau @sjeung @JuliusWelzel from my side, this is now ready for one more review and a potential merge afterwards

Copy link
Collaborator

@Remi-Gau Remi-Gau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go for me.
thanks @sappelhoff for leading this

@sappelhoff sappelhoff merged commit af6fe73 into bids-standard:master Apr 7, 2023
22 checks passed
@sappelhoff sappelhoff deleted the motion/physio+stim branch April 7, 2023 19:10
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.

need to add physio/stim to Motion
5 participants