<?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=FUNC%3ABMC</id>
	<title>FUNC:BMC - 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=FUNC%3ABMC"/>
	<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=FUNC:BMC&amp;action=history"/>
	<updated>2026-05-06T08:12:42Z</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=FUNC:BMC&amp;diff=3062&amp;oldid=prev</id>
		<title>Mmonti: Created page with &quot;== setup_subject == To import data from dicom servers at brainmpapping using setup_subject:   Use the command &#039;&#039;&#039;setup_subject&#039;&#039;&#039; followed by this info: -b (base directory) -g...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=FUNC:BMC&amp;diff=3062&amp;oldid=prev"/>
		<updated>2016-02-19T00:57:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== setup_subject == To import data from dicom servers at brainmpapping using setup_subject:   Use the command &amp;#039;&amp;#039;&amp;#039;setup_subject&amp;#039;&amp;#039;&amp;#039; followed by this info: -b (base directory) -g...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== setup_subject ==&lt;br /&gt;
To import data from dicom servers at brainmpapping using setup_subject:&lt;br /&gt;
 &lt;br /&gt;
Use the command &amp;#039;&amp;#039;&amp;#039;setup_subject&amp;#039;&amp;#039;&amp;#039; followed by this info:&lt;br /&gt;
-b (base directory) -g (group, lieberman) -s (subject code) -u (user, lieber) -n or -r (convention, radiologic or neurologic) -I /Volumes/BMC5/dicom2 (this is new for importing data from the Trio- and note that it is uppercase I, not lowercase L!). &lt;br /&gt;
&lt;br /&gt;
For example, if your study is called &amp;#039;examplestudy&amp;#039;and you are importing data for subject1:&lt;br /&gt;
&lt;br /&gt;
setup_subject -b /space/raid6/data/lieber/examplestudy -g lieberman -s subject1 -u lieber -r -I /Volumes/BMC5/dicom2&lt;br /&gt;
&lt;br /&gt;
A note about convention: radiologists use R=L, neurologists use R=R. In SPM, though, it automatically flips it, so if you want the final data to be neurologic (R=R), you need to import using radiologic.&lt;br /&gt;
&lt;br /&gt;
When prompted for a password enter Matt&amp;#039;s brainmapping password.&lt;br /&gt;
&lt;br /&gt;
== setup_subject_nifti ==&lt;br /&gt;
Imports data from dicom servers at the brainmapping center, but makes the files into nifti files.  Nifti files are nice because you don&amp;#039;t need to worry about image/header pairs (like you do with ANALYZE files imported by the original setup_subject (above)).  setup_subject_nifti also cleans up the folder and file names in a nice way.  Setup a subject each way and you&amp;#039;ll see!&lt;br /&gt;
&lt;br /&gt;
Use the command &amp;#039;setup_subject_nifti&amp;#039; followed by:&lt;br /&gt;
Required arguments:&lt;br /&gt;
  -b base_dir: the project directory in which the subject&amp;#039;s&lt;br /&gt;
               dir will be created&lt;br /&gt;
               (this MUST be an absolute path, i.e., starting with /)&lt;br /&gt;
  -g group:    the name of the group under which the scan was performed&lt;br /&gt;
               (this MUST be in lowercase, and must also match the&lt;br /&gt;
               account name under which the data are stored on DNS0)&lt;br /&gt;
  -s subject:  the subject code that was entered when scanning&lt;br /&gt;
&lt;br /&gt;
Optional arguments:&lt;br /&gt;
[general flags]:&lt;br /&gt;
  -t:          run in test mode - don&amp;#039;t execute commands&lt;br /&gt;
[processing operations]:&lt;br /&gt;
  -c:          run MCLFIRT motion correction on 4D image&lt;br /&gt;
  -m:          run MELODIC ICA on motion-corrected 4D image&lt;br /&gt;
  -x:          run BET on the motion-corrected 4D data&lt;br /&gt;
  -w:          Preprocess MP-RAGE (align, BET, and bias correction)&lt;br /&gt;
  -D:          Run raw data diagnostics&lt;br /&gt;
  -z:          name of file specifying definitions for MCFLIRT_ARGS and MELODIC_ARGS&lt;br /&gt;
  -h:          unwarp allegra MP-RAGE using MGH code (for Allegra 3T only)&lt;br /&gt;
[debabeler options]:&lt;br /&gt;
  -d:          skip debabeling&lt;br /&gt;
  -j:          location of debabeler .jar file&lt;br /&gt;
[data input options]:&lt;br /&gt;
  -u username  specify a username for dns0 account (defaults to group name)&lt;br /&gt;
  -y:          read data from dicom backup (for data collected prior to 9/17/05)&lt;br /&gt;
[file output options]:&lt;br /&gt;
  -k:          don&amp;#039;t automatically delete DICOM data after conversion&lt;br /&gt;
  -3:          Keep 3D data after 4D conversion&lt;br /&gt;
  -f:          don&amp;#039;t fix raw directory names (leave extra numbers)&lt;br /&gt;
  -e:          skip downloading of data from dns0 (assumes existing data)&lt;br /&gt;
  -a:          tag to denote BOLD directories (defaults to BOLD)&lt;br /&gt;
  -q           skip entry of DICOM info into database&lt;br /&gt;
  -I           specify a dicom server directory&lt;br /&gt;
[grid options]:&lt;br /&gt;
  -G           submit compute tasks to the Grid (default)&lt;br /&gt;
  -L           run Locally (do not submit compute tasks to the Grid)&lt;br /&gt;
see www.func.ucla.edu for more info&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For example, if your study is called &amp;#039;examplestudy&amp;#039; and you are importing data for subject1 and also want to keep the dicom files (the raw files that you could later use to re-run setup_subject or setup_subject_nifti):&lt;br /&gt;
&lt;br /&gt;
setup_subject_nifti -b /space/raid8/data/lieber/examplestudy -g lieberman -s subject1 -u lieber -k -I /Volumes/BMC5/dicom2&lt;br /&gt;
&lt;br /&gt;
When prompted for a password enter Matt&amp;#039;s brainmapping password.&lt;br /&gt;
&lt;br /&gt;
Note: for -I, use /Volumes/BMC5/dicom2 for data collected on the trio.  Some of the old Allegra data is at: /Volumes/BMC1/dicom&lt;/div&gt;</summary>
		<author><name>Mmonti</name></author>
	</entry>
</feed>