Comments on: BIDS Tutorial Series: Automate the Introductory Walkthrough https://reproducibility.stanford.edu/bids-tutorial-series-part-1b/?utm_source=rss&utm_medium=rss&utm_campaign=bids-tutorial-series-part-1b Thu, 24 Oct 2019 01:40:00 +0000 hourly 1 https://wordpress.org/?v=6.7.1 By: Franklin Feingold https://reproducibility.stanford.edu/bids-tutorial-series-part-1b/#comment-4302 Sat, 17 Nov 2018 00:46:46 +0000 http://reproducibility.stanford.edu/?p=529#comment-4302 Hi Paulina,

Thank you for your question! It is possible to convert your files to the BIDS format from the nifti files. (for the .par and .rec files they may be converted to nifti as well. I found this question that may explain how to do that – https://www.nitrc.org/forum/message.php?msg_id=11974). Once you have the nifti this tutorial shows how to rename and structure those niftis to follow the BIDS format. For example in anatomicals this would be following step 3 and 4. This may require writing a script that changes your current naming and structure to BIDS. Step 3 and 4 provide one way this may be done.

Thank you,
Franklin

]]>
By: Paulina https://reproducibility.stanford.edu/bids-tutorial-series-part-1b/#comment-4287 Thu, 15 Nov 2018 18:46:19 +0000 http://reproducibility.stanford.edu/?p=529#comment-4287 Hi Franklin,

I have no access to original dicom files, only nifti, .par, and .rec files. Is it possible to convert my files to BIDS format (automated way preferably) at this point? If it’s possible, what would be the way to go about this?

Thanks!
Paulina

]]>
By: Franklin Feingold https://reproducibility.stanford.edu/bids-tutorial-series-part-1b/#comment-3083 Mon, 17 Sep 2018 18:09:33 +0000 http://reproducibility.stanford.edu/?p=529#comment-3083 Hi Rachel,
Thank you for your question. To confirm, your dicom file structure should look like Dicom/2475376/anat/*.dcm . It may appear that the anat folder is missing.
The dicom file structure is shown in part 1A of this tutorial series: http://reproducibility.stanford.edu/bids-tutorial-series-part-1a/. For example, at step 5 I showed the file structure for the anatomical scan. The script is going into each scan sequence dicom directory. This is being done in the last section of the code you posted under the “#Only convert the Dicom folder anat” comment. The for loop is running through the anat folder to only convert the anatomical scan.

]]>
By: Rachel https://reproducibility.stanford.edu/bids-tutorial-series-part-1b/#comment-2939 Tue, 28 Aug 2018 14:32:36 +0000 http://reproducibility.stanford.edu/?p=529#comment-2939 Hi, I have a question about pathway in this script:

####Defining pathways
toplvl=/Users/franklinfeingold/Desktop/NKI_script
dcmdir=/Users/franklinfeingold/Desktop/NKI_script/Dicom
dcm2niidir=/Users/franklinfeingold/Desktop/dcm2niix_3-Jan-2018_mac
#Create nifti directory
mkdir ${toplvl}/Nifti
niidir=${toplvl}/Nifti

####Anatomical Organization####
for subj in 2475376; do
echo “Processing subject $subj”

###Create structure
mkdir -p ${niidir}/sub-${subj}/ses-1/anat

###Convert dcm to nii
#Only convert the Dicom folder anat
for direcs in anat; do
${dcm2niidir}/dcm2niix -o ${niidir}/sub-${subj} -f ${subj}_%f_%p ${dcmdir}/${subj}/${direcs}
done

From my understanding dcmdir is a Dicom folder with sub folders for every subject. So I have a folder named Dicom on my computer with sub folders for each subject. Then a new folder on the Dicom level is created for new Nifti files. And subject 2475376 is a subfolder of Dicom with dicom files inside. With this set up the script is not running properly. The Nifty folder is being created with the structure but I am getting a message saying no dicoms are found for converting. Can you please explain how my folders should be set up? Where subjects should be placed etc.?

]]>
By: Franklin Feingold https://reproducibility.stanford.edu/bids-tutorial-series-part-1b/#comment-673 Wed, 30 May 2018 18:04:58 +0000 http://reproducibility.stanford.edu/?p=529#comment-673 Thank you for your question. To confirm, were you able to download and install the jo package successfully? The jo package can found here: https://github.com/jpmens/jo .

]]>
By: Franklin Feingold https://reproducibility.stanford.edu/bids-tutorial-series-part-1b/#comment-585 Tue, 15 May 2018 17:49:47 +0000 http://reproducibility.stanford.edu/?p=529#comment-585 Thank you for your question. To distinguish your MOCO file you may add to the filename the “rec” label. This rec label would be placed after task and acq (acq is optional). This can be found described here: http://bids.neuroimaging.io/bids_spec1.1.0.pdf#page=22

]]>