<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.ccn.ucla.edu/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Yan</id>
	<title>Center for Cognitive Neuroscience - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.ccn.ucla.edu/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Yan"/>
	<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php/Special:Contributions/Yan"/>
	<updated>2026-05-08T11:42:57Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=BIDs_configuration_file&amp;diff=4010</id>
		<title>BIDs configuration file</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=BIDs_configuration_file&amp;diff=4010"/>
		<updated>2019-10-18T21:42:05Z</updated>

		<summary type="html">&lt;p&gt;Yan: /* More complicated format example: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==BIDs configuration file==&lt;br /&gt;
&lt;br /&gt;
BIDs configuration file is used to specify the naming convention for your data file in [[Scripts:setup subject 3]].&lt;br /&gt;
&lt;br /&gt;
This file should have the following format for all files you want to be converted to BIDs style names.&lt;br /&gt;
&lt;br /&gt;
 Original_File_Name sub-SUBJ_Name&lt;br /&gt;
 Original_File_Name sub-SUBJ_Name&lt;br /&gt;
 Original_File_Name sub-SUBJ_Name&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
The Original_File_Name and the sub-SUBJ_Name are separated by a space.&lt;br /&gt;
&lt;br /&gt;
SUBJ will be converted automatically to the subject ID which specified when you run the setup_subject_3 script.&lt;br /&gt;
(So &amp;quot;sub-SUBJ&amp;quot; will be &amp;quot;sub-1234&amp;quot; in case the subject ID is &amp;quot;1234&amp;quot; as the result file name)&lt;br /&gt;
&lt;br /&gt;
the &amp;quot;Name&amp;quot; part in &amp;quot;sub-SUBJ_Name&amp;quot; here should be replace by the name you want to use following the BIDs format rules.&lt;br /&gt;
&lt;br /&gt;
====Example:====&lt;br /&gt;
&lt;br /&gt;
 gre_fieldmap_5 sub-SUBJ_fmap_mag&lt;br /&gt;
 gre_fieldmap_6 sub-SUBJ_fmap_phase&lt;br /&gt;
 MPRAGE_15 sub-SUBJ_mprage&lt;br /&gt;
 Task_Block_1_9 sub-SUBJ_task1&lt;br /&gt;
 Task_Block_2_10 sub-SUBJ_task2&lt;br /&gt;
&lt;br /&gt;
 MPRAGE_6.4_min__0.8X0.8X0.8mm_8 sub-120_T1w&lt;br /&gt;
 MPRAGE_6.4_min__0.8X0.8X0.8mm_7 sub-120_T1w_rec-uncorrected&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====More complicated format example:====&lt;br /&gt;
&lt;br /&gt;
For example you have multiple data with similar names and want to covert them all&lt;br /&gt;
&lt;br /&gt;
 BOLD_AP_Block01_13&lt;br /&gt;
 BOLD_AP_Block02_16&lt;br /&gt;
 BOLD_AP_Block03_19&lt;br /&gt;
 BOLD_AP_Block03_22&lt;/div&gt;</summary>
		<author><name>Yan</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=BIDs_configuration_file&amp;diff=4009</id>
		<title>BIDs configuration file</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=BIDs_configuration_file&amp;diff=4009"/>
		<updated>2019-10-18T21:40:32Z</updated>

		<summary type="html">&lt;p&gt;Yan: /* Example: */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==BIDs configuration file==&lt;br /&gt;
&lt;br /&gt;
BIDs configuration file is used to specify the naming convention for your data file in [[Scripts:setup subject 3]].&lt;br /&gt;
&lt;br /&gt;
This file should have the following format for all files you want to be converted to BIDs style names.&lt;br /&gt;
&lt;br /&gt;
 Original_File_Name sub-SUBJ_Name&lt;br /&gt;
 Original_File_Name sub-SUBJ_Name&lt;br /&gt;
 Original_File_Name sub-SUBJ_Name&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
The Original_File_Name and the sub-SUBJ_Name are separated by a space.&lt;br /&gt;
&lt;br /&gt;
SUBJ will be converted automatically to the subject ID which specified when you run the setup_subject_3 script.&lt;br /&gt;
(So &amp;quot;sub-SUBJ&amp;quot; will be &amp;quot;sub-1234&amp;quot; in case the subject ID is &amp;quot;1234&amp;quot; as the result file name)&lt;br /&gt;
&lt;br /&gt;
the &amp;quot;Name&amp;quot; part in &amp;quot;sub-SUBJ_Name&amp;quot; here should be replace by the name you want to use following the BIDs format rules.&lt;br /&gt;
&lt;br /&gt;
====Example:====&lt;br /&gt;
&lt;br /&gt;
 gre_fieldmap_5 sub-SUBJ_fmap_mag&lt;br /&gt;
 gre_fieldmap_6 sub-SUBJ_fmap_phase&lt;br /&gt;
 MPRAGE_15 sub-SUBJ_mprage&lt;br /&gt;
 Task_Block_1_9 sub-SUBJ_task1&lt;br /&gt;
 Task_Block_2_10 sub-SUBJ_task2&lt;br /&gt;
&lt;br /&gt;
 MPRAGE_6.4_min__0.8X0.8X0.8mm_8 sub-120_T1w&lt;br /&gt;
 MPRAGE_6.4_min__0.8X0.8X0.8mm_7 sub-120_T1w_rec-uncorrected&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====More complicated format example:====&lt;br /&gt;
&lt;br /&gt;
For example you have multiple data with similar names and want to covert them all&lt;br /&gt;
&lt;br /&gt;
 bold_AP_Block01_13&lt;br /&gt;
 bold_AP_Block02_16&lt;br /&gt;
 BOLD_AP_Block03_19&lt;br /&gt;
 BOLD_AP_Block03_22&lt;/div&gt;</summary>
		<author><name>Yan</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=BIDs_configuration_file&amp;diff=4008</id>
		<title>BIDs configuration file</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=BIDs_configuration_file&amp;diff=4008"/>
		<updated>2019-10-18T21:06:15Z</updated>

		<summary type="html">&lt;p&gt;Yan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==BIDs configuration file==&lt;br /&gt;
&lt;br /&gt;
BIDs configuration file is used to specify the naming convention for your data file in [[Scripts:setup subject 3]].&lt;br /&gt;
&lt;br /&gt;
This file should have the following format for all files you want to be converted to BIDs style names.&lt;br /&gt;
&lt;br /&gt;
 Original_File_Name sub-SUBJ_Name&lt;br /&gt;
 Original_File_Name sub-SUBJ_Name&lt;br /&gt;
 Original_File_Name sub-SUBJ_Name&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
The Original_File_Name and the sub-SUBJ_Name are separated by a space.&lt;br /&gt;
&lt;br /&gt;
SUBJ will be converted automatically to the subject ID which specified when you run the setup_subject_3 script.&lt;br /&gt;
(So &amp;quot;sub-SUBJ&amp;quot; will be &amp;quot;sub-1234&amp;quot; in case the subject ID is &amp;quot;1234&amp;quot; as the result file name)&lt;br /&gt;
&lt;br /&gt;
the &amp;quot;Name&amp;quot; part in &amp;quot;sub-SUBJ_Name&amp;quot; here should be replace by the name you want to use following the BIDs format rules.&lt;br /&gt;
&lt;br /&gt;
====Example:====&lt;br /&gt;
&lt;br /&gt;
 gre_fieldmap_5 sub-SUBJ_fmap_mag&lt;br /&gt;
 gre_fieldmap_6 sub-SUBJ_fmap_phase&lt;br /&gt;
 MPRAGE_15 sub-SUBJ_mprage&lt;br /&gt;
 Task_Block_1_9 sub-SUBJ_task1&lt;br /&gt;
 Task_Block_2_10 sub-SUBJ_task2&lt;br /&gt;
&lt;br /&gt;
 MPRAGE_6.4_min__0.8X0.8X0.8mm_8 sub-120_T1w&lt;br /&gt;
 MPRAGE_6.4_min__0.8X0.8X0.8mm_7 sub-120_T1w_rec-uncorrected&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
More complicated format example:&lt;br /&gt;
&lt;br /&gt;
For example you have multiple data with similar names and want to covert them all&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
BOLD_AP_Block01_13&lt;br /&gt;
BOLD_AP_Block02_16&lt;br /&gt;
BOLD_AP_Block03_19&lt;br /&gt;
BOLD_AP_Block03_22&lt;/div&gt;</summary>
		<author><name>Yan</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Scripts:setup_subject_3&amp;diff=3990</id>
		<title>Hoffman2:Scripts:setup subject 3</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Scripts:setup_subject_3&amp;diff=3990"/>
		<updated>2019-10-17T20:27:36Z</updated>

		<summary type="html">&lt;p&gt;Yan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Setup_subject script usage==&lt;br /&gt;
Setup_subject_3 (also named as setup_subject_bids) is built on top of setup_subject_2. The major goal is to apply BIDs format on the data structure. Besides of using BIDs structure, it added other useful features as well.&lt;br /&gt;
&lt;br /&gt;
Setup_subject_3 has all the functions which exist in setup_subject_2 and works the same way with the same options as setup_subject_2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Basic Usage:===&lt;br /&gt;
 setup_subject_3 [option] basedir subjectID&lt;br /&gt;
&lt;br /&gt;
basedir is where you want the processed data to be stored in your Hoffman account,&lt;br /&gt;
&lt;br /&gt;
subjectID is the subject folder name which has your subject Dicom data&lt;br /&gt;
&lt;br /&gt;
===Options:===&lt;br /&gt;
 --download hostname,userid,path&lt;br /&gt;
download data from Dicom server to you hoffman account&lt;br /&gt;
It requires 3 argument, separated by comma(,)&lt;br /&gt;
(If you have downloaded the data already, this option is not needed)&lt;br /&gt;
&lt;br /&gt;
  1. hostname - (ccn for ccn Dicom server, bmap for BMC Dicom server). &lt;br /&gt;
  2. userid: Your Dicom server user ID&lt;br /&gt;
  3. path: path to your data in dicom server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 -d (or --do) : this option to specify the processing you want to add&lt;br /&gt;
After NIFTI convert, these options can be used to run FSL mcflirt, bet and melodic also diag, and mprage.&lt;br /&gt;
   mcflirt : run mcflirt &lt;br /&gt;
   bet : run bet&lt;br /&gt;
   melodic : run melodic&lt;br /&gt;
   diags : run diagnostics&lt;br /&gt;
   mprage : process  anatomical scans&lt;br /&gt;
   sge: submit the job in batch mode&lt;br /&gt;
&lt;br /&gt;
(Using option diags requires mcflirt, bet and melodic to be processed first)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 -s (or --skip) &lt;br /&gt;
this option to specify the processing you want to skip&lt;br /&gt;
   mcflirt : run mcflirt &lt;br /&gt;
   bet : run bet&lt;br /&gt;
   melodic : run melodic&lt;br /&gt;
   diags : run diagnostics&lt;br /&gt;
   mprage : process  anatomical scans&lt;br /&gt;
   sge: not using batch mode, which means you need to start interactive mode first before running setup_subject_* command&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
 --spm&lt;br /&gt;
Set SPM compatability&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 --bids&lt;br /&gt;
Bids format: specify using bids structure to group result files. However this option often being used with --config option to choose configuration file.&lt;br /&gt;
Without configuration file, the name conversion might not be correct under BIDs format rule.&lt;br /&gt;
&lt;br /&gt;
 --config FILEPATH/FILENAME&lt;br /&gt;
Specifying the bids naming configuration file path and name. Users should generate this file based on their data and Bids formatting rule. However there are sample files.&lt;br /&gt;
&lt;br /&gt;
 --sessdir ses-NN&lt;br /&gt;
Specify session directory name. This is for Bids format mode and when the data has multiple sessions. When you want the results all go into a session directory named ses-NN (NN represents session number, e.g. 02)&lt;br /&gt;
&lt;br /&gt;
 --notar &lt;br /&gt;
No compression of dicom/ folder. Normally raw dicom data will be compressed into dicom*.tar.gz at the end of NiFTI convert. With this option, it will not compress.&lt;br /&gt;
This option is good when you know you want to run the setup_subject_3 script again and want to save time on compression and decompression of the data.&lt;br /&gt;
You should run without this option on the last run so it will save the disk usage.&lt;br /&gt;
&lt;br /&gt;
 --setgrp GROUPNAME&lt;br /&gt;
Force the data&#039;s group to be set as the GROUPNAME specified. The GROUPNAME need to be an existing valid group name in Hoffman.&lt;br /&gt;
&lt;br /&gt;
===Examples: ===&lt;br /&gt;
&lt;br /&gt;
Load the script module first:&lt;br /&gt;
 module load ccnscripts&lt;br /&gt;
&lt;br /&gt;
Download data and run NIFTI convert&lt;br /&gt;
 setup_subject_3 --download ccn,dicomuserid,/dicom/data/YOURGROUP/ basedir subjectID&lt;br /&gt;
( /dicom/data/YOURGROUP/subjectID should be where the raw data is located and accessable by your Dicom server user account)&lt;br /&gt;
&lt;br /&gt;
Download data and run NIFTI convert and other FSL processing:&lt;br /&gt;
 setup_subject_3 --download ccn,userid,/dicom/data/YOURGROUP/ -d mcflirt,bet,melodic,diags,mprage --spm basedir subjectID&lt;br /&gt;
&lt;br /&gt;
Process data only without download&lt;br /&gt;
 setup_subject_3 -d mcflirt,bet,melodic,diags basedir subjectID&lt;br /&gt;
 setup_subject_3 -d mcflirt,bet,melodic,diags,mprage basedir subjectID&lt;br /&gt;
 setup_subject_3 -d mprage basedir subjectID&lt;br /&gt;
&lt;br /&gt;
Skip mcflirt,bet,melodic,diags&lt;br /&gt;
  setup_subject_3 -s mcflirt,bet,melodic,diags basedir subjectID&lt;br /&gt;
&lt;br /&gt;
===Notes===&lt;br /&gt;
Log File: provides useful details about what commands were run, their output and the script&#039;s status. It&#039;s located at&lt;br /&gt;
&lt;br /&gt;
 basedir/subjectID/notes/setup_log.date_numbers&lt;/div&gt;</summary>
		<author><name>Yan</name></author>
	</entry>
</feed>