-
Notifications
You must be signed in to change notification settings - Fork 2
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
tmp2ind_T1.sh #1
Comments
Here is an example of my use and errors in attempting to run the software...
|
Hi Steven, Really happy to hear you like the atlas! I'll try to answer your questions in order:
|
It looks like the script isn't parsing the command line arguments correctly, since there's no filename string following "Individual T1:", etc. Try making the script executable (chmod +x tmp2ind_T1.sh) then rerunning without the leading "sh" in your command line. Let me know if filenames start to appear in the initial output text from the script. |
Thank you so much for the rapid reply! My apologies for the confusion on my last question, let me rephrase. I am hoping after warping the T1 atlas and the probabilistic atlas to my structural scans that I would then be able to access the corrected NIFTI file format for each of the subfields in the output separately. |
In addition, I have made tmp2ind_T1.sh executable but am still running into the same issue with and without the leading "sh". I presume since the shell and all necessary files are in the same directory I don't need to specify a path for each argument. grangers@Sidious ~/Desktop/practice/700umatlas $ tmp2ind_T1.sh -t1i /567_1_MRI1_WIP_MPrage_Coronal_sense_SENSE_3_1.nii -t1t /CIT168_T1w_700um_MNI.nii.gz -pt /CIT168_pAmyNuc_700um_MNI.nii.gz
|
I didn't spot this first time round, but do you want the leading "/" for all your image files? Are they all in the root directory or the current directory? If the latter, you can either drop the "/" completely or prefix the filenames with "./" Also, try running the script with bash rather than sh. |
I've simplified the argument handling so that both tmp2ind_*.sh scripts no longer need the argument key (eg -t1i). Try pulling the latest version (git pull ...) and see whether this fixes the weird argument handling you're experiencing. Tested this under macOS Sierra. Both "sh --version" and "bash --version" indicate that "GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)" is the underlying shell. You might want to check on your Ubuntu system too. |
Looks like it ran! Thanks so much for your attention on this and rapid reply. Could this be labelled something else by the script? I see several other files generated but unsure what to make of this extra output and what is the T1 template in individual space if labelled something else. Here's an example of the extra files. I'm guessing from the warp log file that TMP2IND_Warped.nii.gz is the one I am looking for? /home/grangers/Desktop/practice/700umatlas/TMP2IND_0GenericAffine.mat |
This is the output in the terminal window in case you need it to reference at any point grangers@Sidious ~/Desktop/practice/700umatlas $ sh tmp2ind_T1.sh 567_1_MRI1_WIP_MPrage_Coronal_sense_SENSE_3_1.nii CIT168_T1w_700um_MNI.nii.gz CIT168_pAmyNuc_700um_MNI.nii.gzSyN Warp T1 template to individual spaceIndividual T1 : 567_1_MRI1_WIP_MPrage_Coronal_sense_SENSE_3_1.nii Output filesTemplate T1 in individual space : T1w_tmp2ind.nii.gz |
Hi Steven, Glad this worked out! I've fixed the issue with renaming the warped template T1 too (there was an extra underscore in the command). Let me know if everything works now and I'll close the issue. Cheers - Mike |
Looks like it worked!! Thanks so much for your attention on this! -Steve |
Hi Dr. Tyszka,
First, I want to say I am very excited about this atlas.
I am currently trying to warp an individual structural scan to the CIT168_T1w_700um_MNI.nii.gz template using tmp2ind_T1.sh. The third argument calls for a prob atlas. Is this the CIT168_iAmyNuc_700um_MNI.nii.gz file included in the atlas download? What is the difference between the "i" and "p" labeled "AmyNuc" nifti files?
Ultimately, I am attempting to warp all of my individual structural scans to your T1w 700um atlas and export the individual amygdala subfields as text files to be brought up in a separate software. How might I access individual subfield NIFTI files from the atlas download in order to convert to text files? I plan on using fsl's fsl2ascii in order to convert the nifti's but any insight on this process would be extremely helpful!
Thank you so much in advance and I hope to hear from you soon.
Sincerely,
Steven Granger
The text was updated successfully, but these errors were encountered: