Dear Jure,
Thank you for your quick response.
Indeed, I’ve just started using QUNEX and haven’t yet had the chance to explore all its functionalities. For now, our goal is to preprocess T1w and T2w images and generate myelin maps with transmit field bias correction, following the recent implementation.
We are conducting a longitudinal study involving children aged 5–8, with a planned total of over 300 MRI sessions (currently ~150 completed). Our data is organized according to the BIDS specification, as in the following example:
KJ23a/sub-KJ007/
└── ses-01/
├── anat/
│ ├── sub-KJ007_ses-01_T2w.json
│ ├── sub-KJ007_ses-01_T2w.nii.gz
│ ├── sub-KJ007_ses-01_run-01_T1w.json
│ ├── sub-KJ007_ses-01_run-01_T1w.nii.gz
│ ├── sub-KJ007_ses-01_run-02_T1w.json
│ ├── sub-KJ007_ses-01_run-02_T1w.nii.gz
│ ├── sub-KJ007_ses-01_run-03_T1w.json
│ └── sub-KJ007_ses-01_run-03_T1w.nii.gz
├── fmap/
│ ├── sub-KJ007_ses-01_acq-hcp_dir-AP_epi.json
│ ├── sub-KJ007_ses-01_acq-hcp_dir-AP_epi.nii.gz
│ ├── sub-KJ007_ses-01_acq-hcp_dir-PA_epi.json
│ ├── sub-KJ007_ses-01_acq-hcp_dir-PA_epi.nii.gz
│ ├── sub-KJ007_ses-01_acq-std_dir-AP_epi.json
│ ├── sub-KJ007_ses-01_acq-std_dir-AP_epi.nii.gz
│ ├── sub-KJ007_ses-01_acq-std_dir-PA_epi.json
│ └── sub-KJ007_ses-01_acq-std_dir-PA_epi.nii.gz
└── func/
├── sub-KJ007_ses-01_task-alicja1_run-01_bold.json
├── sub-KJ007_ses-01_task-alicja1_run-01_bold.nii.gz
├── sub-KJ007_ses-01_task-alicja1_run-02_bold.json
├── sub-KJ007_ses-01_task-alicja1_run-02_bold.nii.gz
├── sub-KJ007_ses-01_task-alicja2_bold.json
├── sub-KJ007_ses-01_task-alicja2_bold.nii.gz
├── sub-KJ007_ses-01_task-rest_bold.json
├── sub-KJ007_ses-01_task-rest_bold.nii.gz
├── sub-KJ007_ses-01_task-rest_sbref.json
└── sub-KJ007_ses-01_task-rest_sbref.nii.gz
As you may notice, I haven’t yet added the RF MAP scans to the repository — these are two files: the magnitude and phase maps.
So far, I’ve been running QUNEX commands manually for individual subjects. Here’s what I’ve done:
qunex_container import_bids \
--sessionsfolder="${STUDY_FOLDER}/sessions" \
--inbox="${RAW_DATA}" \
--action='copy' \
--archive='leave' \
--overwrite=no \
--fileinfo=full \
--container="${QUNEX_CONTAINER}"
At this stage, I had to manually edit /sessions/session_hcp.txt
to add :T1w
, as it wasn’t automatically labeled.
Then I proceeded with the preprocessing steps:
qunex_container hcp_pre_freesurfer \
--sessionsfolder="${STUDY_FOLDER}/sessions" \
--batchfile="${STUDY_FOLDER}/processing/batch.txt" \
--container="${QUNEX_CONTAINER}" \
--hcp_avgrdcmethod=NONE
This was followed by the FreeSurfer and post-FreeSurfer steps — all of which ran very smoothly.
I then attempted the transmit field bias correction:
qunex_container hcp_transmit_bias_individual \
--sessionsfolder="${STUDY_FOLDER}/sessions" \
--batchfile="${STUDY_FOLDER}/processing/batch.txt" \
--container="${QUNEX_CONTAINER}" \
--hcp_b1tx_magnitude=/home/bkossows/qunex/b1tx/mag \
--hcp_b1tx_phase=/home/bkossows/qunex/b1tx/pha \
--hcp_group_corrected_myelin=/home/bkossows/qunex/Partial.MyelinMap_GroupCorr_MSMAll.32k_fs_LR.dscalar.nii \
--hcp_transmit_mode=B1Tx
This last step was just a test and did not succeed. I hope this message clarifies what I am trying to accomplish, and I would greatly appreciate any suggestions you have for improving the pipeline.
Best regards,
Bartosz Kossowski