--
You received this message because you are subscribed to the Google Groups "The Brain Imaging Data Structure (BIDS) discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bids-discussi...@googlegroups.com.
To post to this group, send email to bids-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/cbfe9e32-d12d-4489-ba10-247d9c79a9d3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to bids-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to bids-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/3dc42325-69bb-43cf-b143-4b5cc884c885%40googlegroups.com.
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-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to bids-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/bc9863c8-7d92-48b6-a504-cc478802c183%40googlegroups.com.
Template:
sub-<participant_label>/[ses-<session_label>/]
fmap/
sub-<label>[_ses-<session_label>][_acq-<label>]_dir-<index>[_run-<run_index>]_epi.nii[.gz]
sub-<participant_label>/[ses-<session_label>/]
fmap/
sub-<label>[_ses-<session_label>][_acq-<label>]_dir-<index>[_run-<run_index>]_epi.json
This technique combines two or more Spin Echo EPI scans with different phase encoding directions. In such a case, the phase encoding direction is specified in the corresponding JSON file as one of: “i”, “j”, “k”, “i-”, “j-, “k-”. For these differentially phase encoded sequences, one also needs to specify the Total Readout Time defined as the time (in seconds) from the center of the first echo to the center of the last echo (see here and here how to calculate it). For example
{
"PhaseEncodingDirection": "j-",
"TotalReadoutTime": 0.000095,
"IntendedFor": "func/sub-01_task-motor_bold.nii.gz"
}
Each dir-<index> should correspond to a single unique direction. Each file should be a 3D volume. If there are instances of the same phase encoding direction acquired multiple times with the same scanning parameters (for example for different tasks) the optional run-<run_index> should be used to distinguish them. To indicate which run is intended to be used with which functional or diffusion scan the IntendedFor field in the JSON file should be used.
+1
What would be the valid values for “dir” in the filename? I would not call it “index”, because they do not code a position in a list but rather the direction itself, if I understand correctly.
Vale,
Tibor
Auer, Tibor M.D. Ph.D.
MRC Cognition and Brain Sciences Unit
15 Chaucer Road
Cambridge
CB2 7EF
United Kingdom
Phone/Work: +44-(0)1223-273613
Thanks! Fixed.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/bc9863c8-7d92-48b6-a504-cc478802c183%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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 post to this group, send email to
bids-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/CAAQzouP-YPpkse7oHKNiLdR_5nvO-isJTOeToHYJQU5HqKP8uA%40mail.gmail.com.
Thanks! Fixed.
To unsubscribe from this group and stop receiving emails from it, send an email to bids-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to bids-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/bc9863c8-7d92-48b6-a504-cc478802c183%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to bids-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/CAAQzouP-YPpkse7oHKNiLdR_5nvO-isJTOeToHYJQU5HqKP8uA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
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-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to bids-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/670F727F5995114F973CBFCD758B5C0212512C0C%40wsr-ex-101.mrc-cbsu.local.
$ ls ../../data/sub-PANDA025/fmap/
sub-PANDA025_acq-dwidir98_dir-AP_run-01_epi.json sub-PANDA025_acq-func_dir-AP_run-01_epi.json
sub-PANDA025_acq-dwidir98_dir-AP_run-01_epi.nii.gz sub-PANDA025_acq-func_dir-AP_run-01_epi.nii.gz
sub-PANDA025_acq-dwidir98_dir-PA_run-02_epi.json sub-PANDA025_acq-func_dir-AP_run-03_epi.json
sub-PANDA025_acq-dwidir98_dir-PA_run-02_epi.nii.gz sub-PANDA025_acq-func_dir-AP_run-03_epi.nii.gz
sub-PANDA025_acq-dwidir99_dir-AP_run-03_epi.json sub-PANDA025_acq-func_dir-PA_run-02_epi.json
sub-PANDA025_acq-dwidir99_dir-AP_run-03_epi.nii.gz sub-PANDA025_acq-func_dir-PA_run-02_epi.nii.gz
sub-PANDA025_acq-dwidir99_dir-PA_run-04_epi.json sub-PANDA025_acq-func_dir-PA_run-04_epi.json
sub-PANDA025_acq-dwidir99_dir-PA_run-04_epi.nii.gz sub-PANDA025_acq-func_dir-PA_run-04_epi.nii.gz
note that the acq and dir labels are used purely for semantic reasons, not to encode parameters. while the bids search tools are being built, this provides a quick mental route. however, the code is written to look at the json's and consider the intendedFor parameter to know which functional or diffusion runs these apply to.
since fieldmaps are sensitive to shimming and which dicom series have the same shims are hard to determine from the dicoms (if anyone knows, please let me know), we are currently manually noting this as a different dictionary and using it to fill the intendedFor parameter.
a search tool will eventually have to support grabbing files in both directions: given a run tell me where i can get fieldmap info from or given fieldmap files, what other things i can apply this to.
cheers,
satra
--
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-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to bids-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/6dd0d79b-cc2c-4def-8b48-d4aa1190515c%40googlegroups.com.
Personally I'd be in favour of retaining the direction indices in the filename. On top of the concern that people may rely on the filename rather than the JSON entries:
- The phase encoding direction is constrained to lie upon an image axis; whereas LR / AP / IS are 'anatomical directions'. For a heavily off-axis acquisition, where the header transform is far from identity (even with axis permutations / flips), the appropriate anatomical designation for an image axis may become ambiguous. LR / AP / IS are also specific to human brain imaging: animal imaging (I think) more commonly uses dorsal/ventral.
- There was an example somewhere (don't recall whether it was in a publication or in the FSL documentation somewhere) where two EPI images with the same phase encoding direction but different bandwidths were used to estimate the inhomogeneity field. Even if it's not a likely scenario, this contrast would not be sufficiently encoded in the filename: You'd have to label them as different 'runs' of the same direction, which would therefore erroneously appear to a user as 'repeats of the same phase encoding acquisition'.
- The biggest delay in getting my BIDS app working has been EPI susceptibility distortion correction. Because a priori the script doesn't know what type of DWI acquisition / EPI field-mapping acquisition has taken place, this needs to be determined based on the images (& associated JSONs) present; which means importing all available field-mapping image data and then figuring out what the phase encoding contrast is. In this case, it makes more sense to be looping through images that have different 'direction' indices and then figuring out what to do with them based on the data, rather than having to e.g. glob your way through the directory contents.
Rob
To unsubscribe from this group and stop receiving emails from it, send an email to bids-discussi...@googlegroups.com.
To post to this group, send email to bids-di...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/6dd0d79b-cc2c-4def-8b48-d4aa1190515c%40googlegroups.com.
--
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-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to bids-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/d5c2140f-2452-4178-95ec-bcb0fa8e611c%40googlegroups.com.
> Of course - but no one is claiming this label should be used to determine the phase encoding direction.
Sure; but for the sake of another example: the phase encoding direction indicated in the filename could be outright wrong, and the validator would have no choice but to label the dataset as BIDS-conforming, since that field only needs to be unique, not correct. So by trying to make the file names more user-readable, it may just introduce a potential source of error if a user manipulates that data manually (which may not be possible in your BIDS-Apps interface, but BIDS-Apps is not the only use case of BIDS).
> Sorry I don't quite follow. Again - the idea isn't to encode any parameters in the filename.
An example EPI field-mapping experiment would be one volume with A>>P phase encode direction and 0.1s readout time, and one volume with P>>A phase encode direction and 0.1s readout time. So in this case, your file naming might be "sub-01_dir-AP_epi.nii.gz" and "sub-01_dir-AP_epi.nii.gz", where the old naming would have been "sub-01_dir-1_epi.nii.gz" and "sub-01_dir-2_epi.nii.gz". But now consider if your acquisition protocol consists of one volume with A>>P phase encode direction and 0.1s readout time, and one volume also with A>>P phase encode direction but 0.2s readout time. These data are perfectly valid for estimating the inhomogeneity field; but how would you name them, given the phase encoding direction is the same? You'd likely have to resort to "sub-01_dir-AP_run-1_epi.nii.gz" and "sub-01_dir-AP_run-2_epi.nii.gz". But now those two images look like two 'runs' of the same 'protocol', when in fact the protocol differs between the two due to the varying readout time. Again, it's not a likely realistic use case, and in all cases they're just file names and the JSON data would need to be used; I'm just using it to highlight how permitting anything other than unique integer identifiers may only introduce potential for errors.
As an aside: When using a web interface (or any equivalent script) to store raw data as BIDS, I would imagine that keeping an integer counter and naming uploaded fmap images based on that counter would be easier and more robust than attempting to assign a unique name to each image based on phase encoding direction. So permitting deviations from that 'standard' is effectively inviting users to manually edit their BIDS file names for their own readability, which may be a bad precedent to set: Just because you can, doesn't mean you should.
I'd be content with the change; just raising the counter argument since I think it's what I'd personally opt for if it were my choice alone.
Rob
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/d5c2140f-2452-4178-95ec-bcb0fa8e611c%40googlegroups.com.
--
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-discussion+unsubscribe@googlegroups.com.
To post to this group, send email to bids-discussion@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bids-discussion/11f3776c-8d09-4e8d-aef3-6a794b55cbe4%40googlegroups.com.