Hey
Assuming that files were named something like:
You could use the "acq" entity to specify this information:
https://bids-specification.readthedocs.io/en/latest/appendices/entities.html#acq
The may be stretching the "technical" definition of what the acq entity is for but I have seen worse.
In any case all studies would have the same "task" but you would still have some sign in the filename that they should expect differences.
HTH
Rémi
--
We are all colleagues working together to shape brain imaging for tomorrow, please be respectful, gracious, and patient with your fellow group members.
---
You received this message because you are subscribed to the Google Groups "bids-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bids-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/2eebcd27-235f-43a5-9aab-4efb191e93f2n%40googlegroups.com.
> the fact that the filename is changed
But the filename DOES anyway change from one subject to another because the subject label changes
> are your saying this detail should not be under task?
Pretty much because then most of the tools that you can use to easy access your data like pybids or bids-matlab will be able to "filter" by task only or by task and acq.
---
Quick example with bids-matlab (pybids can do the same, no
problem) on an example dataset that contains resting state data
with different "acq" entity
https://github.com/bids-standard/bids-examples/tree/master/7t_trt
Index the data
>> layout = bids.layout(fullfile(pwd, 'tests',
'bids-examples', '7t_trt'))
layout =
struct with fields:
pth:
'/home/remi/github/bids/matlab/tests/bids-examples/7t_trt'
description: [1×1 struct]
sessions: {}
participants: [1×1 struct]
phenotype: [1×1 struct]
subjects: [1×66 struct]
root: [0×0 struct]
is_datalad_ds: 0
List data files for one subject for resting state
>> bids.query(layout, 'data', 'task', 'rest', 'sub', '01',
'suffix', 'bold')
ans =
6×1 cell array
{'/home/remi/github/bids/matlab/tests/bids-examples/7t_trt/sub-01/ses-1/func/sub-01_ses-1_task-rest_acq-fullbrain_run-1_bold.nii.gz'}
{'/home/remi/github/bids/matlab/tests/bids-examples/7t_trt/sub-01/ses-1/func/sub-01_ses-1_task-rest_acq-fullbrain_run-2_bold.nii.gz'}
{'/home/remi/github/bids/matlab/tests/bids-examples/7t_trt/sub-01/ses-1/func/sub-01_ses-1_task-rest_acq-prefrontal_bold.nii.gz'
}
{'/home/remi/github/bids/matlab/tests/bids-examples/7t_trt/sub-01/ses-2/func/sub-01_ses-2_task-rest_acq-fullbrain_run-1_bold.nii.gz'}
{'/home/remi/github/bids/matlab/tests/bids-examples/7t_trt/sub-01/ses-2/func/sub-01_ses-2_task-rest_acq-fullbrain_run-2_bold.nii.gz'}
{'/home/remi/github/bids/matlab/tests/bids-examples/7t_trt/sub-01/ses-2/func/sub-01_ses-2_task-rest_acq-prefrontal_bold.nii.gz'
}
List data files for one subject for resting state ONLY for a
given acq
>> bids.query(layout, 'data', 'task', 'rest', 'sub', '01',
'suffix', 'bold', 'acq', 'prefrontal')
ans =
2×1 cell array
{'/home/remi/github/bids/matlab/tests/bids-examples/7t_trt/sub-01/ses-1/func/sub-01_ses-1_task-rest_acq-prefrontal_bold.nii.gz'}
{'/home/remi/github/bids/matlab/tests/bids-examples/7t_trt/sub-01/ses-2/func/sub-01_ses-2_task-rest_acq-prefrontal_bold.nii.gz'}
HTH
Rémi
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/9e350a54-639d-40e4-afbf-1403cdf290f5n%40googlegroups.com.
IMO if you change what the participant should be doing during the acquisition, it's a different task. If you change what the scanner is doing, it's a different acq.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/9e68bde3-309d-48f4-b2e0-7800f77bf77fn%40googlegroups.com.
Another food for thought: If a particular condition covers all the session, you may consider dividing your dataset into sessions; especially if the same participants underwent both conditions. However, if different participants were included in different sessions, then you may rather create two separate datasets, because the number of use cases combining them might be very limited.
Kind regards,
Tibor
Dr Tibor Auer, MD, PhD, FHEA
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/MN2PR04MB68306A4819E892DD19443934E6C12%40MN2PR04MB6830.namprd04.prod.outlook.com.
You received this message because you are subscribed to a topic in the Google Groups "bids-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bids-discussion/DFE495axhL0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bids-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/bbd84e4d-8fab-4c65-ae5f-788b05dd6edfn%40googlegroups.com.
Hi,
For my 2 cents, it is a different fMRI task and calls for a slightly different “fMRI task information” in the task-resteyesopen_bold.json or task-resteyesclosed_bold.json which you can place at the top of the BIDS tree for lower files to inherit (thanks to the inheritance principle).
https://bids-specification.readthedocs.io/en/stable/common-principles.html#the-inheritance-principle
P.S. I think Rémi was just advocating for “some” difference in filename to annotate the fact that they are not equivalent “tasks” or “acquisitions” (in the broader sense of the term). Rémi, please do correct me if I’m wrong and you felt more strongly about using acq- for a different task-.
Warm regards,
Eric Earl [C]
Scientist
NIMH IRP Data Science & Sharing Team
Google Scholar Profile
https://scholar.google.com/citations?user=8IwbaOcAAAAJ
Book a meeting
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/MN2PR04MB68306A4819E892DD19443934E6C12%40MN2PR04MB6830.namprd04.prod.outlook.com.
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and are confident the content is safe.
You received this message because you are subscribed to a topic in the Google Groups "bids-discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/bids-discussion/DFE495axhL0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to bids-discussi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/c4e234b5-05aa-42e2-a02a-81f544bde6e5n%40googlegroups.com.
It seems to me that there should be three datasets:
Kind regards,
Tibor
Dr Tibor Auer, MD, PhD, FHEA
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/CAAGp_pxLkW%2BgmRk8XBU6FqP1EhVxG4mBNGs7j6Tjm49MRn%2Bq%2BA%40mail.gmail.com.
FWIW, I'm not sure if this already exists, but this points to the benefits of a `diff` BIDS app that would identify and summarize acquisition parameter and task condition fields that are different within a study. That way differences, like the ones discussed here could be brought to the surface for data-users even if the data-sharers didn't highlight them using the README or file names.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/1573a38f-05a2-4a71-9524-d949f5ecf38bn%40googlegroups.com.
On Jun 18, 2024, at 5:33 PM, Dan Lurie <danj...@gmail.com> wrote:
You don't often get email from danj...@gmail.com. Learn why this is important
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/972d008e-1ac8-4be0-8e6f-6bc27dced325%40Spark.