<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.ccn.ucla.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=MR%3AProcessing%3APreprocessing</id>
	<title>MR:Processing:Preprocessing - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.ccn.ucla.edu/wiki/index.php?action=history&amp;feed=atom&amp;title=MR%3AProcessing%3APreprocessing"/>
	<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=MR:Processing:Preprocessing&amp;action=history"/>
	<updated>2026-05-06T10:33:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=MR:Processing:Preprocessing&amp;diff=1398&amp;oldid=prev</id>
		<title>Ccn admin: 9 revisions</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=MR:Processing:Preprocessing&amp;diff=1398&amp;oldid=prev"/>
		<updated>2014-01-16T03:43:16Z</updated>

		<summary type="html">&lt;p&gt;9 revisions&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Once files have been transferred from the scanner to Hoffman and converted to .nii, they are run through standard preprocessing steps. All resultant files are stored in:&amp;lt;br&amp;gt;&lt;br /&gt;
/u/home/FMRI/sbook/data/&amp;lt;project_id&amp;gt;/subjects/&amp;lt;subject_id&amp;gt;/&amp;lt;scan_date&amp;gt;/analysis/preprocessing&lt;br /&gt;
&lt;br /&gt;
==All files==&lt;br /&gt;
* converted to Radiological orientation if necessary (fslorient -swaporient). Note that this changes the orientation of the original file, as all files should be stored in Radiological orientation before subsequent analysis.&lt;br /&gt;
* reoriented to RL PA IS orientation (fslreorient2std)&lt;br /&gt;
output: &amp;lt;filename&amp;gt;_rpi.nii.gz&lt;br /&gt;
&lt;br /&gt;
==Initial structurals (eg axial coplanar, matched bandwidth)==&lt;br /&gt;
* skull stripped with f=0.3 (bet)&lt;br /&gt;
output: &amp;lt;init_struct&amp;gt;_brain.nii.gz&lt;br /&gt;
&lt;br /&gt;
==Main structurals (eg MP-RAGE)==&lt;br /&gt;
* skull stripped with f=0.3 and bias field &amp;amp; neck cleanup (bet)&lt;br /&gt;
output: &amp;lt;main_struct&amp;gt;_brain.nii.gz&lt;br /&gt;
* Note: Sometimes, BET will skull strip incorrectly. Modifying the -f and -g may help (see: [http://fsl.fmrib.ox.ac.uk/fsl/fslwiki/BET/FAQ &amp;#039;&amp;#039;&amp;#039;BET FAQ&amp;#039;&amp;#039;&amp;#039;])&lt;br /&gt;
**When BET fails to skull strip correctly, manual skull stripping may be necessary (see: [[MR:Processing:Preprocessing:ManualSkullStripping]])&lt;br /&gt;
&lt;br /&gt;
==Functionals==&lt;br /&gt;
* example functional obtained&lt;br /&gt;
output: &amp;lt;functional&amp;gt;_example.nii.gz&lt;br /&gt;
* motion corrected (mcflirt)&lt;br /&gt;
outputs: &amp;lt;functional&amp;gt;_mcf.nii.gz, &amp;lt;functional&amp;gt;_mcf_abs.rms, &amp;lt;functional&amp;gt;_mcf_rel.rms, &amp;lt;functional&amp;gt;_mcf.par&lt;br /&gt;
* mean 3d image calculated&lt;br /&gt;
output: &amp;lt;functional&amp;gt;_mean.nii.gz&lt;br /&gt;
* skull stripped with f=0.3 (bet2)&lt;br /&gt;
output: &amp;lt;functional&amp;gt;_mask.nii.gz&lt;br /&gt;
* mask motion corrected data with brain mask&lt;br /&gt;
output: &amp;lt;functional&amp;gt;_mcf_brain.nii.gz&lt;br /&gt;
&lt;br /&gt;
==DTI==&lt;br /&gt;
* file converted from DICOM to .nii with dcm2nii&lt;br /&gt;
outputs: &amp;lt;dti&amp;gt;_raw.nii.gz, bvecs, bvals&lt;br /&gt;
&lt;br /&gt;
==Manual preprocessing==&lt;br /&gt;
The program that performs preprocessing on Hoffman is hoffman_preproc.py. It should be in your path. Type&lt;br /&gt;
&amp;#039;hoffman_preproc.py --h&amp;#039; to see the usage.&lt;br /&gt;
 Usage: hoffman_preproc.py -p &amp;lt;project_name&amp;gt; -s &amp;lt;subject_id&amp;gt; -d &amp;lt;date&amp;gt; &amp;lt;options&amp;gt;&lt;br /&gt;
 Run basic preprocessing on raw .nii files&lt;br /&gt;
 Example: hoffman_preproc.py -p AD -s AD_10374 -d 20100909 -m mp_rage_3 -f axial_bold_ur1_5&lt;br /&gt;
 Assumed directory structure: /u/home/FMRI/sbook/data/&amp;lt;project_name&amp;gt;/subjects/&amp;lt;subject_id&amp;gt;/&amp;lt;date&amp;gt;&lt;br /&gt;
 Options:&lt;br /&gt;
  -h, --help            show this help message and exit&lt;br /&gt;
  -p PROJ, --project=PROJ&lt;br /&gt;
                        project name&lt;br /&gt;
  -s SUBJID, --subjid=SUBJID&lt;br /&gt;
                        directory name for the subject&lt;br /&gt;
  -d DATE, --date=DATE  date directory name for the subject&lt;br /&gt;
  -m MAINSTRUCT, --mainstruct=MAINSTRUCT&lt;br /&gt;
                        main structural image file prefix, eg mp_rage_3&lt;br /&gt;
  -i INITSTRUCT, --initstruct=INITSTRUCT&lt;br /&gt;
                        initial structural image file prefix, eg axial_t2_4&lt;br /&gt;
  -f FUNC, --func=FUNC  functional image file prefix, eg axial_bold_ur1_5&lt;br /&gt;
  -t DTI, --dti=DTI     diffusion image file prefix, eg dti_30_dir_9&lt;br /&gt;
  -q                    use qsub&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=MR:Processing:Preprocessing&amp;diff=1395&amp;oldid=prev</id>
		<title>Elau: moved Data-MR:Processing:Preprocessing to MR:Processing:Preprocessing</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=MR:Processing:Preprocessing&amp;diff=1395&amp;oldid=prev"/>
		<updated>2012-04-25T20:35:17Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/wiki/index.php/Data-MR:Processing:Preprocessing&quot; class=&quot;mw-redirect&quot; title=&quot;Data-MR:Processing:Preprocessing&quot;&gt;Data-MR:Processing:Preprocessing&lt;/a&gt; to &lt;a href=&quot;/wiki/index.php/MR:Processing:Preprocessing&quot; title=&quot;MR:Processing:Preprocessing&quot;&gt;MR:Processing:Preprocessing&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:35, 25 April 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Elau</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=MR:Processing:Preprocessing&amp;diff=1394&amp;oldid=prev</id>
		<title>Elau: moved Hoffman2:Data Preprocessing to Data-MR:Processing:Preprocessing</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=MR:Processing:Preprocessing&amp;diff=1394&amp;oldid=prev"/>
		<updated>2012-04-25T20:30:59Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/wiki/index.php/Hoffman2:Data_Preprocessing&quot; class=&quot;mw-redirect&quot; title=&quot;Hoffman2:Data Preprocessing&quot;&gt;Hoffman2:Data Preprocessing&lt;/a&gt; to &lt;a href=&quot;/wiki/index.php/Data-MR:Processing:Preprocessing&quot; class=&quot;mw-redirect&quot; title=&quot;Data-MR:Processing:Preprocessing&quot;&gt;Data-MR:Processing:Preprocessing&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Once files have been transferred from the scanner to Hoffman and converted to .nii, they are run through standard preprocessing steps. All resultant files are stored in:&amp;lt;br&amp;gt;&lt;br /&gt;
/u/home/FMRI/sbook/data/&amp;lt;project_id&amp;gt;/subjects/&amp;lt;subject_id&amp;gt;/&amp;lt;scan_date&amp;gt;/analysis/preprocessing&lt;br /&gt;
&lt;br /&gt;
==All files==&lt;br /&gt;
* converted to Radiological orientation if necessary (fslorient -swaporient). Note that this changes the orientation of the original file, as all files should be stored in Radiological orientation before subsequent analysis.&lt;br /&gt;
* reoriented to RL PA IS orientation (fslreorient2std)&lt;br /&gt;
output: &amp;lt;filename&amp;gt;_rpi.nii.gz&lt;br /&gt;
&lt;br /&gt;
==Initial structurals (eg axial coplanar, matched bandwidth)==&lt;br /&gt;
* skull stripped with f=0.3 (bet)&lt;br /&gt;
output: &amp;lt;init_struct&amp;gt;_brain.nii.gz&lt;br /&gt;
&lt;br /&gt;
==Main structurals (eg MP-RAGE)==&lt;br /&gt;
* skull stripped with f=0.3 and bias field &amp;amp; neck cleanup (bet)&lt;br /&gt;
output: &amp;lt;main_struct&amp;gt;_brain.nii.gz&lt;br /&gt;
&lt;br /&gt;
==Functionals==&lt;br /&gt;
* example functional obtained&lt;br /&gt;
output: &amp;lt;functional&amp;gt;_example.nii.gz&lt;br /&gt;
* motion corrected (mcflirt)&lt;br /&gt;
outputs: &amp;lt;functional&amp;gt;_mcf.nii.gz, &amp;lt;functional&amp;gt;_mcf_abs.rms, &amp;lt;functional&amp;gt;_mcf_rel.rms, &amp;lt;functional&amp;gt;_mcf.par&lt;br /&gt;
* mean 3d image calculated&lt;br /&gt;
output: &amp;lt;functional&amp;gt;_mean.nii.gz&lt;br /&gt;
* skull stripped with f=0.3 (bet2)&lt;br /&gt;
output: &amp;lt;functional&amp;gt;_mask.nii.gz&lt;br /&gt;
* mask motion corrected data with brain mask&lt;br /&gt;
output: &amp;lt;functional&amp;gt;_mcf_brain.nii.gz&lt;br /&gt;
&lt;br /&gt;
==DTI==&lt;br /&gt;
* file converted from DICOM to .nii with dcm2nii&lt;br /&gt;
outputs: &amp;lt;dti&amp;gt;_raw.nii.gz, bvecs, bvals&lt;br /&gt;
&lt;br /&gt;
==Manual preprocessing==&lt;br /&gt;
The program that performs preprocessing on Hoffman is hoffman_preproc.py. It should be in your path. Type&lt;br /&gt;
&amp;#039;hoffman_preproc.py --h&amp;#039; to see the usage.&lt;br /&gt;
 Usage: hoffman_preproc.py -p &amp;lt;project_name&amp;gt; -s &amp;lt;subject_id&amp;gt; -d &amp;lt;date&amp;gt; &amp;lt;options&amp;gt;&lt;br /&gt;
 Run basic preprocessing on raw .nii files&lt;br /&gt;
 Example: hoffman_preproc.py -p AD -s AD_10374 -d 20100909 -m mp_rage_3 -f axial_bold_ur1_5&lt;br /&gt;
 Assumed directory structure: /u/home/FMRI/sbook/data/&amp;lt;project_name&amp;gt;/subjects/&amp;lt;subject_id&amp;gt;/&amp;lt;date&amp;gt;&lt;br /&gt;
 Options:&lt;br /&gt;
  -h, --help            show this help message and exit&lt;br /&gt;
  -p PROJ, --project=PROJ&lt;br /&gt;
                        project name&lt;br /&gt;
  -s SUBJID, --subjid=SUBJID&lt;br /&gt;
                        directory name for the subject&lt;br /&gt;
  -d DATE, --date=DATE  date directory name for the subject&lt;br /&gt;
  -m MAINSTRUCT, --mainstruct=MAINSTRUCT&lt;br /&gt;
                        main structural image file prefix, eg mp_rage_3&lt;br /&gt;
  -i INITSTRUCT, --initstruct=INITSTRUCT&lt;br /&gt;
                        initial structural image file prefix, eg axial_t2_4&lt;br /&gt;
  -f FUNC, --func=FUNC  functional image file prefix, eg axial_bold_ur1_5&lt;br /&gt;
  -t DTI, --dti=DTI     diffusion image file prefix, eg dti_30_dir_9&lt;br /&gt;
  -q                    use qsub&lt;/div&gt;</summary>
		<author><name>Elau</name></author>
	</entry>
</feed>