open-discussion
open-discussion > RE: CONN automating
Oct 10, 2018 07:10 AM | Pravesh Parekh - University of Oslo
RE: CONN automating
Hi,
Using Conn GUI to quickly specify functional and structural images is easy. In the structural or functional tab, you will note on the right side that there is a list of folders in your present working directory. Further on the lower right side you will notice the following:
.img; *.nii; *.gz; *-1.dcm
Now, let us say that all your structural files are named as *T1w*.nii. Edit this location to read *T1w*.nii and click on "Find". Conn will list all the found files below the list of folders. You can select all your subjects on the left pane and all the found files in the right side and simply click on Select. This will assign one file per subject. You can similarly do this for the functional scans. If the ordering of subjects is not inconsistent, you can do this in less than a minute and finish most of the Setup. The GUI also supports using regular expressions in case the above does not solve your problem completely.
That said, if you prefer scripting, just make a Conn Batch file (see the batch manual on how to specify the Batch parameters). This is very efficient.
Hope this helps
Best
Pravesh
Originally posted by Abdullah BAS:
Using Conn GUI to quickly specify functional and structural images is easy. In the structural or functional tab, you will note on the right side that there is a list of folders in your present working directory. Further on the lower right side you will notice the following:
.img; *.nii; *.gz; *-1.dcm
Now, let us say that all your structural files are named as *T1w*.nii. Edit this location to read *T1w*.nii and click on "Find". Conn will list all the found files below the list of folders. You can select all your subjects on the left pane and all the found files in the right side and simply click on Select. This will assign one file per subject. You can similarly do this for the functional scans. If the ordering of subjects is not inconsistent, you can do this in less than a minute and finish most of the Setup. The GUI also supports using regular expressions in case the above does not solve your problem completely.
That said, if you prefer scripting, just make a Conn Batch file (see the batch manual on how to specify the Batch parameters). This is very efficient.
Hope this helps
Best
Pravesh
Originally posted by Abdullah BAS:
I have found a code struct in conn toolbox and
it was for automating all processes but it is independent of normal
conn gui so it can be a problem so i modified it and it is
just working for setup part and you can check the parameters from
gui. It took just 5 minutes to prepare setup process.
Thanks.
Thanks.
Threaded View
| Title | Author | Date |
|---|---|---|
| Abdullah BAS | Oct 9, 2018 | |
| Abdullah BAS | Oct 10, 2018 | |
| Pravesh Parekh | Oct 10, 2018 | |
| Abdullah BAS | Oct 11, 2018 | |
| Gregory Bator | Oct 9, 2018 | |
