<?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=Ccn+admin</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=Ccn+admin"/>
	<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php/Special:Contributions/Ccn_admin"/>
	<updated>2026-04-09T18:16:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Using_Screen&amp;diff=2580</id>
		<title>Using Screen</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Using_Screen&amp;diff=2580"/>
		<updated>2014-04-23T20:39:59Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: /* Quick Start */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==What is Screen?==&lt;br /&gt;
From the [http://www.gnu.org/software/screen/ Gnu Screen] home page.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells. Each virtual terminal provides the functions of the DEC VT100 terminal and, in addition, several control functions from the ANSI X3.64 (ISO 6429) and ISO 2022 standards (e.g., insert/delete line and support for multiple character sets). There is a scrollback history buffer for each virtual terminal and a copy-and-paste mechanism that allows the user to move text regions between windows. When screen is called, it creates a single window with a shell in it (or the specified command) and then gets out of your way so that you can use the program as you normally would. Then, at any time, you can create new (full-screen) windows with other programs in them (including more shells), kill the current window, view a list of the active windows, turn output logging on and off, copy text between windows, view the scrollback history, switch between windows, etc. All windows run their programs completely independent of each other. Programs continue to run when their window is currently not visible and even when the whole screen session is detached from the users terminal.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Quick Start==&lt;br /&gt;
Login to Hoffman2 (Make sure you keep track of your Login Node Number)&lt;br /&gt;
 $ ssh user@hoffman2.idre.ucla.edu&lt;br /&gt;
 $ screen                #- Start Screen Session&lt;br /&gt;
&lt;br /&gt;
Launch a QRSH (if on hoffman2) session: &lt;br /&gt;
 $ qrsh -l h_data=4G&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Run bash/matlab script. &lt;br /&gt;
&lt;br /&gt;
(While Computing :)&lt;br /&gt;
 CTRL+A d                #- detach the screen session&lt;br /&gt;
&lt;br /&gt;
 $ screen -list          #- list all screen sessions. EXAMPLE OUTPUT 9368.ttyp1.cohen-static (Detached)&lt;br /&gt;
&lt;br /&gt;
 $ screen -r 9368        #- Resume a screen session with an id of 9368 (see EXAMPLE above)&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
First copy/paste the following configuration into a file and then save it as .screenrc in your Home directory (for osx users that&#039;s /Users/username/).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
# .screenrc&lt;br /&gt;
# Dave Kaufman &lt;br /&gt;
# http://davekaufman.net&lt;br /&gt;
#&lt;br /&gt;
# Created: 1 Jul 2002 04:00:00 PM EDT&lt;br /&gt;
# Last Modified: Sat 22 Jan 2005 11:41:18 PM EST&lt;br /&gt;
#&lt;br /&gt;
# This file is used to initialize screen sessions&lt;br /&gt;
&lt;br /&gt;
# No annoying audible bell, using &amp;quot;visual bell&amp;quot;&lt;br /&gt;
#vbell on				# default: off&lt;br /&gt;
#vbell_msg &amp;quot;   -- Ring, Ring!! --   &amp;quot;	# default: &amp;quot;Wuff,Wuff!!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Automatically detach on hangup. &lt;br /&gt;
  autodetach on				# default: on&lt;br /&gt;
&lt;br /&gt;
# Don&#039;t display the copyright page&lt;br /&gt;
  startup_message off			# default: on&lt;br /&gt;
&lt;br /&gt;
# Affects the copying of text regions&lt;br /&gt;
  crlf off				# default: off&lt;br /&gt;
&lt;br /&gt;
# Change default scrollback value for new windows&lt;br /&gt;
  defscrollback 1000			# default: 100&lt;br /&gt;
&lt;br /&gt;
# Define the time that all windows monitored for silence should &lt;br /&gt;
# wait before displaying a message. Default 30 seconds.&lt;br /&gt;
  silencewait 15   		&lt;br /&gt;
&lt;br /&gt;
# Ensures that the default shell is the same as the value of the $SHELL env variable&lt;br /&gt;
  shell -$SHELL&lt;br /&gt;
&lt;br /&gt;
# emulate .logout message&lt;br /&gt;
  pow_detach_msg &amp;quot;Screen session of \$LOGNAME \$:cr:\$:nl:ended.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Pretty status bar at the bottom.&lt;br /&gt;
hardstatus alwayslastline &lt;br /&gt;
hardstatus string &amp;quot;%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m/%d %{W}%c %{g}]&amp;quot;&lt;br /&gt;
# XTERM TWEAKS&lt;br /&gt;
# ===============================================================&lt;br /&gt;
&lt;br /&gt;
# xterm understands both im/ic and doesn&#039;t have a status line.&lt;br /&gt;
# Note: Do not specify im and ic in the real termcap/info file as&lt;br /&gt;
# some programs (e.g. vi) will not work anymore.&lt;br /&gt;
  termcap  xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l&lt;br /&gt;
  terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l&lt;br /&gt;
&lt;br /&gt;
# 80/132 column switching must be enabled for ^AW to work&lt;br /&gt;
# change init sequence to not switch width&lt;br /&gt;
  termcapinfo  xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l&lt;br /&gt;
&lt;br /&gt;
# Make the output buffer large for (fast) xterms.&lt;br /&gt;
# termcapinfo xterm* OL=10000&lt;br /&gt;
  termcapinfo xterm* OL=100&lt;br /&gt;
&lt;br /&gt;
# tell screen that xterm can switch to dark background and has function&lt;br /&gt;
# keys.&lt;br /&gt;
  termcapinfo xterm &#039;VR=\E[?5h:VN=\E[?5l&#039;&lt;br /&gt;
  termcapinfo xterm &#039;k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~&#039;&lt;br /&gt;
  termcapinfo xterm &#039;kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~&#039;&lt;br /&gt;
&lt;br /&gt;
# special xterm hardstatus: use the window title.&lt;br /&gt;
  termcapinfo xterm &#039;hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007&#039;&lt;br /&gt;
&lt;br /&gt;
#terminfo xterm &#039;vb=\E[?5h$&amp;lt;200/&amp;gt;\E[?5l&#039;&lt;br /&gt;
  termcapinfo xterm &#039;vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l&#039;&lt;br /&gt;
&lt;br /&gt;
# emulate part of the &#039;K&#039; charset&lt;br /&gt;
  termcapinfo xterm &#039;XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337&#039;&lt;br /&gt;
&lt;br /&gt;
# xterm-52 tweaks:&lt;br /&gt;
# - uses background color for delete operations&lt;br /&gt;
  termcapinfo xterm* be&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# WYSE TERMINALS&lt;br /&gt;
# ===============================================================&lt;br /&gt;
&lt;br /&gt;
#wyse-75-42 must have flow control (xo = &amp;quot;terminal uses xon/xoff&amp;quot;)&lt;br /&gt;
#essential to have it here, as this is a slow terminal.&lt;br /&gt;
  termcapinfo wy75-42 xo:hs@&lt;br /&gt;
&lt;br /&gt;
# New termcap sequences for cursor application mode.&lt;br /&gt;
  termcapinfo wy* CS=\E[?1h:CE=\E[?1l:vi=\E[?25l:ve=\E[?25h:VR=\E[?5h:VN=\E[?5l:cb=\E[1K:CD=\E[1J&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# OTHER TERMINALS&lt;br /&gt;
# ===============================================================&lt;br /&gt;
&lt;br /&gt;
# make hp700 termcap/info better&lt;br /&gt;
  termcapinfo  hp700 &#039;Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62&amp;quot;p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61&amp;quot;p:ds=\E[62&amp;quot;p\E[1$~\E[61&amp;quot;p:ic@&#039;&lt;br /&gt;
&lt;br /&gt;
# Extend the vt100 desciption by some sequences.&lt;br /&gt;
  termcap  vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC&lt;br /&gt;
  terminfo vt100* ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC&lt;br /&gt;
  termcapinfo linux C8&lt;br /&gt;
# old rxvt versions also need this&lt;br /&gt;
# termcapinfo rxvt C8&lt;br /&gt;
&lt;br /&gt;
# Change the escape key for hotkeys so I can run screen within screen&lt;br /&gt;
# escape ^l\\&lt;br /&gt;
# Let&#039;s remove some dangerous key bindings ...&lt;br /&gt;
  bind k&lt;br /&gt;
  bind ^k&lt;br /&gt;
  bind .&lt;br /&gt;
  bind ^\&lt;br /&gt;
  bind \\&lt;br /&gt;
  bind ^h&lt;br /&gt;
  bind h&lt;br /&gt;
&lt;br /&gt;
# ... and make them better.&lt;br /&gt;
  bind &#039;K&#039; kill&lt;br /&gt;
  bind &#039;I&#039; login on&lt;br /&gt;
  bind &#039;O&#039; login off&lt;br /&gt;
  bind &#039;}&#039; history&lt;br /&gt;
	bind &#039;Q&#039; quit&lt;br /&gt;
&lt;br /&gt;
# Yet another hack:&lt;br /&gt;
# Prepend/append register [/] to the paste if ^a^] is pressed.&lt;br /&gt;
# This lets me have autoindent mode in vi.&lt;br /&gt;
  register [ &amp;quot;\033:se noai\015a&amp;quot;&lt;br /&gt;
  register ] &amp;quot;\033:se ai\015a&amp;quot;&lt;br /&gt;
  bind ^] paste [.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Resize the current region. The space will be removed from or added to &lt;br /&gt;
# the region below or if there&#039;s not enough space from the region above.&lt;br /&gt;
  bind = resize =&lt;br /&gt;
  bind + resize +3&lt;br /&gt;
  bind - resize -3&lt;br /&gt;
&lt;br /&gt;
# Time a message is displayed if screen is not disturbed by&lt;br /&gt;
# other activity. The dafault is 5 seconds:&lt;br /&gt;
msgwait 15&lt;br /&gt;
&lt;br /&gt;
# change the default activity message to include a bell.&lt;br /&gt;
activity &amp;quot;Activity in %n ^G&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Don&#039;t you want to start programs which need a DISPLAY ?&lt;br /&gt;
setenv DISPLAY &#039;:0&#039;&lt;br /&gt;
&lt;br /&gt;
# Bind F11 and F12 (NOT F1 and F2) to previous and next screen window&lt;br /&gt;
bindkey -k F1 prev&lt;br /&gt;
bindkey -k F2 prev&lt;br /&gt;
&lt;br /&gt;
# Default Buffers&lt;br /&gt;
screen -M -t Shell 0 &lt;br /&gt;
screen    -t Shell 1 &lt;br /&gt;
screen    -t Shell 2&lt;br /&gt;
screen    -t Shell 3&lt;br /&gt;
select 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then all that is left is to run it. Screen is included by default in every OSX package and is available in any package manager I&#039;ve seen (ports, portage, rpm, etc). If your using OSX, just type the following at the command prompt:&lt;br /&gt;
&lt;br /&gt;
 $ screen&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==No, not how do I start it. How do I &amp;lt;b&amp;gt;use&amp;lt;/b&amp;gt; it?==&lt;br /&gt;
Ah, yeah, I suppose that would help. Here&#039;s a quick run down of the basics. After starting screen hit your space bar to exit out of the welcome screen. You&#039;ll see what looks like a normal run of the mill terminal session. If you copy/pasted the configuration file above you&#039;ll also see a very convenient bar at the bottom that tells you which screen window your currently in, how many you have, and the name of your computer.&lt;br /&gt;
&lt;br /&gt;
All that is left is moving between these sessions, creating new ones, deleting old ones, and the holy grail of detaching and resuming sessions.&lt;br /&gt;
&lt;br /&gt;
 CTRL+A 1              - move to screen 1&lt;br /&gt;
&lt;br /&gt;
 CTRL+A 2              - move to screen 2&lt;br /&gt;
 &lt;br /&gt;
 CTRL+A &amp;lt;num&amp;gt;   - move to the screen with number &amp;lt;num&amp;gt;, e.g. 3, 4, 5, 6, &amp;lt;num&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 CTRL+A X               - move to screen X where X is a screen number&lt;br /&gt;
&lt;br /&gt;
 CTRL+A n               - move to the (n)ext screen&lt;br /&gt;
&lt;br /&gt;
 CTRL+A c               - (c)reate a new screen&lt;br /&gt;
&lt;br /&gt;
 $ exit                     - exit the current screen window (not the entire screen program, just that window)&lt;br /&gt;
&lt;br /&gt;
 CTRL+A d               - detach the screen session&lt;br /&gt;
 &lt;br /&gt;
 $ screen -list          - list all screen sessions. EXAMPLE OUTPUT 9368.ttyp1.cohen-static (Detached)&lt;br /&gt;
&lt;br /&gt;
 $ screen -r 9368    - Resume a screen session with an id of 9368 (see EXAMPLE above)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[http://www.kb.indiana.edu/data/acuy.html Indiana University UITS (additional information about screen)]&lt;br /&gt;
*[http://www.gnu.org/software/screen GNU Screen Homepage]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Profile&amp;diff=2579</id>
		<title>Hoffman2:Profile</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Profile&amp;diff=2579"/>
		<updated>2014-04-23T01:24:51Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: /* Changing Passwords */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
In UNIX systems, there are certain configuration files that get executed every time you login.  If you are using the Bash shell (default), you have a file called &amp;lt;code&amp;gt;.bash_profile&amp;lt;/code&amp;gt; which is processed when you log in.  In order to make the FMRI toolset available to you on Hoffman2 and so you can work well with others, we recommend that you follow the instructions in the [[Hoffman2:Profile#Basics|Basics section]].  Read [[Hoffman2:Profile#Extras|Extras]] for some bells and whistles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
You account has one last thing that needs to be edited before being usable.&lt;br /&gt;
&lt;br /&gt;
# [[Hoffman2:Accessing the Cluster#SSH - Command Line|SSH into Hoffman2]]&lt;br /&gt;
# Use your favorite [[Text Editors|text editor]] to edit the file &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt;&lt;br /&gt;
#: [[Text Editors#Vim (H2) (OSX)|VIM]]&lt;br /&gt;
#:* &amp;lt;pre&amp;gt;$ vim ~/.bash_profile&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: [[Text Editors#Emacs (H2) (OSX)|Emacs]]&lt;br /&gt;
#:* &amp;lt;pre&amp;gt;$ emacs ~/.bash_profile&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: [[Text Editors#NEdit (H2) (OSX)|NEdit]]&lt;br /&gt;
#:* &amp;lt;pre&amp;gt;$ nedit ~/.bash_profile&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Insert these lines at the &#039;&#039;&#039;bottom&#039;&#039;&#039; of the file&lt;br /&gt;
#:* &amp;lt;pre&amp;gt;source /u/home/FMRI/apps/etc/profile&amp;amp;#10;umask 007&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: [[Text Editors#Vim (H2) (OSX)|VIM]]&lt;br /&gt;
#:* Type &amp;lt;code&amp;gt;G&amp;lt;/code&amp;gt; - capital G - to go to the end of the file&lt;br /&gt;
#:* Type &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt; - capital A - to go to the end of the line and enter insert mode&lt;br /&gt;
#:* Type &amp;lt;code&amp;gt;ENTER&amp;lt;/code&amp;gt; - to insert a newline&lt;br /&gt;
#:* Type or paste in the specified lines.&lt;br /&gt;
#: [[Text Editors#Emacs (H2)(OSX)|Emacs]]&lt;br /&gt;
#:* Use the arrow keys to scroll the cursor down to the bottom of the document and add a newline.&lt;br /&gt;
#:* Type or paste in the specified lines.&lt;br /&gt;
#: [[Text Editors#NEdit (H2)|NEdit]]&lt;br /&gt;
#:* Use the arrow keys to scroll the cursor down to the bottom of the document and add a newline.&lt;br /&gt;
#:* Type or paste in the specified lines.&lt;br /&gt;
# Save the file&lt;br /&gt;
#: [[Text Editors#Vim (H2) (OSX)|VIM]]&lt;br /&gt;
#:* &amp;lt;code&amp;gt;ESC + &amp;quot;:wq&amp;quot; + ENTER&amp;lt;/code&amp;gt;&lt;br /&gt;
#: [[Text Editors#Emacs (H2) (OSX)|Emacs command line]]&lt;br /&gt;
#:* &amp;lt;code&amp;gt;CTRL+x, CTRL+c&amp;lt;/code&amp;gt;&lt;br /&gt;
#: [[Text Editors#Emacs (H2) (OSX)|Emacs GUI]]&lt;br /&gt;
#:* &amp;lt;code&amp;gt;CTRL+x, CTRL+c, y&amp;lt;/code&amp;gt;&lt;br /&gt;
#:* or use the menu system&lt;br /&gt;
#: [[Text Editors#NEdit (H2)|NEdit]]&lt;br /&gt;
#:* Use the menu.&lt;br /&gt;
# Log out of Hoffman2 and the next time you log in, everything will be set for you to start working.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Curious?===&lt;br /&gt;
For those that care, what you are doing is asking the computer to execute the file&lt;br /&gt;
 /u/home/FMRI/apps/etc/profile&lt;br /&gt;
every time you login.  This file modifies your PATH variable so you have access to the FMRI toolset.&lt;br /&gt;
&lt;br /&gt;
The last line&lt;br /&gt;
 umask 007&lt;br /&gt;
makes it so that any files you create will not allow &amp;quot;anyone&amp;quot; outside your group to read, write, or execute files and directories you make.  This does not automatically grant read, write, and execute privileges to you and your group though.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Extras==&lt;br /&gt;
===Collaboration===&lt;br /&gt;
By default, any files and directories you create will not necessarily have permissions that allow your group to write on them.  This can be a problem if other people are supposed to build on data you processed.  We have a script ([[Hoffman2:Scripts:fix_perms.sh |fix_perms.sh]]) that will kindly find any files you own in a specified directory that don&#039;t have read/write/execute permissions for the group and make it so they do.&lt;br /&gt;
&lt;br /&gt;
You can build this script into your bash profile so that every time you log into Hoffman2, it will run in the background.  It is also recommended that you run this script at the end of jobs to make results immediately available to collaborators.&lt;br /&gt;
&lt;br /&gt;
Adding the line&lt;br /&gt;
 fix_perms.sh -q /u/home/[GROUP]/data &amp;amp;&lt;br /&gt;
to the end of your bash profile will run the permission fixer on your group&#039;s common data directory in the background quietly each time you log in. &#039;&#039;&#039;Make sure to replace [GROUP] with the name of your Hoffman2 group (e.g. mscohen, sbook, cbearden, laltshul, jfeusner or mgreen).&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Colors===&lt;br /&gt;
You can change the content and color of your command prompt by editing your bash_profile.  There is a great explanation of how to do this [http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html here].&lt;br /&gt;
&lt;br /&gt;
Some of the content you can include in the command prompt:&lt;br /&gt;
;Current time&lt;br /&gt;
: You can format this however you want.  This helps when looking back through your Terminal to find when you made certain changes to files.&lt;br /&gt;
;Current working directory&lt;br /&gt;
: So you always know where you are in a filesystem and don&#039;t need to constantly retype &amp;lt;code&amp;gt;pwd&amp;lt;/code&amp;gt;.&lt;br /&gt;
;Username&lt;br /&gt;
: Who you are.  Helpful if you are logged into multiple servers under multiple accounts and need help keeping track.&lt;br /&gt;
;Host&lt;br /&gt;
: The name of the computer you are logged into.  This also helps you know where you are at all times.&lt;br /&gt;
&lt;br /&gt;
Line to add to your bash profile&lt;br /&gt;
 export PS1=&amp;quot;\[\e[0;31m\]\h\[\e[1;37m\]:\[\e[1;34m\]\w\n\[\e[1;37m\]\D{%Y-%m-%d-%H-%M-%S} \[\e[22;32m\]\u \$ &amp;quot;&lt;br /&gt;
Resulting prompt (on a black background)&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;code style=&amp;quot;background:#000000; padding:5pt&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt;HOST&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#000000&amp;quot;&amp;gt;:&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#0000FF&amp;quot;&amp;gt;CURRENT WORKING DIRECTORY&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FFFFFF&amp;quot;&amp;gt; DATETIME IN ISO8601 FORMAT&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#00FF00&amp;quot;&amp;gt;USERNAME $&amp;lt;/span&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Example Bash Profile==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#.bash_profile&lt;br /&gt;
&lt;br /&gt;
 # Get the aliases and functions&lt;br /&gt;
 if [ -f ~/.bashrc ]; then&lt;br /&gt;
         . ~/.bashrc&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
 # Source to use FMRI Apps&lt;br /&gt;
 source /u/home/FMRI/apps/etc/profile&lt;br /&gt;
&lt;br /&gt;
 # Umask (Revoke Permissions)&lt;br /&gt;
 umask 007&lt;br /&gt;
&lt;br /&gt;
 # Collaborative permissions (Replace collabDirectory with your project Directory)&lt;br /&gt;
 fix_perms.sh -q /u/home/sbook/data/collabDirectory &amp;amp;&lt;br /&gt;
&lt;br /&gt;
 # Happy Colors&lt;br /&gt;
 export PS1=&amp;quot;\[\e[0;31m\]\h\[\e[1;37m\]:\[\e[1;34m\]\w\n\[\e[1;37m\]\D{%Y-%m-%d-%H-%M-%S} \[\e[22;32m\]\u \$ &amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Fix for QRSH when consolidating job output files&lt;br /&gt;
alias qrsh=&#039;qrsh -o /dev/null&#039;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Changing Passwords ==&lt;br /&gt;
Use the command below to change password. It will prompt you for your old password, and then the new password.&lt;br /&gt;
 $ passwd&lt;br /&gt;
 Changing password for user joebruin.&lt;br /&gt;
 Please enter your current password:&lt;br /&gt;
 Please enter your new password:&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[http://ss64.com/bash/period.html Explanation of source]&lt;br /&gt;
*[http://linux.die.net/man/2/umask Man for umask]&lt;br /&gt;
*[http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html Better explanation of umask]&lt;br /&gt;
*[http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html Coloration]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 Datetime format]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Profile&amp;diff=2578</id>
		<title>Hoffman2:Profile</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Profile&amp;diff=2578"/>
		<updated>2014-04-23T01:24:20Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: /* Changing Passwords */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
In UNIX systems, there are certain configuration files that get executed every time you login.  If you are using the Bash shell (default), you have a file called &amp;lt;code&amp;gt;.bash_profile&amp;lt;/code&amp;gt; which is processed when you log in.  In order to make the FMRI toolset available to you on Hoffman2 and so you can work well with others, we recommend that you follow the instructions in the [[Hoffman2:Profile#Basics|Basics section]].  Read [[Hoffman2:Profile#Extras|Extras]] for some bells and whistles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
You account has one last thing that needs to be edited before being usable.&lt;br /&gt;
&lt;br /&gt;
# [[Hoffman2:Accessing the Cluster#SSH - Command Line|SSH into Hoffman2]]&lt;br /&gt;
# Use your favorite [[Text Editors|text editor]] to edit the file &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt;&lt;br /&gt;
#: [[Text Editors#Vim (H2) (OSX)|VIM]]&lt;br /&gt;
#:* &amp;lt;pre&amp;gt;$ vim ~/.bash_profile&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: [[Text Editors#Emacs (H2) (OSX)|Emacs]]&lt;br /&gt;
#:* &amp;lt;pre&amp;gt;$ emacs ~/.bash_profile&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: [[Text Editors#NEdit (H2) (OSX)|NEdit]]&lt;br /&gt;
#:* &amp;lt;pre&amp;gt;$ nedit ~/.bash_profile&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Insert these lines at the &#039;&#039;&#039;bottom&#039;&#039;&#039; of the file&lt;br /&gt;
#:* &amp;lt;pre&amp;gt;source /u/home/FMRI/apps/etc/profile&amp;amp;#10;umask 007&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: [[Text Editors#Vim (H2) (OSX)|VIM]]&lt;br /&gt;
#:* Type &amp;lt;code&amp;gt;G&amp;lt;/code&amp;gt; - capital G - to go to the end of the file&lt;br /&gt;
#:* Type &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt; - capital A - to go to the end of the line and enter insert mode&lt;br /&gt;
#:* Type &amp;lt;code&amp;gt;ENTER&amp;lt;/code&amp;gt; - to insert a newline&lt;br /&gt;
#:* Type or paste in the specified lines.&lt;br /&gt;
#: [[Text Editors#Emacs (H2)(OSX)|Emacs]]&lt;br /&gt;
#:* Use the arrow keys to scroll the cursor down to the bottom of the document and add a newline.&lt;br /&gt;
#:* Type or paste in the specified lines.&lt;br /&gt;
#: [[Text Editors#NEdit (H2)|NEdit]]&lt;br /&gt;
#:* Use the arrow keys to scroll the cursor down to the bottom of the document and add a newline.&lt;br /&gt;
#:* Type or paste in the specified lines.&lt;br /&gt;
# Save the file&lt;br /&gt;
#: [[Text Editors#Vim (H2) (OSX)|VIM]]&lt;br /&gt;
#:* &amp;lt;code&amp;gt;ESC + &amp;quot;:wq&amp;quot; + ENTER&amp;lt;/code&amp;gt;&lt;br /&gt;
#: [[Text Editors#Emacs (H2) (OSX)|Emacs command line]]&lt;br /&gt;
#:* &amp;lt;code&amp;gt;CTRL+x, CTRL+c&amp;lt;/code&amp;gt;&lt;br /&gt;
#: [[Text Editors#Emacs (H2) (OSX)|Emacs GUI]]&lt;br /&gt;
#:* &amp;lt;code&amp;gt;CTRL+x, CTRL+c, y&amp;lt;/code&amp;gt;&lt;br /&gt;
#:* or use the menu system&lt;br /&gt;
#: [[Text Editors#NEdit (H2)|NEdit]]&lt;br /&gt;
#:* Use the menu.&lt;br /&gt;
# Log out of Hoffman2 and the next time you log in, everything will be set for you to start working.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Curious?===&lt;br /&gt;
For those that care, what you are doing is asking the computer to execute the file&lt;br /&gt;
 /u/home/FMRI/apps/etc/profile&lt;br /&gt;
every time you login.  This file modifies your PATH variable so you have access to the FMRI toolset.&lt;br /&gt;
&lt;br /&gt;
The last line&lt;br /&gt;
 umask 007&lt;br /&gt;
makes it so that any files you create will not allow &amp;quot;anyone&amp;quot; outside your group to read, write, or execute files and directories you make.  This does not automatically grant read, write, and execute privileges to you and your group though.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Extras==&lt;br /&gt;
===Collaboration===&lt;br /&gt;
By default, any files and directories you create will not necessarily have permissions that allow your group to write on them.  This can be a problem if other people are supposed to build on data you processed.  We have a script ([[Hoffman2:Scripts:fix_perms.sh |fix_perms.sh]]) that will kindly find any files you own in a specified directory that don&#039;t have read/write/execute permissions for the group and make it so they do.&lt;br /&gt;
&lt;br /&gt;
You can build this script into your bash profile so that every time you log into Hoffman2, it will run in the background.  It is also recommended that you run this script at the end of jobs to make results immediately available to collaborators.&lt;br /&gt;
&lt;br /&gt;
Adding the line&lt;br /&gt;
 fix_perms.sh -q /u/home/[GROUP]/data &amp;amp;&lt;br /&gt;
to the end of your bash profile will run the permission fixer on your group&#039;s common data directory in the background quietly each time you log in. &#039;&#039;&#039;Make sure to replace [GROUP] with the name of your Hoffman2 group (e.g. mscohen, sbook, cbearden, laltshul, jfeusner or mgreen).&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Colors===&lt;br /&gt;
You can change the content and color of your command prompt by editing your bash_profile.  There is a great explanation of how to do this [http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html here].&lt;br /&gt;
&lt;br /&gt;
Some of the content you can include in the command prompt:&lt;br /&gt;
;Current time&lt;br /&gt;
: You can format this however you want.  This helps when looking back through your Terminal to find when you made certain changes to files.&lt;br /&gt;
;Current working directory&lt;br /&gt;
: So you always know where you are in a filesystem and don&#039;t need to constantly retype &amp;lt;code&amp;gt;pwd&amp;lt;/code&amp;gt;.&lt;br /&gt;
;Username&lt;br /&gt;
: Who you are.  Helpful if you are logged into multiple servers under multiple accounts and need help keeping track.&lt;br /&gt;
;Host&lt;br /&gt;
: The name of the computer you are logged into.  This also helps you know where you are at all times.&lt;br /&gt;
&lt;br /&gt;
Line to add to your bash profile&lt;br /&gt;
 export PS1=&amp;quot;\[\e[0;31m\]\h\[\e[1;37m\]:\[\e[1;34m\]\w\n\[\e[1;37m\]\D{%Y-%m-%d-%H-%M-%S} \[\e[22;32m\]\u \$ &amp;quot;&lt;br /&gt;
Resulting prompt (on a black background)&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;code style=&amp;quot;background:#000000; padding:5pt&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt;HOST&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#000000&amp;quot;&amp;gt;:&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#0000FF&amp;quot;&amp;gt;CURRENT WORKING DIRECTORY&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FFFFFF&amp;quot;&amp;gt; DATETIME IN ISO8601 FORMAT&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#00FF00&amp;quot;&amp;gt;USERNAME $&amp;lt;/span&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Example Bash Profile==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#.bash_profile&lt;br /&gt;
&lt;br /&gt;
 # Get the aliases and functions&lt;br /&gt;
 if [ -f ~/.bashrc ]; then&lt;br /&gt;
         . ~/.bashrc&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
 # Source to use FMRI Apps&lt;br /&gt;
 source /u/home/FMRI/apps/etc/profile&lt;br /&gt;
&lt;br /&gt;
 # Umask (Revoke Permissions)&lt;br /&gt;
 umask 007&lt;br /&gt;
&lt;br /&gt;
 # Collaborative permissions (Replace collabDirectory with your project Directory)&lt;br /&gt;
 fix_perms.sh -q /u/home/sbook/data/collabDirectory &amp;amp;&lt;br /&gt;
&lt;br /&gt;
 # Happy Colors&lt;br /&gt;
 export PS1=&amp;quot;\[\e[0;31m\]\h\[\e[1;37m\]:\[\e[1;34m\]\w\n\[\e[1;37m\]\D{%Y-%m-%d-%H-%M-%S} \[\e[22;32m\]\u \$ &amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Fix for QRSH when consolidating job output files&lt;br /&gt;
alias qrsh=&#039;qrsh -o /dev/null&#039;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Changing Passwords ==&lt;br /&gt;
Use the command below to change password. It will prompt you for your old password, and then the new password.&lt;br /&gt;
 $ passwd&lt;br /&gt;
Changing password for user joebruin.&lt;br /&gt;
Please enter your current password:&lt;br /&gt;
Please enter your new password:&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[http://ss64.com/bash/period.html Explanation of source]&lt;br /&gt;
*[http://linux.die.net/man/2/umask Man for umask]&lt;br /&gt;
*[http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html Better explanation of umask]&lt;br /&gt;
*[http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html Coloration]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 Datetime format]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Getting_an_Account&amp;diff=2577</id>
		<title>Hoffman2:Getting an Account</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Getting_an_Account&amp;diff=2577"/>
		<updated>2014-04-23T01:23:44Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
==UCLA Grid Portal==&lt;br /&gt;
The UCLA Grid Portal provides access to many clusters hosted at UCLA. By registering for an account, not only do you gain access to the Hoffman2 cluster and any other member clusters by request, but you also gain access to a variety of shared resources including matlab, R, Octave, Mathematica, FSL, and many more at UCLA and the UC system in general. Yes, the Grid Portal is a multi-university effort spanning from Northern to Southern California.&lt;br /&gt;
&lt;br /&gt;
You will probably be amazed at the resources you gain simply by signing up for the Grid Portal. For further information, please visit the [https://grid.ucla.edu:9443/gridsphere/gridsphere?cid=home&amp;amp;JavaScript=enabled Grid Portal] home page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Requesting Hoffman2 Account==&lt;br /&gt;
===What you need===&lt;br /&gt;
A UCLA BOL account, available for free to any UCLA staff, student, or faculty member. If you do not have a BOL account, head to the [http://www.bol.ucla.edu/ UCLA BOL] services page. &#039;&#039;&#039;Click on &amp;quot;Create UCLA Logon ID&amp;quot; under &amp;quot;UCLA Logon ID Utilities&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Applying for the Account===&lt;br /&gt;
 ATTENTION: If you are a member of another lab or are a PI interested in obtaining Hoffman access, please see the section&lt;br /&gt;
 [[#Becoming A Faculty Sponsor | Becoming a Faculty Sponsor]]&lt;br /&gt;
#Navigate to the [http://hpc.ucla.edu/hoffman2/getting-started/getting-started.php Account Applications] page.&lt;br /&gt;
#Read over the application summary&lt;br /&gt;
#Click &amp;quot;New User Registration&amp;quot;&lt;br /&gt;
#Authenticate using your UCLA BOL username and pass&lt;br /&gt;
#Fill out the form with appropriate information. Please read the information at the top of the form to familiarize yourself with the process of gaining an account. For Hoffman2, your Faculty Sponsor should be Mark Cohen, Alison Burggren (for Susan Bookheimer&#039;s lab), or your respective PI if they have created an account on Hoffman.&lt;br /&gt;
;Proposed UserName&lt;br /&gt;
:This will be the name you use to sign into the cluster&lt;br /&gt;
;Select a Resource&lt;br /&gt;
:For the Mark Cohen/Susan Bookheimer labs, choose &amp;quot;Hoffman2&amp;quot;. However, you can request access to any cluster that is a member of the Grid Portal. &lt;br /&gt;
&lt;br /&gt;
Click Submit and you are done.&lt;br /&gt;
You will receive an email with a link to a temporary password. PLEASE WRITE IT DOWN. The link expires after 72 hours. You can change your password by going to [[ Hoffman2:Profile#Changing_Passwords | Here. ]]&lt;br /&gt;
&lt;br /&gt;
==Becoming A Faculty Sponsor==&lt;br /&gt;
If you are a PI or Lab Manager interested in the Hoffman2 server, you will want to create a Faculty Sponsor account first. Also, if you are a member of another lab collaborating with the Cohen or Bookheimer labs, you may want to forward this information to your PI or Lab Manager. Faculty Sponsors can approve (or deny) applications for membership to their group. They also receive a group folder and a unique group id so their users can work and share data easily with each other.&lt;br /&gt;
&lt;br /&gt;
#Navigate to the [http://www.ats.ucla.edu/clusters/common/account_applications/cluster.htm Account Applications] page.&lt;br /&gt;
#Read over the application summary&lt;br /&gt;
#Click &amp;quot;Request to become faculty sponsor&amp;quot;&lt;br /&gt;
#Fill out the form with appropriate information.&lt;br /&gt;
&lt;br /&gt;
Under &#039;Reason&#039;, about any generic reason is appropriate for faculty members. For example, &amp;quot;To perform fMRI analysis.&amp;quot; will likely suffice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Change Passwords ===&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://grid.ucla.edu:9443/gridsphere/gridsphere?cid=home&amp;amp;JavaScript=enabled UCLA Grid Portal]&lt;br /&gt;
*[http://www.bol.ucla.edu/ UCLA BOL Home Page]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/ Hoffman2 Home Page]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Getting_an_Account&amp;diff=2576</id>
		<title>Hoffman2:Getting an Account</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Getting_an_Account&amp;diff=2576"/>
		<updated>2014-04-23T01:22:17Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
==UCLA Grid Portal==&lt;br /&gt;
The UCLA Grid Portal provides access to many clusters hosted at UCLA. By registering for an account, not only do you gain access to the Hoffman2 cluster and any other member clusters by request, but you also gain access to a variety of shared resources including matlab, R, Octave, Mathematica, FSL, and many more at UCLA and the UC system in general. Yes, the Grid Portal is a multi-university effort spanning from Northern to Southern California.&lt;br /&gt;
&lt;br /&gt;
You will probably be amazed at the resources you gain simply by signing up for the Grid Portal. For further information, please visit the [https://grid.ucla.edu:9443/gridsphere/gridsphere?cid=home&amp;amp;JavaScript=enabled Grid Portal] home page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Requesting Hoffman2 Account==&lt;br /&gt;
===What you need===&lt;br /&gt;
A UCLA BOL account, available for free to any UCLA staff, student, or faculty member. If you do not have a BOL account, head to the [http://www.bol.ucla.edu/ UCLA BOL] services page. &#039;&#039;&#039;Click on &amp;quot;Create UCLA Logon ID&amp;quot; under &amp;quot;UCLA Logon ID Utilities&amp;quot;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
===Applying for the Account===&lt;br /&gt;
 ATTENTION: If you are a member of another lab or are a PI interested in obtaining Hoffman access, please see the section&lt;br /&gt;
 [[#Becoming A Faculty Sponsor | Becoming a Faculty Sponsor]]&lt;br /&gt;
#Navigate to the [http://hpc.ucla.edu/hoffman2/getting-started/getting-started.php Account Applications] page.&lt;br /&gt;
#Read over the application summary&lt;br /&gt;
#Click &amp;quot;New User Registration&amp;quot;&lt;br /&gt;
#Authenticate using your UCLA BOL username and pass&lt;br /&gt;
#Fill out the form with appropriate information. Please read the information at the top of the form to familiarize yourself with the process of gaining an account. For Hoffman2, your Faculty Sponsor should be Mark Cohen, Alison Burggren (for Susan Bookheimer&#039;s lab), or your respective PI if they have created an account on Hoffman.&lt;br /&gt;
;Proposed UserName&lt;br /&gt;
:This will be the name you use to sign into the cluster&lt;br /&gt;
;Select a Resource&lt;br /&gt;
:For the Mark Cohen/Susan Bookheimer labs, choose &amp;quot;Hoffman2&amp;quot;. However, you can request access to any cluster that is a member of the Grid Portal. &lt;br /&gt;
&lt;br /&gt;
Click Submit and you are done.&lt;br /&gt;
You will receive an email with a link to a temporary password. PLEASE WRITE IT DOWN. The link expires after 72 hours. [[ Hoffman2:Profile#Changing_Passwords | How to change Passwords. ]]&lt;br /&gt;
==Becoming A Faculty Sponsor==&lt;br /&gt;
If you are a PI or Lab Manager interested in the Hoffman2 server, you will want to create a Faculty Sponsor account first. Also, if you are a member of another lab collaborating with the Cohen or Bookheimer labs, you may want to forward this information to your PI or Lab Manager. Faculty Sponsors can approve (or deny) applications for membership to their group. They also receive a group folder and a unique group id so their users can work and share data easily with each other.&lt;br /&gt;
&lt;br /&gt;
#Navigate to the [http://www.ats.ucla.edu/clusters/common/account_applications/cluster.htm Account Applications] page.&lt;br /&gt;
#Read over the application summary&lt;br /&gt;
#Click &amp;quot;Request to become faculty sponsor&amp;quot;&lt;br /&gt;
#Fill out the form with appropriate information.&lt;br /&gt;
&lt;br /&gt;
Under &#039;Reason&#039;, about any generic reason is appropriate for faculty members. For example, &amp;quot;To perform fMRI analysis.&amp;quot; will likely suffice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Change Passwords ===&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://grid.ucla.edu:9443/gridsphere/gridsphere?cid=home&amp;amp;JavaScript=enabled UCLA Grid Portal]&lt;br /&gt;
*[http://www.bol.ucla.edu/ UCLA BOL Home Page]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/ Hoffman2 Home Page]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Profile&amp;diff=2575</id>
		<title>Hoffman2:Profile</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Profile&amp;diff=2575"/>
		<updated>2014-04-23T01:18:00Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
In UNIX systems, there are certain configuration files that get executed every time you login.  If you are using the Bash shell (default), you have a file called &amp;lt;code&amp;gt;.bash_profile&amp;lt;/code&amp;gt; which is processed when you log in.  In order to make the FMRI toolset available to you on Hoffman2 and so you can work well with others, we recommend that you follow the instructions in the [[Hoffman2:Profile#Basics|Basics section]].  Read [[Hoffman2:Profile#Extras|Extras]] for some bells and whistles.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
You account has one last thing that needs to be edited before being usable.&lt;br /&gt;
&lt;br /&gt;
# [[Hoffman2:Accessing the Cluster#SSH - Command Line|SSH into Hoffman2]]&lt;br /&gt;
# Use your favorite [[Text Editors|text editor]] to edit the file &amp;lt;code&amp;gt;~/.bash_profile&amp;lt;/code&amp;gt;&lt;br /&gt;
#: [[Text Editors#Vim (H2) (OSX)|VIM]]&lt;br /&gt;
#:* &amp;lt;pre&amp;gt;$ vim ~/.bash_profile&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: [[Text Editors#Emacs (H2) (OSX)|Emacs]]&lt;br /&gt;
#:* &amp;lt;pre&amp;gt;$ emacs ~/.bash_profile&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: [[Text Editors#NEdit (H2) (OSX)|NEdit]]&lt;br /&gt;
#:* &amp;lt;pre&amp;gt;$ nedit ~/.bash_profile&amp;lt;/pre&amp;gt;&lt;br /&gt;
# Insert these lines at the &#039;&#039;&#039;bottom&#039;&#039;&#039; of the file&lt;br /&gt;
#:* &amp;lt;pre&amp;gt;source /u/home/FMRI/apps/etc/profile&amp;amp;#10;umask 007&amp;lt;/pre&amp;gt;&lt;br /&gt;
#: [[Text Editors#Vim (H2) (OSX)|VIM]]&lt;br /&gt;
#:* Type &amp;lt;code&amp;gt;G&amp;lt;/code&amp;gt; - capital G - to go to the end of the file&lt;br /&gt;
#:* Type &amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt; - capital A - to go to the end of the line and enter insert mode&lt;br /&gt;
#:* Type &amp;lt;code&amp;gt;ENTER&amp;lt;/code&amp;gt; - to insert a newline&lt;br /&gt;
#:* Type or paste in the specified lines.&lt;br /&gt;
#: [[Text Editors#Emacs (H2)(OSX)|Emacs]]&lt;br /&gt;
#:* Use the arrow keys to scroll the cursor down to the bottom of the document and add a newline.&lt;br /&gt;
#:* Type or paste in the specified lines.&lt;br /&gt;
#: [[Text Editors#NEdit (H2)|NEdit]]&lt;br /&gt;
#:* Use the arrow keys to scroll the cursor down to the bottom of the document and add a newline.&lt;br /&gt;
#:* Type or paste in the specified lines.&lt;br /&gt;
# Save the file&lt;br /&gt;
#: [[Text Editors#Vim (H2) (OSX)|VIM]]&lt;br /&gt;
#:* &amp;lt;code&amp;gt;ESC + &amp;quot;:wq&amp;quot; + ENTER&amp;lt;/code&amp;gt;&lt;br /&gt;
#: [[Text Editors#Emacs (H2) (OSX)|Emacs command line]]&lt;br /&gt;
#:* &amp;lt;code&amp;gt;CTRL+x, CTRL+c&amp;lt;/code&amp;gt;&lt;br /&gt;
#: [[Text Editors#Emacs (H2) (OSX)|Emacs GUI]]&lt;br /&gt;
#:* &amp;lt;code&amp;gt;CTRL+x, CTRL+c, y&amp;lt;/code&amp;gt;&lt;br /&gt;
#:* or use the menu system&lt;br /&gt;
#: [[Text Editors#NEdit (H2)|NEdit]]&lt;br /&gt;
#:* Use the menu.&lt;br /&gt;
# Log out of Hoffman2 and the next time you log in, everything will be set for you to start working.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Curious?===&lt;br /&gt;
For those that care, what you are doing is asking the computer to execute the file&lt;br /&gt;
 /u/home/FMRI/apps/etc/profile&lt;br /&gt;
every time you login.  This file modifies your PATH variable so you have access to the FMRI toolset.&lt;br /&gt;
&lt;br /&gt;
The last line&lt;br /&gt;
 umask 007&lt;br /&gt;
makes it so that any files you create will not allow &amp;quot;anyone&amp;quot; outside your group to read, write, or execute files and directories you make.  This does not automatically grant read, write, and execute privileges to you and your group though.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Extras==&lt;br /&gt;
===Collaboration===&lt;br /&gt;
By default, any files and directories you create will not necessarily have permissions that allow your group to write on them.  This can be a problem if other people are supposed to build on data you processed.  We have a script ([[Hoffman2:Scripts:fix_perms.sh |fix_perms.sh]]) that will kindly find any files you own in a specified directory that don&#039;t have read/write/execute permissions for the group and make it so they do.&lt;br /&gt;
&lt;br /&gt;
You can build this script into your bash profile so that every time you log into Hoffman2, it will run in the background.  It is also recommended that you run this script at the end of jobs to make results immediately available to collaborators.&lt;br /&gt;
&lt;br /&gt;
Adding the line&lt;br /&gt;
 fix_perms.sh -q /u/home/[GROUP]/data &amp;amp;&lt;br /&gt;
to the end of your bash profile will run the permission fixer on your group&#039;s common data directory in the background quietly each time you log in. &#039;&#039;&#039;Make sure to replace [GROUP] with the name of your Hoffman2 group (e.g. mscohen, sbook, cbearden, laltshul, jfeusner or mgreen).&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Colors===&lt;br /&gt;
You can change the content and color of your command prompt by editing your bash_profile.  There is a great explanation of how to do this [http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html here].&lt;br /&gt;
&lt;br /&gt;
Some of the content you can include in the command prompt:&lt;br /&gt;
;Current time&lt;br /&gt;
: You can format this however you want.  This helps when looking back through your Terminal to find when you made certain changes to files.&lt;br /&gt;
;Current working directory&lt;br /&gt;
: So you always know where you are in a filesystem and don&#039;t need to constantly retype &amp;lt;code&amp;gt;pwd&amp;lt;/code&amp;gt;.&lt;br /&gt;
;Username&lt;br /&gt;
: Who you are.  Helpful if you are logged into multiple servers under multiple accounts and need help keeping track.&lt;br /&gt;
;Host&lt;br /&gt;
: The name of the computer you are logged into.  This also helps you know where you are at all times.&lt;br /&gt;
&lt;br /&gt;
Line to add to your bash profile&lt;br /&gt;
 export PS1=&amp;quot;\[\e[0;31m\]\h\[\e[1;37m\]:\[\e[1;34m\]\w\n\[\e[1;37m\]\D{%Y-%m-%d-%H-%M-%S} \[\e[22;32m\]\u \$ &amp;quot;&lt;br /&gt;
Resulting prompt (on a black background)&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;code style=&amp;quot;background:#000000; padding:5pt&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt;HOST&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#000000&amp;quot;&amp;gt;:&amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color:#0000FF&amp;quot;&amp;gt;CURRENT WORKING DIRECTORY&amp;lt;/span&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FFFFFF&amp;quot;&amp;gt; DATETIME IN ISO8601 FORMAT&amp;lt;/span&amp;gt; &amp;lt;span style=&amp;quot;color:#00FF00&amp;quot;&amp;gt;USERNAME $&amp;lt;/span&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Example Bash Profile==&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#.bash_profile&lt;br /&gt;
&lt;br /&gt;
 # Get the aliases and functions&lt;br /&gt;
 if [ -f ~/.bashrc ]; then&lt;br /&gt;
         . ~/.bashrc&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
 # Source to use FMRI Apps&lt;br /&gt;
 source /u/home/FMRI/apps/etc/profile&lt;br /&gt;
&lt;br /&gt;
 # Umask (Revoke Permissions)&lt;br /&gt;
 umask 007&lt;br /&gt;
&lt;br /&gt;
 # Collaborative permissions (Replace collabDirectory with your project Directory)&lt;br /&gt;
 fix_perms.sh -q /u/home/sbook/data/collabDirectory &amp;amp;&lt;br /&gt;
&lt;br /&gt;
 # Happy Colors&lt;br /&gt;
 export PS1=&amp;quot;\[\e[0;31m\]\h\[\e[1;37m\]:\[\e[1;34m\]\w\n\[\e[1;37m\]\D{%Y-%m-%d-%H-%M-%S} \[\e[22;32m\]\u \$ &amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Fix for QRSH when consolidating job output files&lt;br /&gt;
alias qrsh=&#039;qrsh -o /dev/null&#039;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Changing Passwords ==&lt;br /&gt;
Use the command below to change password. It will prompt you for your old password, and then the new password.&lt;br /&gt;
 $ passwd&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[http://ss64.com/bash/period.html Explanation of source]&lt;br /&gt;
*[http://linux.die.net/man/2/umask Man for umask]&lt;br /&gt;
*[http://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html Better explanation of umask]&lt;br /&gt;
*[http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html Coloration]&lt;br /&gt;
*[http://en.wikipedia.org/wiki/ISO_8601 ISO 8601 Datetime format]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Introduction&amp;diff=2574</id>
		<title>Hoffman2:Introduction</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Introduction&amp;diff=2574"/>
		<updated>2014-04-23T01:11:48Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: /* Computing Nodes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
==What is Hoffman2?==&lt;br /&gt;
The Hoffman2 Cluster is a campus computing resource at UCLA and is named for Paul Hoffman (1947-2003).  It is maintained by the Academic Technology Services Department at UCLA and they host a webpage about it [http://www.ats.ucla.edu/clusters/hoffman2/ here].  With many high end processors and data storage and backup technologies, it is a useful tool for executing research computations especially when working with large datasets.  More than 1000 users are currently registered and the cluster sees tremendous usage.  Click [[Hoffman2:Getting an Account|here]] to find out how to join that user group.  In February 2012 alone, there were more than 4 million compute hours logged.  See more usage statistics [https://idre.ucla.edu/hoffman2/cluster-statistics here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Anatomy of the Computing Cluster==&lt;br /&gt;
What does Hoffman2 consist of?&lt;br /&gt;
* Login Nodes&lt;br /&gt;
* Computing Nodes&lt;br /&gt;
* Storage Space&lt;br /&gt;
* Sun Grid Engine (a brain of sorts)&lt;br /&gt;
&lt;br /&gt;
[[File:hoffman2layout.png]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&#039;&#039;**Image taken from a previous ATS &amp;quot;Using Hoffman2 Cluster&amp;quot; slide deck and modified for our point.**&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Login Nodes===&lt;br /&gt;
There are four login nodes which allow you to access and interact with the Hoffman2 Cluster.  These are essentially four dedicated computers that you can [[Hoffman2:Accessing the Cluster#SSH|SSH]] into and use to look at and edit your files or submit computing jobs to the queue (more on what the queue is in a bit).  It is important to remember that these are four computers being shared by ALL the Hoffman2 users.  Doing ANY type of heavy computing on these nodes is frowned upon.  If you are:&lt;br /&gt;
*moving lots of files&lt;br /&gt;
*calculating the inverse solution to an EEG signal, or&lt;br /&gt;
*running a bunch of python scripts to extract tractography of a brain&lt;br /&gt;
you should NOT be doing this on a login node.  If the sysadmins at ATS find any process that is taking up too many resources on the login nodes, they reserve the right to terminate the process immediately.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Computing Nodes===&lt;br /&gt;
As of April 2014, Hoffman2 is made up of more than 12000 processors across three data centers and this number continues to grow as the cluster is expanded. [http://hpc.ucla.edu/hoffman2/h2stat/h2stat.php  Stats.] The individual cores of the processors are where your programs gets executed when you submit a job to the cluster.  There are ways to request that you only be given one core to use or that you be given many cores.&lt;br /&gt;
&lt;br /&gt;
There is also a GPU cluster that has more than 300 nodes, but access to this must be requested separately from a normal Hoffman2 account.  Look [http://fuji.ats.ucla.edu/for-transfer/hoffman2-cluster/computing/gpuq.htm here] for how to request access.&lt;br /&gt;
&lt;br /&gt;
The reason the number of computing cores continues to grow is because more resource groups (like individual research labs) join Hoffman2 and buy nodes to be integrated into the cluster.  Nodes contributed by a resource group are guaranteed to that resource group and can be used to run longer jobs ([http://fuji.ats.ucla.edu/for-transfer/hoffman2-cluster/computing/policies.htm#highp up to 14 days]).  As of June 2013, the Cohen and Bookheimer groups on Hoffman2 have 96 cores:&lt;br /&gt;
* 6 nodes (installed pre 2010) each with&lt;br /&gt;
** 8 cores&lt;br /&gt;
** 8GB RAM&lt;br /&gt;
* 3 nodes (installed Fall 2012) each with&lt;br /&gt;
** 16 cores&lt;br /&gt;
** 48GB RAM&lt;br /&gt;
Use the command &amp;lt;code&amp;gt;mygroup&amp;lt;/code&amp;gt; to see what resources you have available.&lt;br /&gt;
&lt;br /&gt;
===Storage Space===&lt;br /&gt;
For official and up-to-date information about storage space, [https://idre.ucla.edu/hoffman2/data-storage click here].  If you want a quick overview, see below.&lt;br /&gt;
&lt;br /&gt;
====Long Term Storage====&lt;br /&gt;
ATS maintains high end storage systems (BlueArc and Panasas) for Hoffman2 disk space.  There have built in redundancies and are fault tolerant.  On top of that, ATS does tape backups regularly.&lt;br /&gt;
&lt;br /&gt;
If all of that sounded Greek to you, the important thing to understand is that there is a lot of disk space on Hoffman2 and ATS takes great pains to make sure your data is safe.&lt;br /&gt;
&lt;br /&gt;
=====Home Directories=====&lt;br /&gt;
:When you login to Hoffman2, you get dropped into your home directory immediately. Home directory locations follow the pattern&lt;br /&gt;
::&amp;lt;code&amp;gt;/u/home/[u]/[username]&amp;lt;/code&amp;gt;&lt;br /&gt;
:Where &amp;lt;code&amp;gt;[u]&amp;lt;/code&amp;gt; is the first letter of the username, e.g.&lt;br /&gt;
::&amp;lt;code&amp;gt;/u/home/j/jbruin&amp;lt;/code&amp;gt;&lt;br /&gt;
::&amp;lt;code&amp;gt; /u/home/t/ttrojan&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:Your home directory is where you can keep your personal files (papers, correspondences, notes, etc.) and files you frequently change (source code, configuration files, job command files).  &#039;&#039;&#039;It is not the place for your large datasets for computing.&#039;&#039;&#039;  Data in your home directory is accessible from all login and computing nodes.&lt;br /&gt;
&lt;br /&gt;
:Every user is allowed to store up to 20GB of data files in their home directory.  If you are part of a cluster contributing group, you can also store data files in that group&#039;s common space described in the next section...&lt;br /&gt;
&lt;br /&gt;
:[[Hoffman2:Quotas|Find out how much space your group is using on Hoffman2.]]&lt;br /&gt;
&lt;br /&gt;
=====Group Directory=====&lt;br /&gt;
:Group directories are given to groups that purchase extended storage space (in 1TB/1million file increments for three year periods, as of Summer 2013).  This is common space designed for collaboration and is where your datasets should mainly be stored.  Individual users are given directories under the main group directory to help organize data ownership.  For example:&lt;br /&gt;
::&amp;lt;pre&amp;gt;/u/home/mscohen           # Common group directory&amp;lt;/pre&amp;gt;&lt;br /&gt;
::&amp;lt;pre&amp;gt;/u/home/mscohen/data      # Common group &amp;quot;data&amp;quot; directory, create subdirectories within this for specific projects or uses&amp;lt;/pre&amp;gt;&lt;br /&gt;
::&amp;lt;pre&amp;gt;/u/home/mscohen/aaronab   # mscohen group directory for the user aaronab, different from their /u/home/a/aaronab home directory&amp;lt;/pre&amp;gt;&lt;br /&gt;
::&amp;lt;pre&amp;gt;/u/home/mscohen/kerr      # mscohen group directory for the user kerr, different from their /u/home/k/kerr home directory&amp;lt;/pre&amp;gt;&lt;br /&gt;
::&amp;lt;pre&amp;gt;/u/home/mscohen/pamelita  # mscohen group directory for the user pamelita, different from their /u/home/p/pamelita home directory&amp;lt;/pre&amp;gt;&lt;br /&gt;
:and these directories are accessible from all login and computing nodes.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;&#039;These directories have limits to how many files can be put in them and how large those files can be.&#039;&#039;&#039;&lt;br /&gt;
:*When a group buys in for 1TB/1million files, their quota is considered met when they have EITHER&lt;br /&gt;
:** 1TB worth of files, OR&lt;br /&gt;
:** 1 million files&lt;br /&gt;
:*When a group buys in for 4TB/4million files, their quota is considered met when they have EITHER&lt;br /&gt;
:** 4TB worth of files, OR&lt;br /&gt;
:** 4 million files&lt;br /&gt;
:&#039;&#039;&#039;Once a group&#039;s quota has been reached, everyone in that group is immediately prevented from creating any more files in the group directory automatically.&#039;&#039;&#039; This means any computing jobs you are running may fail due to an inability to write out their results.  You may also have trouble starting GUI sessions due to an inability to create temporary files.&lt;br /&gt;
:Read about how to monitor your disk quota [[Hoffman2:Quotas|here]].&lt;br /&gt;
&lt;br /&gt;
=====Historical Notes=====&lt;br /&gt;
======June 2013======&lt;br /&gt;
: &#039;&#039;Before July 2013, for users that were part of groups that purchased storage, their home directories were the same as their personal group directories.  e.g.&#039;&#039;&lt;br /&gt;
::&amp;lt;code&amp;gt; /u/home/j/jbruin&amp;lt;/code&amp;gt;&lt;br /&gt;
:&#039;&#039;did not exist, but&#039;&#039;&lt;br /&gt;
::&amp;lt;code&amp;gt; /u/home/mscohen/jbruin&amp;lt;/code&amp;gt;&lt;br /&gt;
:&#039;&#039;did exist and was the home directory (and personal group directory) for the user jbruin.  IDRE changed this behavior after the Summer Maintenance restart in 2013 to better separate users from their groups.  This separation more cleanly allows users to be part of multiple storage groups (e.g. belonging to sbook and mscohen groups), or switch between single groups over time, while retaining their own personal space on the cluster. A symlink named &#039;&#039;&#039;project&#039;&#039;&#039; was placed in the new home directories pointing to the old home directories. e.g.&#039;&#039;&lt;br /&gt;
::&amp;lt;code&amp;gt; /u/home/j/jbruin/project -&amp;gt; /u/home/mscohen/jbruin&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
======June 2011======&lt;br /&gt;
: &#039;&#039;Before July 2011, there was a symlink pointing from /u/home9 to /u/home as a legacy support mechanism.  This symlink was finally removed after the Summer Maintenance of 2011 and some adjustments had to be made by anyone still using home9 references.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
====Temporary Storage====&lt;br /&gt;
When running a computing job on Hoffman2, reading and writing a bunch of files in your home directory can be slow.  So faster temporary storage is available to use for ongoing jobs.  Read the official description [https://idre.ucla.edu/hoffman2/data-storage#tempfs here].&lt;br /&gt;
&lt;br /&gt;
=====work=====&lt;br /&gt;
:&#039;&#039;&#039;/work&#039;&#039;&#039;&lt;br /&gt;
:Each computing node has its own unique &amp;quot;work&amp;quot; directory.  This is only accessible by jobs on that specific node.  Any data your job may put on it will be removed as soon as your job finishes.  There is at least 100GB of this space on each node, but you may only use a portion proportional to the number of cores you are using on that node (you have to share).&lt;br /&gt;
&lt;br /&gt;
:Every job is given a unique subdirectory on &#039;&#039;work&#039;&#039; where it can read and write files rapidly.  The [[Hoffman2:UNIX Tutorial#Environment Variables|UNIX environment variable]] &amp;lt;code&amp;gt;$TMPDIR&amp;lt;/code&amp;gt; points to this directory.&lt;br /&gt;
&lt;br /&gt;
:If your job reads from or writes to a file repeatedly, you may save time by keeping that file in this temporary directory and then moving it to your home directory at completion so it is not deleted.&lt;br /&gt;
&lt;br /&gt;
=====scratch=====&lt;br /&gt;
:&#039;&#039;&#039;/u/scratch/[u]/[username]&#039;&#039;&#039;&lt;br /&gt;
:Where &#039;&#039;[username]&#039;&#039; is replaced with your Hoffman2 username and &#039;&#039;[u]&#039;&#039; is replaced with the first letter of your username.  Data here is accessible on all login and computing nodes.  You can use up to 2TB of space here, but data is not kept here for more than 7 days and can be overwritten sooner if there is a high demand for scratch space.  Use the [[Hoffman2:UNIX Tutorial#Environment Variables|UNIX environment variable]] &amp;lt;code&amp;gt;$SCRATCH&amp;lt;/code&amp;gt; to reliably access your personal scratch directory.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Sun Grid Engine===&lt;br /&gt;
The Sun Grid Engine is the brains behind how jobs get executed on the cluster.  When you request that a script be run on Hoffman2, the SGE looks at the resources you requested (how much memory, how many computing cores, how many computing hours, etc) and puts your job in a queue (a waiting line for those not familiar with British English) based on your requirements.  Less demanding jobs generally get front loaded while more demanding ones must wait for adequate resources to free up.  The SGE tries to schedule jobs on computing nodes in order to make the most efficient use of the resources available.&lt;br /&gt;
&lt;br /&gt;
====Queues====&lt;br /&gt;
There is more than one queue on Hoffman2.  Each is for a slightly different purpose:&lt;br /&gt;
; express&lt;br /&gt;
: For jobs requesting at most 2 hours of computing time.&lt;br /&gt;
; interactive&lt;br /&gt;
: For jobs requesting at most 24 hours of computing time and requiring the ability for users to interact with the program running.&lt;br /&gt;
; highp&lt;br /&gt;
: For jobs requesting at most 14 days of computing time.  These are required to run on nodes owned by your group.&lt;br /&gt;
And there are others.  Read about them [http://fuji.ats.ucla.edu/for-transfer/hoffman2-cluster/computing/policies.htm here].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Hoffman2:Submitting Jobs|Find out how to submit computing jobs to the Hoffman2 Cluster.]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/ Hoffman2 Webpage]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/h2stat/statistics.htm Hoffman2 Statistics]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hosting/ Hoffman2 Cluster Hosting]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/computing/batch/policies.htm Hoffman2 Queues]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/hardware/default.htm Hoffman2 Hardware]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/computing/gpuq.htm Hoffman2 GPU Cluster]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/data_storage/default.htm Hoffman2 Data Storage]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/computing/howtoscratch.htm Temporary File Storage for Fast I/O]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Tools&amp;diff=2573</id>
		<title>Hoffman2:Tools</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2:Tools&amp;diff=2573"/>
		<updated>2014-04-23T01:05:28Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: Created page with &amp;quot;Back to all things Hoffman2  Helpful Tools/Hints Page!  == Screens == This Unix tool lets you switch between multiple &amp;quot;screens&amp;quot; or terminal shells. One helpful tr...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Hoffman2|Back to all things Hoffman2]]&lt;br /&gt;
&lt;br /&gt;
Helpful Tools/Hints Page!&lt;br /&gt;
&lt;br /&gt;
== Screens ==&lt;br /&gt;
This Unix tool lets you switch between multiple &amp;quot;screens&amp;quot; or terminal shells. One helpful trick is using screen to run your interactive sessions remotely.&lt;br /&gt;
:[[Using_Screen]]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Using_Screen&amp;diff=2572</id>
		<title>Using Screen</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Using_Screen&amp;diff=2572"/>
		<updated>2014-04-23T01:04:39Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==What is Screen?==&lt;br /&gt;
From the [http://www.gnu.org/software/screen/ Gnu Screen] home page.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;Screen is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells. Each virtual terminal provides the functions of the DEC VT100 terminal and, in addition, several control functions from the ANSI X3.64 (ISO 6429) and ISO 2022 standards (e.g., insert/delete line and support for multiple character sets). There is a scrollback history buffer for each virtual terminal and a copy-and-paste mechanism that allows the user to move text regions between windows. When screen is called, it creates a single window with a shell in it (or the specified command) and then gets out of your way so that you can use the program as you normally would. Then, at any time, you can create new (full-screen) windows with other programs in them (including more shells), kill the current window, view a list of the active windows, turn output logging on and off, copy text between windows, view the scrollback history, switch between windows, etc. All windows run their programs completely independent of each other. Programs continue to run when their window is currently not visible and even when the whole screen session is detached from the users terminal.&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Quick Start==&lt;br /&gt;
Launch a QRSH (if on hoffman2) session: &lt;br /&gt;
 $ qrsh -l h_data=4G&lt;br /&gt;
 $ screen                - Start Screen Session&lt;br /&gt;
&lt;br /&gt;
Run bash/matlab script. &lt;br /&gt;
&lt;br /&gt;
(While Computing :)&lt;br /&gt;
 CTRL+A d                - detach the screen session&lt;br /&gt;
&lt;br /&gt;
 $ screen -list          - list all screen sessions. EXAMPLE OUTPUT 9368.ttyp1.cohen-static (Detached)&lt;br /&gt;
&lt;br /&gt;
 $ screen -r 9368        - Resume a screen session with an id of 9368 (see EXAMPLE above)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
First copy/paste the following configuration into a file and then save it as .screenrc in your Home directory (for osx users that&#039;s /Users/username/).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
# .screenrc&lt;br /&gt;
# Dave Kaufman &lt;br /&gt;
# http://davekaufman.net&lt;br /&gt;
#&lt;br /&gt;
# Created: 1 Jul 2002 04:00:00 PM EDT&lt;br /&gt;
# Last Modified: Sat 22 Jan 2005 11:41:18 PM EST&lt;br /&gt;
#&lt;br /&gt;
# This file is used to initialize screen sessions&lt;br /&gt;
&lt;br /&gt;
# No annoying audible bell, using &amp;quot;visual bell&amp;quot;&lt;br /&gt;
#vbell on				# default: off&lt;br /&gt;
#vbell_msg &amp;quot;   -- Ring, Ring!! --   &amp;quot;	# default: &amp;quot;Wuff,Wuff!!&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Automatically detach on hangup. &lt;br /&gt;
  autodetach on				# default: on&lt;br /&gt;
&lt;br /&gt;
# Don&#039;t display the copyright page&lt;br /&gt;
  startup_message off			# default: on&lt;br /&gt;
&lt;br /&gt;
# Affects the copying of text regions&lt;br /&gt;
  crlf off				# default: off&lt;br /&gt;
&lt;br /&gt;
# Change default scrollback value for new windows&lt;br /&gt;
  defscrollback 1000			# default: 100&lt;br /&gt;
&lt;br /&gt;
# Define the time that all windows monitored for silence should &lt;br /&gt;
# wait before displaying a message. Default 30 seconds.&lt;br /&gt;
  silencewait 15   		&lt;br /&gt;
&lt;br /&gt;
# Ensures that the default shell is the same as the value of the $SHELL env variable&lt;br /&gt;
  shell -$SHELL&lt;br /&gt;
&lt;br /&gt;
# emulate .logout message&lt;br /&gt;
  pow_detach_msg &amp;quot;Screen session of \$LOGNAME \$:cr:\$:nl:ended.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Pretty status bar at the bottom.&lt;br /&gt;
hardstatus alwayslastline &lt;br /&gt;
hardstatus string &amp;quot;%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{r}(%{W}%n*%f %t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %m/%d %{W}%c %{g}]&amp;quot;&lt;br /&gt;
# XTERM TWEAKS&lt;br /&gt;
# ===============================================================&lt;br /&gt;
&lt;br /&gt;
# xterm understands both im/ic and doesn&#039;t have a status line.&lt;br /&gt;
# Note: Do not specify im and ic in the real termcap/info file as&lt;br /&gt;
# some programs (e.g. vi) will not work anymore.&lt;br /&gt;
  termcap  xterm hs@:cs=\E[%i%d;%dr:im=\E[4h:ei=\E[4l&lt;br /&gt;
  terminfo xterm hs@:cs=\E[%i%p1%d;%p2%dr:im=\E[4h:ei=\E[4l&lt;br /&gt;
&lt;br /&gt;
# 80/132 column switching must be enabled for ^AW to work&lt;br /&gt;
# change init sequence to not switch width&lt;br /&gt;
  termcapinfo  xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l&lt;br /&gt;
&lt;br /&gt;
# Make the output buffer large for (fast) xterms.&lt;br /&gt;
# termcapinfo xterm* OL=10000&lt;br /&gt;
  termcapinfo xterm* OL=100&lt;br /&gt;
&lt;br /&gt;
# tell screen that xterm can switch to dark background and has function&lt;br /&gt;
# keys.&lt;br /&gt;
  termcapinfo xterm &#039;VR=\E[?5h:VN=\E[?5l&#039;&lt;br /&gt;
  termcapinfo xterm &#039;k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~&#039;&lt;br /&gt;
  termcapinfo xterm &#039;kh=\EOH:kI=\E[2~:kD=\E[3~:kH=\EOF:kP=\E[5~:kN=\E[6~&#039;&lt;br /&gt;
&lt;br /&gt;
# special xterm hardstatus: use the window title.&lt;br /&gt;
  termcapinfo xterm &#039;hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007&#039;&lt;br /&gt;
&lt;br /&gt;
#terminfo xterm &#039;vb=\E[?5h$&amp;lt;200/&amp;gt;\E[?5l&#039;&lt;br /&gt;
  termcapinfo xterm &#039;vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l&#039;&lt;br /&gt;
&lt;br /&gt;
# emulate part of the &#039;K&#039; charset&lt;br /&gt;
  termcapinfo xterm &#039;XC=K%,%\E(B,[\304,\\\\\326,]\334,{\344,|\366,}\374,~\337&#039;&lt;br /&gt;
&lt;br /&gt;
# xterm-52 tweaks:&lt;br /&gt;
# - uses background color for delete operations&lt;br /&gt;
  termcapinfo xterm* be&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# WYSE TERMINALS&lt;br /&gt;
# ===============================================================&lt;br /&gt;
&lt;br /&gt;
#wyse-75-42 must have flow control (xo = &amp;quot;terminal uses xon/xoff&amp;quot;)&lt;br /&gt;
#essential to have it here, as this is a slow terminal.&lt;br /&gt;
  termcapinfo wy75-42 xo:hs@&lt;br /&gt;
&lt;br /&gt;
# New termcap sequences for cursor application mode.&lt;br /&gt;
  termcapinfo wy* CS=\E[?1h:CE=\E[?1l:vi=\E[?25l:ve=\E[?25h:VR=\E[?5h:VN=\E[?5l:cb=\E[1K:CD=\E[1J&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# OTHER TERMINALS&lt;br /&gt;
# ===============================================================&lt;br /&gt;
&lt;br /&gt;
# make hp700 termcap/info better&lt;br /&gt;
  termcapinfo  hp700 &#039;Z0=\E[?3h:Z1=\E[?3l:hs:ts=\E[62&amp;quot;p\E[0$~\E[2$~\E[1$}:fs=\E[0}\E[61&amp;quot;p:ds=\E[62&amp;quot;p\E[1$~\E[61&amp;quot;p:ic@&#039;&lt;br /&gt;
&lt;br /&gt;
# Extend the vt100 desciption by some sequences.&lt;br /&gt;
  termcap  vt100* ms:AL=\E[%dL:DL=\E[%dM:UP=\E[%dA:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC&lt;br /&gt;
  terminfo vt100* ms:AL=\E[%p1%dL:DL=\E[%p1%dM:UP=\E[%p1%dA:DO=\E[%p1%dB:LE=\E[%p1%dD:RI=\E[%p1%dC&lt;br /&gt;
  termcapinfo linux C8&lt;br /&gt;
# old rxvt versions also need this&lt;br /&gt;
# termcapinfo rxvt C8&lt;br /&gt;
&lt;br /&gt;
# Change the escape key for hotkeys so I can run screen within screen&lt;br /&gt;
# escape ^l\\&lt;br /&gt;
# Let&#039;s remove some dangerous key bindings ...&lt;br /&gt;
  bind k&lt;br /&gt;
  bind ^k&lt;br /&gt;
  bind .&lt;br /&gt;
  bind ^\&lt;br /&gt;
  bind \\&lt;br /&gt;
  bind ^h&lt;br /&gt;
  bind h&lt;br /&gt;
&lt;br /&gt;
# ... and make them better.&lt;br /&gt;
  bind &#039;K&#039; kill&lt;br /&gt;
  bind &#039;I&#039; login on&lt;br /&gt;
  bind &#039;O&#039; login off&lt;br /&gt;
  bind &#039;}&#039; history&lt;br /&gt;
	bind &#039;Q&#039; quit&lt;br /&gt;
&lt;br /&gt;
# Yet another hack:&lt;br /&gt;
# Prepend/append register [/] to the paste if ^a^] is pressed.&lt;br /&gt;
# This lets me have autoindent mode in vi.&lt;br /&gt;
  register [ &amp;quot;\033:se noai\015a&amp;quot;&lt;br /&gt;
  register ] &amp;quot;\033:se ai\015a&amp;quot;&lt;br /&gt;
  bind ^] paste [.]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Resize the current region. The space will be removed from or added to &lt;br /&gt;
# the region below or if there&#039;s not enough space from the region above.&lt;br /&gt;
  bind = resize =&lt;br /&gt;
  bind + resize +3&lt;br /&gt;
  bind - resize -3&lt;br /&gt;
&lt;br /&gt;
# Time a message is displayed if screen is not disturbed by&lt;br /&gt;
# other activity. The dafault is 5 seconds:&lt;br /&gt;
msgwait 15&lt;br /&gt;
&lt;br /&gt;
# change the default activity message to include a bell.&lt;br /&gt;
activity &amp;quot;Activity in %n ^G&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Don&#039;t you want to start programs which need a DISPLAY ?&lt;br /&gt;
setenv DISPLAY &#039;:0&#039;&lt;br /&gt;
&lt;br /&gt;
# Bind F11 and F12 (NOT F1 and F2) to previous and next screen window&lt;br /&gt;
bindkey -k F1 prev&lt;br /&gt;
bindkey -k F2 prev&lt;br /&gt;
&lt;br /&gt;
# Default Buffers&lt;br /&gt;
screen -M -t Shell 0 &lt;br /&gt;
screen    -t Shell 1 &lt;br /&gt;
screen    -t Shell 2&lt;br /&gt;
screen    -t Shell 3&lt;br /&gt;
select 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then all that is left is to run it. Screen is included by default in every OSX package and is available in any package manager I&#039;ve seen (ports, portage, rpm, etc). If your using OSX, just type the following at the command prompt:&lt;br /&gt;
&lt;br /&gt;
 $ screen&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==No, not how do I start it. How do I &amp;lt;b&amp;gt;use&amp;lt;/b&amp;gt; it?==&lt;br /&gt;
Ah, yeah, I suppose that would help. Here&#039;s a quick run down of the basics. After starting screen hit your space bar to exit out of the welcome screen. You&#039;ll see what looks like a normal run of the mill terminal session. If you copy/pasted the configuration file above you&#039;ll also see a very convenient bar at the bottom that tells you which screen window your currently in, how many you have, and the name of your computer.&lt;br /&gt;
&lt;br /&gt;
All that is left is moving between these sessions, creating new ones, deleting old ones, and the holy grail of detaching and resuming sessions.&lt;br /&gt;
&lt;br /&gt;
 CTRL+A 1              - move to screen 1&lt;br /&gt;
&lt;br /&gt;
 CTRL+A 2              - move to screen 2&lt;br /&gt;
 &lt;br /&gt;
 CTRL+A &amp;lt;num&amp;gt;   - move to the screen with number &amp;lt;num&amp;gt;, e.g. 3, 4, 5, 6, &amp;lt;num&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 CTRL+A X               - move to screen X where X is a screen number&lt;br /&gt;
&lt;br /&gt;
 CTRL+A n               - move to the (n)ext screen&lt;br /&gt;
&lt;br /&gt;
 CTRL+A c               - (c)reate a new screen&lt;br /&gt;
&lt;br /&gt;
 $ exit                     - exit the current screen window (not the entire screen program, just that window)&lt;br /&gt;
&lt;br /&gt;
 CTRL+A d               - detach the screen session&lt;br /&gt;
 &lt;br /&gt;
 $ screen -list          - list all screen sessions. EXAMPLE OUTPUT 9368.ttyp1.cohen-static (Detached)&lt;br /&gt;
&lt;br /&gt;
 $ screen -r 9368    - Resume a screen session with an id of 9368 (see EXAMPLE above)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[http://www.kb.indiana.edu/data/acuy.html Indiana University UITS (additional information about screen)]&lt;br /&gt;
*[http://www.gnu.org/software/screen GNU Screen Homepage]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2&amp;diff=2571</id>
		<title>Hoffman2</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Hoffman2&amp;diff=2571"/>
		<updated>2014-04-23T00:57:51Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: /* Productivity */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A compilation of lab know-how regarding the Hoffman2 Computing Cluster.&lt;br /&gt;
&lt;br /&gt;
Anyone new to the lab and using Hoffman2 NEEDS to read the first section to have adequate working knowledge of the system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting Started ==&lt;br /&gt;
=== Introduction ===&lt;br /&gt;
Hoffman2 is a Computing Cluster at UCLA, find out how it generally works so you know how to use it.&lt;br /&gt;
: [[Hoffman2:Introduction]]&lt;br /&gt;
&lt;br /&gt;
=== Getting an Account ===&lt;br /&gt;
You know what it is, now you want to use it. First you need an account.&lt;br /&gt;
: [[Hoffman2:Getting an Account]]&lt;br /&gt;
&lt;br /&gt;
=== Accessing the Cluster ===&lt;br /&gt;
Now how do you use that account to access the cluster?&lt;br /&gt;
: [[Hoffman2:Accessing the Cluster]]&lt;br /&gt;
&lt;br /&gt;
=== Working in a UNIX Environment ===&lt;br /&gt;
Never heard of a command line before today? Vaguely know what &amp;quot;permissions&amp;quot; are and have no idea how to navigate a filesystem? This page is meant to take the scary out of the words &amp;quot;command line&amp;quot; so you can actually use Hoffman2, because no matter how many GUIs there are you will still need to command line sometimes.&lt;br /&gt;
: [[Hoffman2:UNIX Tutorial]]&lt;br /&gt;
&lt;br /&gt;
=== Quotas ===&lt;br /&gt;
Resources are not infinite, and disk space is a resource. Find out how to manage your disk space usage to stay under quota.&lt;br /&gt;
: [[Hoffman2:Quotas]]&lt;br /&gt;
&lt;br /&gt;
=== Profile ===&lt;br /&gt;
You have an account, know how to get there, and now you need to make one last step for you account to be fully usable.&lt;br /&gt;
: [[Hoffman2:Profile]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Computing ==&lt;br /&gt;
You can find your way through Hoffman2, now it is time to start making things happen.&lt;br /&gt;
&lt;br /&gt;
=== Software Tools ===&lt;br /&gt;
You&#039;ve got your account, you are logged on, now how do you get to using a real software tool?&lt;br /&gt;
: [[Hoffman2:Software Tools]]&lt;br /&gt;
&lt;br /&gt;
=== Submitting Jobs ===&lt;br /&gt;
Now you have the tools, but how does one ask Hoffman2 to run them for you as a job? Since you aren&#039;t supposed to be running them on a login node...&lt;br /&gt;
: [[Hoffman2:Submitting Jobs]]&lt;br /&gt;
&lt;br /&gt;
=== Monitoring Jobs ===&lt;br /&gt;
Right after they zap their monster to life, every mad scientist wishes they had the tools to check on or stop their creation. Now that you can submit jobs, you need to be able to check on them and stop them if they start terrorizing downtown Tokyo.&lt;br /&gt;
: [[Hoffman2:Monitoring Jobs]]&lt;br /&gt;
&lt;br /&gt;
=== Interactive Sessions ===&lt;br /&gt;
Some software tools need you to interact with them while they work. Other times you just need to be able to run your script over and over while you work to eradicate all of its bugs. Enter &#039;&#039;Interactive&#039;&#039; Sessions.&lt;br /&gt;
: [[Hoffman2:Interactive Sessions]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Software ==&lt;br /&gt;
=== MATLAB ===&lt;br /&gt;
How to use MATLAB on the cluster. It is easier than you think.&lt;br /&gt;
: [[Hoffman2:MATLAB]]&lt;br /&gt;
&lt;br /&gt;
==== Compiling MATLAB ====&lt;br /&gt;
So you have a MATLAB script, but you don&#039;t need to GUI open all night to have it process your data. How to submit MATLAB jobs to Hoffman2.&lt;br /&gt;
: [[Hoffman2:Compiling MATLAB]]&lt;br /&gt;
&lt;br /&gt;
==== EEGLAB ====&lt;br /&gt;
We try to maintain the three most recent versions of EEGLAB for your convenience. Make sure to add it to your MATLAB path.&lt;br /&gt;
: [[Hoffman2:MATLAB:EEGLAB]]&lt;br /&gt;
&lt;br /&gt;
===== EEGLAB Jobs =====&lt;br /&gt;
Processing multiple subjects through EEGLAB can be tiring and inconvenient if you do it by hand.  Learn how to make scripts that run as jobs leveraging the power of Hoffman2.&lt;br /&gt;
: [[Hoffman2:MATLAB:EEGLAB:Jobs]]&lt;br /&gt;
&lt;br /&gt;
==== SPM Compiled (Batch) ====&lt;br /&gt;
Maybe FSL isn&#039;t your cup of tea for neuroimaging work.  SPM is a capable alternative and, even though it is MATLAB based, it has a compiled version that will let you leverage the power of the cluster.&lt;br /&gt;
: [[Hoffman2:MATLAB:SPM]]&lt;br /&gt;
&lt;br /&gt;
=== R ===&lt;br /&gt;
You are probably a statistician, or you just prefer open source software. Here&#039;s how to run R on Hoffman2.&lt;br /&gt;
: [[Hoffman2:R]]&lt;br /&gt;
&lt;br /&gt;
=== WEKA ===&lt;br /&gt;
If machine learning is your thing, maybe you&#039;ve heard of WEKA. If not, maybe it will be your new best friend.&lt;br /&gt;
: [[Hoffman2:WEKA]]&lt;br /&gt;
&lt;br /&gt;
=== LONI Pipeline ===&lt;br /&gt;
A Workflow application to make things easier.&lt;br /&gt;
: [[Hoffman2:LONI]]&lt;br /&gt;
&lt;br /&gt;
=== FSL ===&lt;br /&gt;
FSL is a comprehensive library of analysis tools for FMRI, MRI and DTI brain imaging data.&lt;br /&gt;
: [[Hoffman2:FSL]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Productivity ==&lt;br /&gt;
How about streamlining some of those tasks, or getting more things done.&lt;br /&gt;
&lt;br /&gt;
=== Scripts ===&lt;br /&gt;
All of the difficulties you are experiencing now have probably been experienced before by someone else. And for that reason we already have scripts to simplify your life.&lt;br /&gt;
: [[Hoffman2:Scripts]]&lt;br /&gt;
&lt;br /&gt;
=== Data Transfer ===&lt;br /&gt;
All dressed up with no where to go? That&#039;s how Hoffman2 feels if you don&#039;t give it any data to work with. Find out how to avoid hurting the Cluster&#039;s feelings.&lt;br /&gt;
: [[Hoffman2:Data Transfer]]&lt;br /&gt;
&lt;br /&gt;
=== Sharing Filesystems ===&lt;br /&gt;
All you want to do is be able to look at your precious data. But it is locked up on Hoffman2 and you want to use tools on your computer to look at it. There&#039;s an app for that.&lt;br /&gt;
: [[Hoffman2:Sharing Filesystems]]&lt;br /&gt;
&lt;br /&gt;
=== Tools ===&lt;br /&gt;
Simple tools that will help your productivity.&lt;br /&gt;
: [[Hoffman2:Tools]]&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
Wesley&#039;s Usage, so you can plan around it and ask him to stop beating the cluster up.&lt;br /&gt;
: [[Hoffman2:WTK Usage]]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Unfolding&amp;diff=2443</id>
		<title>Unfolding</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Unfolding&amp;diff=2443"/>
		<updated>2014-01-28T01:55:16Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: /* Directory Outline: How to Open FSLView Through Terminal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several steps to successfully unfolding the high resolution scans of the hippocampus. The details for this section fall into the broad categories of segmentation, interpolation, demarcations, and calculating thickness. A knowledge of command line is necessary, as well as obtaining the tools for each step.&lt;br /&gt;
&lt;br /&gt;
==Tools Required==&lt;br /&gt;
*A copy of Windows&lt;br /&gt;
*A virtual machine emulator &lt;br /&gt;
*A command line interface to connect to [[Hoffman2|hoffman]]&lt;br /&gt;
*MrGray (Windows only)&lt;br /&gt;
*Matlab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Segmentation==&lt;br /&gt;
===Overview===&lt;br /&gt;
The goal of [[segmentation]] is to create a strip of gray matter in the hippocampus by locating the boundaries of the hippocampus in the brain. Using FMRI technology, the brain is sliced anteriorly to posteriorly to obtain slices of all parts of the hippocampus, creating a 2D version of the 3D hippocampus that can be mapped and analyzed. After opening [[VirtualBox]], we run a computer program, [[MrGray Segmentation software for Windows]], where we can view and find all the slices of the brain that show a portion of the hippocampus. On these slices,the hippocampal gray matter is surrounded by white matter and cerebral spinal fluid (CSF). We must mark the surrounding white matter and CSF respectively to obtain our strip of gray matter in between. The CSF material is the strip of atrophy on the interior of the gray matter, which begins at the hippocampal fissure, follows down to the collateral sulcus, and finishes after the second sulcus. The white matter is the material on the exterior portion of the gray matter. It is important to note that the shape of the hippocampal head changes from anterior to posterior in the brain. On the anterior slices, the hippocampal head has a long, oval shape. In the posterior slices, the hippocampal head has a round, almond shape. On the anterior slices, the CSF matter comes up to meet the white matter at the hippocampus head and also continues through the second sulcus through the gray matter to close off our strip. In the posterior slices, the CSF still continues through the second sulcus to the gray matter to close off the strip, but the white matter comes down to the CSF at the hippocampal fissure on the hippocampal head.&lt;br /&gt;
&lt;br /&gt;
===Getting Started: The Initial Segmentation Checklist===&lt;br /&gt;
#Export all of your vAnatomyCrop.dat files to a PC (ftp using binary).&lt;br /&gt;
#Run the program mrGray&lt;br /&gt;
#Create a new project and name it after your subject. Use the following nomenclature:&lt;br /&gt;
::AD_#####&lt;br /&gt;
:::ex. AD_12345&lt;br /&gt;
&lt;br /&gt;
For a subject with the Small ID 12345, who was scanned on May 25th, 2012, the following would be the subject entry in /u/home/data/sbook/data/AD/subjects:&lt;br /&gt;
::subj ID: AD_12345&lt;br /&gt;
::date: 20120525 (yyyymmdd)&lt;br /&gt;
::And it would be in the following path:&lt;br /&gt;
:::/u/home/sbook/data/AD/subjects/AD_12345/20120525/... etc etc.&lt;br /&gt;
&lt;br /&gt;
Subjects file names should look like:&lt;br /&gt;
::subject ID: AD_12345&lt;br /&gt;
::subject scan date: 20120525&lt;br /&gt;
::segmentation: AD_12345_seg&lt;br /&gt;
::interpolation: AD_12345_interpright or AD_12345_interpleft&lt;br /&gt;
&lt;br /&gt;
Once you have completed the segmentation session make sure to update our filemaker tab in objective fitness spreadsheet&lt;br /&gt;
::Select name for new project in AD/subjects/AD_XXXXX/SCANDATE/analysis/structural/unfold/segmentation&lt;br /&gt;
:::Select vAnatomyCrop.dat&lt;br /&gt;
:::Figure out which slices to segment based on anatomical guidelines.&lt;br /&gt;
::::*Anteriorly, choosing the last slice in which hippocampal head is visible is a consistent start point we&#039;ve used&lt;br /&gt;
&lt;br /&gt;
::Below are anatomical diagrams of the hippocampus and what to look for:&lt;br /&gt;
[[File:unfolding-Anat.png]]&lt;br /&gt;
:::Figure 1. Anatomical diagram, with an inferior view of the whole brain at the left, an inferior view of the temporal lobe 	at the center, and coronal sections from the two indicated slices at the right. A: Anterior slice through entorhinal 	cortex. B: Posterior slice 	through parahippocampal cortex. ERC, entorhinal cortex; PRC, perirhinal cortex; PHC, 	parahippocampal cortex; FG, fusiform gyrus; Sub, subiculum; CA 1,cornu ammonis 1; CA 2,3, CA fields 2 and 3; 	DG, dentate gyrus; CoS, collateral sulcus.&lt;br /&gt;
[[File:unfolding-Hipp.png]]&lt;br /&gt;
:::Figure 2. Coronal view of right side of the hippocampus. In the coronal plane the hippocampus and parahippocampal gyrus form an S-shaped configuration. The hippocampus itself consists of two interlocking C-shaped structures: the cornu ammonis and the dentate gyrus. Histologically, the hippocampus is further divided into 4 sections CA1 to CA4.&lt;br /&gt;
&lt;br /&gt;
Once file is created, you may begin segmentation process:&lt;br /&gt;
#Segment the white matter 1st (colored in beige) (red in our lab), using a pixel size of 3 pixels minimum&lt;br /&gt;
#Select white matter with the checkbox at the right&lt;br /&gt;
#Another checkbox indicates the highlight size (use 3)&lt;br /&gt;
#The left mouse button highlights a pixel, and the right mouse button deselects pixels&lt;br /&gt;
#Then, segment the CSF (colored in yellow) (blue in our lab), imposing a thin boundary on the segmentation. (You want it thin because you will expand it after the interpolation step).&lt;br /&gt;
#Save the segmentation (File -&amp;gt; Classification -&amp;gt; Save as with the above nomenclature).&lt;br /&gt;
::*&#039;&#039;&#039;Save early, save often.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here is an example of an initial segmentation: Starting anteriorly and ending posteriorly:&lt;br /&gt;
&lt;br /&gt;
:[[File:unfolding-Seg_P1.png]]&lt;br /&gt;
:[[File:unfolding-Seg_P2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Interpolation==&lt;br /&gt;
Explain [[interpolation]] here.&lt;br /&gt;
&lt;br /&gt;
To load an existing project, when you&#039;re in MrGray, you&#039;ll click on Load project and you can select any .mrp file.&lt;br /&gt;
These will be named AD_1XXXX_interpleft or _interpright. It will then appear and you should be able to see the CSF&lt;br /&gt;
and white matter masks if they are selected in the toolbar.&lt;br /&gt;
&lt;br /&gt;
Create a new interpolation file; these are the steps you will take:&lt;br /&gt;
&lt;br /&gt;
# Open the menu and select File &amp;gt; New Project&lt;br /&gt;
# In the first window go to the subject&#039;s unfold directory (ie. ...AD/subjects/AD_1XXXX/2012####/analysis/structural/unfold/interpolation)&lt;br /&gt;
# Name the project AD_1XXXX_interpleft or AD_1XXXX_interpright and hit enter&lt;br /&gt;
# In the second window select the Volume anatomy file for the interpolation file (vAnatInterp.dat file) and hit enter&lt;br /&gt;
# When the image displays, you will now go to the File menu again and then to &amp;quot;Classification&amp;quot;. Then click &amp;quot;load classification file&amp;quot;.&lt;br /&gt;
# The window that pops up will ask you to select a class file. This will be AD_1XXXX_interpright or interpleft that already exists in the directory. Select the side for which you created and hit enter. &lt;br /&gt;
# Check to make sure the masks align correctly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demarcations==&lt;br /&gt;
&lt;br /&gt;
===Getting Started===&lt;br /&gt;
After segmentation and interpolation, [[demarcations]] create the boundaries for the different region of the hippocampus. These boundaries can be conveniently drawn using FSLview. Open your hire structural image. Be sure this is the same brain that you used for the unfolding process. It is important to note that these images are in radiological convention, so if you&#039;re drawing on the right side of the screen, this is actually the left hemisphere. Look at your notes to determine which slices were segmented and used for unfolding; only draw boundaries on the slices that have been segmented. To create a new boundary, go to the file menu and select &amp;quot;Create Mask.&amp;quot; In the lower left corner, you&#039;ll see a blue &amp;quot;i&amp;quot;; click on this to re-name your boundary as needed, and to select the color you&#039;d like to draw with. To zoom in on the MTL, first go to View/Single, and then expland the coronal image. Use the zoom tool to magnify the MTL. Click on the pencil tool, and make adjustments as desired. A brightness with typically a max of 1 and a small pencil size work best. If using a mouse, the left button draws the boundary and the ctrl+ left button erases. When saving, be sure to save to your Demarcations directory, and to use the proper naming convention. It is best to complete one boundary at a time across all slices, and then move on to the next boundary.&lt;br /&gt;
&lt;br /&gt;
===General Tips===&lt;br /&gt;
Before starting to draw, you want to first identify the slice where the hippocampal head begins. It is important to note that where the hippocampal head &amp;quot;begins&amp;quot; means where it begins when going in the Posterior to Anterior direction. This slice, which will be called the &#039;&#039;&#039;hippocampal head slice&#039;&#039;&#039; throughout the rest of these instructions is where the anterior structures will start. Also, drawing shorter/smaller boundaries will reduce variability once projected onto the flat maps, giving you a straighter line. In general, boundary doesn&#039;t need to cross the entire gray matter area; keep the boundary towards the medial or superior side of things, as appropriate.&lt;br /&gt;
&lt;br /&gt;
===Naming Convention===&lt;br /&gt;
Boundaries drawn on all the slices:&lt;br /&gt;
*&#039;&#039;&#039;Fus&#039;&#039;&#039;(Fusiform)&lt;br /&gt;
* &#039;&#039;&#039;CollSul&#039;&#039;&#039;(Collateral Sulcus) &lt;br /&gt;
*&#039;&#039;&#039;SubCA1&#039;&#039;&#039;(Subiculum-CA1)&lt;br /&gt;
* &#039;&#039;&#039;CA1CA23DG&#039;&#039;&#039;(CA1-CA23DG) &lt;br /&gt;
Boundaries drawn on anterior slices only: &lt;br /&gt;
*&#039;&#039;&#039;ERCSub&#039;&#039;&#039; (Entorhinal Coral- Subiculum)&lt;br /&gt;
*&#039;&#039;&#039;PRCERC&#039;&#039;&#039; (Perirhinal Cortex- Entorhinal Cortex) &lt;br /&gt;
*&#039;&#039;&#039;AntCADG&#039;&#039;&#039; (Anterior portion of CA fields and Dentate Gyrus)&lt;br /&gt;
* &#039;&#039;&#039;ERCPRCPHC&#039;&#039;&#039; (Boundary between anterior structures Entorhinal/Perirhinal Cortices and the posterior structure Parahippocampal Cortex)&lt;br /&gt;
Boundaries drawn on the posterior slices only: &lt;br /&gt;
*&#039;&#039;&#039;PHCSub&#039;&#039;&#039; (Parahippocampal Cortex- Subiculum)&lt;br /&gt;
&lt;br /&gt;
===Individual Boundaries===&lt;br /&gt;
On each of the slices that were segmented, we must determine which boundaries to mark. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fusiform (Fus)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-Fus.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the &amp;quot;elbow&amp;quot; of the lateral side of the collateral sulcus (on the side closer to the second sulcus)&lt;br /&gt;
::*Outline of collateral sulcul shown in red; boundary between sulcus and fusiform gyrus shown in yellow&lt;br /&gt;
::*Fusiform is lateral to the boundary&lt;br /&gt;
&#039;&#039;&#039;Collateral Sulcus (CollSul)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-CollSul.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the bend in the superior tip of the collateral sulcus&lt;br /&gt;
::*Outline of collateral sulcus shown in yellow; boundary shown in red&lt;br /&gt;
&#039;&#039;&#039;Separating PHC from Subiculum (PHCSub)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-PHCSub.jpg]]&lt;br /&gt;
::*Posterior slices only &lt;br /&gt;
::*Begin drawing on the first slice posterior to the hippocampal head slice, and continue to draw on the remainder of the posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon approximately 50% of the way up the bend&lt;br /&gt;
::*Bend shown in red, boundary between subiculum and PHC shown in green&lt;br /&gt;
::*Subiculum is superior to boundary&lt;br /&gt;
&#039;&#039;&#039;Separating Subiculum from CA1 (SubCA1)&#039;&#039;&#039;&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*&#039;&#039;Anterior&#039;&#039;: boundary more lateral; draw boundary underneath &amp;quot;bump&amp;quot; where the curve of the hippocampus comes in, bisecting it&lt;br /&gt;
:::* Bump shown in red, boundary between Sub and CA1 shown in blue&lt;br /&gt;
:::* Sub is medial to the boundary, CA1 is lateral&lt;br /&gt;
::: [[File:unfolding-SubCA1_Anterior.jpg]]&lt;br /&gt;
::*&#039;&#039;Posterior&#039;&#039;: boundary more medial; draw boundary where the hippocampus pinches off into a tear-drop shape, or folds into itself&lt;br /&gt;
:::*Teardrop shown in red, boundary between Sub and CA1 shown in blue &lt;br /&gt;
:::*Sub is medial to the boundary, CA1 is lateral&lt;br /&gt;
:::[[File:unfolding-SubCA1_Posterior.jpg]]&lt;br /&gt;
&#039;&#039;&#039;Separating CA1 from CA23DG (CA1CA23DG)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-CA1CA23DG.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the bend (on the path where the hippocampal fissure would extend to in the hippocampal head)&lt;br /&gt;
::*Bend shown in red; boundary between CA1CA23DG shown in green&lt;br /&gt;
&#039;&#039;&#039;Separating ERC from Subiculum (ERCSub)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-ERCSub.jpg]]&lt;br /&gt;
::*Anterior slices only&lt;br /&gt;
::*Begin drawing on hippocampal head slice, and continue to draw on the remainder of the anterior slices&lt;br /&gt;
::*If you were to continue the lateral boundary of the hippocampus inwards medially, it would divide the hippocampus and the ERC&lt;br /&gt;
::*Draw boundary along this divide, perpendicular to gray matter ribbon&lt;br /&gt;
::*Lateral boundary shown in red, boundary between ERC and Sub shown in yellow&lt;br /&gt;
&#039;&#039;&#039;Separating PRC from ERC (PRCERC)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-PRCERC.jpg]]&lt;br /&gt;
::*Anterior slices only &lt;br /&gt;
::*Begin drawing on hippocampal head slice, and continue to draw on the remainder of the anterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the &amp;quot;elbow&amp;quot; of the medial side of the collateral sulcus (the side of the collateral sulcus closer to the hippocampal head)&lt;br /&gt;
::*Collateral sulcus outlined in yellow, boundary between PRC and ERC in green&lt;br /&gt;
::*ERC medial to boundary, PRC lateral&lt;br /&gt;
&#039;&#039;&#039;Anterior CA fields and Dentate Gyrus (AntCADG)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-AntCADG.jpg]]&lt;br /&gt;
::*Only one slice: draw on the first slice anterior to the hippocampal head slice (this should be the slice where you first see undulations going in the Posterior to Anterior direction)&lt;br /&gt;
::*Draw boundary straight through middle of CADG area, and extend all the way laterally to the CA1CA23DG boundary (go through the middle of the hippocampal head between the fissure and the top of the head)&lt;br /&gt;
::*Undulations highlighted in red; CA1CA23DG boundary in green; AntCADG boundary in white&lt;br /&gt;
&#039;&#039;&#039;Creating A/P boundary (ERCPRCPHC)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-ERCPRCPHC.jpg]]&lt;br /&gt;
::*Only one slice: draw on the hippocampal head slice&lt;br /&gt;
::*Starting at the ERCSub boundary, draw a line in the middle of the gray matter ribbon up and over the collateral sulcus, all the way out to the Fus boundary&lt;br /&gt;
::* ERCSub and Fus boundaries shown in yellow&lt;br /&gt;
::* ERCPRCPHC boundary shown in white&lt;br /&gt;
&lt;br /&gt;
===Directory Outline: How to Open FSLView Through Terminal===&lt;br /&gt;
:Below is an outline for the directory path. In order to open files for segmentation, interpolation, and demarcation in the unfolding process, you must be able to navigate the Terminal. &lt;br /&gt;
&lt;br /&gt;
::[[File:unfolding-Dir_Route.png]]&lt;br /&gt;
&lt;br /&gt;
The best way to open FSLview in order to do demarcations is through the FSLview path in &#039;&#039;Terminal&#039;&#039;. Below are the following steps to open a file for demarcations.&lt;br /&gt;
 &lt;br /&gt;
#ssh -X johnsmith@hoffman2.idre.ucla.edu&lt;br /&gt;
: This is your login. You must have a &#039;&#039;&#039;hoffman&#039;&#039;&#039; account to access &#039;&#039;Terminal&#039;&#039;&lt;br /&gt;
#/u/home/FMRI/sbook/data/AD/subjects &lt;br /&gt;
: This is your homebase directory. Once logged into hoffman, you will be able to access the path of directories seen above. &lt;br /&gt;
::For each subject, there is a &#039;&#039;&#039;nii&#039;&#039;&#039; directory and a &#039;&#039;&#039;analysis&#039;&#039;&#039; directory, which contain information used for demarcations.&lt;br /&gt;
:::The &#039;&#039;&#039;nii&#039;&#039;&#039; directory contains the image files for the brain scans.&lt;br /&gt;
:::The &#039;&#039;&#039;analysis&#039;&#039;&#039; directory contains the subdirectories &#039;&#039;&#039;preprocessing&#039;&#039;&#039; and &#039;&#039;&#039;structural&#039;&#039;&#039;.&lt;br /&gt;
::::The preprocessing directory may also contain the hhr structural image file, as seen in the nii directory .&lt;br /&gt;
::::The structural directory contains the &#039;&#039;&#039;unfold&#039;&#039;&#039; directory which contains folders for &#039;&#039;segmentation&#039;&#039;, &#039;&#039;interpolation&#039;&#039;, and &#039;&#039;demarcations&#039;&#039;. &lt;br /&gt;
#cd AD_10210/2008XXXX/analysis/structural/unfold&lt;br /&gt;
:In this unfold directory, you can check if the hhr image file is already in preprocessing. If the hhr image file is already in the preprocessing directory, it can be opened directly in FSL view. &lt;br /&gt;
#fslview hhr_struct_6.nii.gz&lt;br /&gt;
: If the hhr image is not in the preprocessing directory, you can copy the image from the &#039;&#039;&#039;nii&#039;&#039;&#039; directory into the &#039;&#039;&#039;preprocessing&#039;&#039;&#039; and then open it in FSL view.&lt;br /&gt;
#cd ../../../subjects/AD_1XXXXX&lt;br /&gt;
#cd nii &lt;br /&gt;
#cp nii/hhr_struct_6.nii.gz   ../analysis/preprocessing/hhr_struct_6.nii.gz&lt;br /&gt;
##fslview hhr_struct_6.nii.gz (check if this step is fslview analysis/preprocessing/hhr_struct_6.nii.gz)&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.virtualbox.org/ Virtual Box: Virtual machine software]&lt;br /&gt;
*[http://white.stanford.edu/~brian/mri/segmentUnfold.htm MrGray Segmentation software for Windows]&lt;br /&gt;
*[http://www.cygwin.com/ Cygwin Command-line interface for Windows]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/ Hoffman2 Home Page]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Unfolding&amp;diff=2442</id>
		<title>Unfolding</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Unfolding&amp;diff=2442"/>
		<updated>2014-01-28T01:54:39Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: /* Individual Boundaries */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several steps to successfully unfolding the high resolution scans of the hippocampus. The details for this section fall into the broad categories of segmentation, interpolation, demarcations, and calculating thickness. A knowledge of command line is necessary, as well as obtaining the tools for each step.&lt;br /&gt;
&lt;br /&gt;
==Tools Required==&lt;br /&gt;
*A copy of Windows&lt;br /&gt;
*A virtual machine emulator &lt;br /&gt;
*A command line interface to connect to [[Hoffman2|hoffman]]&lt;br /&gt;
*MrGray (Windows only)&lt;br /&gt;
*Matlab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Segmentation==&lt;br /&gt;
===Overview===&lt;br /&gt;
The goal of [[segmentation]] is to create a strip of gray matter in the hippocampus by locating the boundaries of the hippocampus in the brain. Using FMRI technology, the brain is sliced anteriorly to posteriorly to obtain slices of all parts of the hippocampus, creating a 2D version of the 3D hippocampus that can be mapped and analyzed. After opening [[VirtualBox]], we run a computer program, [[MrGray Segmentation software for Windows]], where we can view and find all the slices of the brain that show a portion of the hippocampus. On these slices,the hippocampal gray matter is surrounded by white matter and cerebral spinal fluid (CSF). We must mark the surrounding white matter and CSF respectively to obtain our strip of gray matter in between. The CSF material is the strip of atrophy on the interior of the gray matter, which begins at the hippocampal fissure, follows down to the collateral sulcus, and finishes after the second sulcus. The white matter is the material on the exterior portion of the gray matter. It is important to note that the shape of the hippocampal head changes from anterior to posterior in the brain. On the anterior slices, the hippocampal head has a long, oval shape. In the posterior slices, the hippocampal head has a round, almond shape. On the anterior slices, the CSF matter comes up to meet the white matter at the hippocampus head and also continues through the second sulcus through the gray matter to close off our strip. In the posterior slices, the CSF still continues through the second sulcus to the gray matter to close off the strip, but the white matter comes down to the CSF at the hippocampal fissure on the hippocampal head.&lt;br /&gt;
&lt;br /&gt;
===Getting Started: The Initial Segmentation Checklist===&lt;br /&gt;
#Export all of your vAnatomyCrop.dat files to a PC (ftp using binary).&lt;br /&gt;
#Run the program mrGray&lt;br /&gt;
#Create a new project and name it after your subject. Use the following nomenclature:&lt;br /&gt;
::AD_#####&lt;br /&gt;
:::ex. AD_12345&lt;br /&gt;
&lt;br /&gt;
For a subject with the Small ID 12345, who was scanned on May 25th, 2012, the following would be the subject entry in /u/home/data/sbook/data/AD/subjects:&lt;br /&gt;
::subj ID: AD_12345&lt;br /&gt;
::date: 20120525 (yyyymmdd)&lt;br /&gt;
::And it would be in the following path:&lt;br /&gt;
:::/u/home/sbook/data/AD/subjects/AD_12345/20120525/... etc etc.&lt;br /&gt;
&lt;br /&gt;
Subjects file names should look like:&lt;br /&gt;
::subject ID: AD_12345&lt;br /&gt;
::subject scan date: 20120525&lt;br /&gt;
::segmentation: AD_12345_seg&lt;br /&gt;
::interpolation: AD_12345_interpright or AD_12345_interpleft&lt;br /&gt;
&lt;br /&gt;
Once you have completed the segmentation session make sure to update our filemaker tab in objective fitness spreadsheet&lt;br /&gt;
::Select name for new project in AD/subjects/AD_XXXXX/SCANDATE/analysis/structural/unfold/segmentation&lt;br /&gt;
:::Select vAnatomyCrop.dat&lt;br /&gt;
:::Figure out which slices to segment based on anatomical guidelines.&lt;br /&gt;
::::*Anteriorly, choosing the last slice in which hippocampal head is visible is a consistent start point we&#039;ve used&lt;br /&gt;
&lt;br /&gt;
::Below are anatomical diagrams of the hippocampus and what to look for:&lt;br /&gt;
[[File:unfolding-Anat.png]]&lt;br /&gt;
:::Figure 1. Anatomical diagram, with an inferior view of the whole brain at the left, an inferior view of the temporal lobe 	at the center, and coronal sections from the two indicated slices at the right. A: Anterior slice through entorhinal 	cortex. B: Posterior slice 	through parahippocampal cortex. ERC, entorhinal cortex; PRC, perirhinal cortex; PHC, 	parahippocampal cortex; FG, fusiform gyrus; Sub, subiculum; CA 1,cornu ammonis 1; CA 2,3, CA fields 2 and 3; 	DG, dentate gyrus; CoS, collateral sulcus.&lt;br /&gt;
[[File:unfolding-Hipp.png]]&lt;br /&gt;
:::Figure 2. Coronal view of right side of the hippocampus. In the coronal plane the hippocampus and parahippocampal gyrus form an S-shaped configuration. The hippocampus itself consists of two interlocking C-shaped structures: the cornu ammonis and the dentate gyrus. Histologically, the hippocampus is further divided into 4 sections CA1 to CA4.&lt;br /&gt;
&lt;br /&gt;
Once file is created, you may begin segmentation process:&lt;br /&gt;
#Segment the white matter 1st (colored in beige) (red in our lab), using a pixel size of 3 pixels minimum&lt;br /&gt;
#Select white matter with the checkbox at the right&lt;br /&gt;
#Another checkbox indicates the highlight size (use 3)&lt;br /&gt;
#The left mouse button highlights a pixel, and the right mouse button deselects pixels&lt;br /&gt;
#Then, segment the CSF (colored in yellow) (blue in our lab), imposing a thin boundary on the segmentation. (You want it thin because you will expand it after the interpolation step).&lt;br /&gt;
#Save the segmentation (File -&amp;gt; Classification -&amp;gt; Save as with the above nomenclature).&lt;br /&gt;
::*&#039;&#039;&#039;Save early, save often.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here is an example of an initial segmentation: Starting anteriorly and ending posteriorly:&lt;br /&gt;
&lt;br /&gt;
:[[File:unfolding-Seg_P1.png]]&lt;br /&gt;
:[[File:unfolding-Seg_P2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Interpolation==&lt;br /&gt;
Explain [[interpolation]] here.&lt;br /&gt;
&lt;br /&gt;
To load an existing project, when you&#039;re in MrGray, you&#039;ll click on Load project and you can select any .mrp file.&lt;br /&gt;
These will be named AD_1XXXX_interpleft or _interpright. It will then appear and you should be able to see the CSF&lt;br /&gt;
and white matter masks if they are selected in the toolbar.&lt;br /&gt;
&lt;br /&gt;
Create a new interpolation file; these are the steps you will take:&lt;br /&gt;
&lt;br /&gt;
# Open the menu and select File &amp;gt; New Project&lt;br /&gt;
# In the first window go to the subject&#039;s unfold directory (ie. ...AD/subjects/AD_1XXXX/2012####/analysis/structural/unfold/interpolation)&lt;br /&gt;
# Name the project AD_1XXXX_interpleft or AD_1XXXX_interpright and hit enter&lt;br /&gt;
# In the second window select the Volume anatomy file for the interpolation file (vAnatInterp.dat file) and hit enter&lt;br /&gt;
# When the image displays, you will now go to the File menu again and then to &amp;quot;Classification&amp;quot;. Then click &amp;quot;load classification file&amp;quot;.&lt;br /&gt;
# The window that pops up will ask you to select a class file. This will be AD_1XXXX_interpright or interpleft that already exists in the directory. Select the side for which you created and hit enter. &lt;br /&gt;
# Check to make sure the masks align correctly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demarcations==&lt;br /&gt;
&lt;br /&gt;
===Getting Started===&lt;br /&gt;
After segmentation and interpolation, [[demarcations]] create the boundaries for the different region of the hippocampus. These boundaries can be conveniently drawn using FSLview. Open your hire structural image. Be sure this is the same brain that you used for the unfolding process. It is important to note that these images are in radiological convention, so if you&#039;re drawing on the right side of the screen, this is actually the left hemisphere. Look at your notes to determine which slices were segmented and used for unfolding; only draw boundaries on the slices that have been segmented. To create a new boundary, go to the file menu and select &amp;quot;Create Mask.&amp;quot; In the lower left corner, you&#039;ll see a blue &amp;quot;i&amp;quot;; click on this to re-name your boundary as needed, and to select the color you&#039;d like to draw with. To zoom in on the MTL, first go to View/Single, and then expland the coronal image. Use the zoom tool to magnify the MTL. Click on the pencil tool, and make adjustments as desired. A brightness with typically a max of 1 and a small pencil size work best. If using a mouse, the left button draws the boundary and the ctrl+ left button erases. When saving, be sure to save to your Demarcations directory, and to use the proper naming convention. It is best to complete one boundary at a time across all slices, and then move on to the next boundary.&lt;br /&gt;
&lt;br /&gt;
===General Tips===&lt;br /&gt;
Before starting to draw, you want to first identify the slice where the hippocampal head begins. It is important to note that where the hippocampal head &amp;quot;begins&amp;quot; means where it begins when going in the Posterior to Anterior direction. This slice, which will be called the &#039;&#039;&#039;hippocampal head slice&#039;&#039;&#039; throughout the rest of these instructions is where the anterior structures will start. Also, drawing shorter/smaller boundaries will reduce variability once projected onto the flat maps, giving you a straighter line. In general, boundary doesn&#039;t need to cross the entire gray matter area; keep the boundary towards the medial or superior side of things, as appropriate.&lt;br /&gt;
&lt;br /&gt;
===Naming Convention===&lt;br /&gt;
Boundaries drawn on all the slices:&lt;br /&gt;
*&#039;&#039;&#039;Fus&#039;&#039;&#039;(Fusiform)&lt;br /&gt;
* &#039;&#039;&#039;CollSul&#039;&#039;&#039;(Collateral Sulcus) &lt;br /&gt;
*&#039;&#039;&#039;SubCA1&#039;&#039;&#039;(Subiculum-CA1)&lt;br /&gt;
* &#039;&#039;&#039;CA1CA23DG&#039;&#039;&#039;(CA1-CA23DG) &lt;br /&gt;
Boundaries drawn on anterior slices only: &lt;br /&gt;
*&#039;&#039;&#039;ERCSub&#039;&#039;&#039; (Entorhinal Coral- Subiculum)&lt;br /&gt;
*&#039;&#039;&#039;PRCERC&#039;&#039;&#039; (Perirhinal Cortex- Entorhinal Cortex) &lt;br /&gt;
*&#039;&#039;&#039;AntCADG&#039;&#039;&#039; (Anterior portion of CA fields and Dentate Gyrus)&lt;br /&gt;
* &#039;&#039;&#039;ERCPRCPHC&#039;&#039;&#039; (Boundary between anterior structures Entorhinal/Perirhinal Cortices and the posterior structure Parahippocampal Cortex)&lt;br /&gt;
Boundaries drawn on the posterior slices only: &lt;br /&gt;
*&#039;&#039;&#039;PHCSub&#039;&#039;&#039; (Parahippocampal Cortex- Subiculum)&lt;br /&gt;
&lt;br /&gt;
===Individual Boundaries===&lt;br /&gt;
On each of the slices that were segmented, we must determine which boundaries to mark. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fusiform (Fus)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-Fus.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the &amp;quot;elbow&amp;quot; of the lateral side of the collateral sulcus (on the side closer to the second sulcus)&lt;br /&gt;
::*Outline of collateral sulcul shown in red; boundary between sulcus and fusiform gyrus shown in yellow&lt;br /&gt;
::*Fusiform is lateral to the boundary&lt;br /&gt;
&#039;&#039;&#039;Collateral Sulcus (CollSul)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-CollSul.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the bend in the superior tip of the collateral sulcus&lt;br /&gt;
::*Outline of collateral sulcus shown in yellow; boundary shown in red&lt;br /&gt;
&#039;&#039;&#039;Separating PHC from Subiculum (PHCSub)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-PHCSub.jpg]]&lt;br /&gt;
::*Posterior slices only &lt;br /&gt;
::*Begin drawing on the first slice posterior to the hippocampal head slice, and continue to draw on the remainder of the posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon approximately 50% of the way up the bend&lt;br /&gt;
::*Bend shown in red, boundary between subiculum and PHC shown in green&lt;br /&gt;
::*Subiculum is superior to boundary&lt;br /&gt;
&#039;&#039;&#039;Separating Subiculum from CA1 (SubCA1)&#039;&#039;&#039;&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*&#039;&#039;Anterior&#039;&#039;: boundary more lateral; draw boundary underneath &amp;quot;bump&amp;quot; where the curve of the hippocampus comes in, bisecting it&lt;br /&gt;
:::* Bump shown in red, boundary between Sub and CA1 shown in blue&lt;br /&gt;
:::* Sub is medial to the boundary, CA1 is lateral&lt;br /&gt;
::: [[File:unfolding-SubCA1_Anterior.jpg]]&lt;br /&gt;
::*&#039;&#039;Posterior&#039;&#039;: boundary more medial; draw boundary where the hippocampus pinches off into a tear-drop shape, or folds into itself&lt;br /&gt;
:::*Teardrop shown in red, boundary between Sub and CA1 shown in blue &lt;br /&gt;
:::*Sub is medial to the boundary, CA1 is lateral&lt;br /&gt;
:::[[File:unfolding-SubCA1_Posterior.jpg]]&lt;br /&gt;
&#039;&#039;&#039;Separating CA1 from CA23DG (CA1CA23DG)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-CA1CA23DG.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the bend (on the path where the hippocampal fissure would extend to in the hippocampal head)&lt;br /&gt;
::*Bend shown in red; boundary between CA1CA23DG shown in green&lt;br /&gt;
&#039;&#039;&#039;Separating ERC from Subiculum (ERCSub)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-ERCSub.jpg]]&lt;br /&gt;
::*Anterior slices only&lt;br /&gt;
::*Begin drawing on hippocampal head slice, and continue to draw on the remainder of the anterior slices&lt;br /&gt;
::*If you were to continue the lateral boundary of the hippocampus inwards medially, it would divide the hippocampus and the ERC&lt;br /&gt;
::*Draw boundary along this divide, perpendicular to gray matter ribbon&lt;br /&gt;
::*Lateral boundary shown in red, boundary between ERC and Sub shown in yellow&lt;br /&gt;
&#039;&#039;&#039;Separating PRC from ERC (PRCERC)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-PRCERC.jpg]]&lt;br /&gt;
::*Anterior slices only &lt;br /&gt;
::*Begin drawing on hippocampal head slice, and continue to draw on the remainder of the anterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the &amp;quot;elbow&amp;quot; of the medial side of the collateral sulcus (the side of the collateral sulcus closer to the hippocampal head)&lt;br /&gt;
::*Collateral sulcus outlined in yellow, boundary between PRC and ERC in green&lt;br /&gt;
::*ERC medial to boundary, PRC lateral&lt;br /&gt;
&#039;&#039;&#039;Anterior CA fields and Dentate Gyrus (AntCADG)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-AntCADG.jpg]]&lt;br /&gt;
::*Only one slice: draw on the first slice anterior to the hippocampal head slice (this should be the slice where you first see undulations going in the Posterior to Anterior direction)&lt;br /&gt;
::*Draw boundary straight through middle of CADG area, and extend all the way laterally to the CA1CA23DG boundary (go through the middle of the hippocampal head between the fissure and the top of the head)&lt;br /&gt;
::*Undulations highlighted in red; CA1CA23DG boundary in green; AntCADG boundary in white&lt;br /&gt;
&#039;&#039;&#039;Creating A/P boundary (ERCPRCPHC)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-ERCPRCPHC.jpg]]&lt;br /&gt;
::*Only one slice: draw on the hippocampal head slice&lt;br /&gt;
::*Starting at the ERCSub boundary, draw a line in the middle of the gray matter ribbon up and over the collateral sulcus, all the way out to the Fus boundary&lt;br /&gt;
::* ERCSub and Fus boundaries shown in yellow&lt;br /&gt;
::* ERCPRCPHC boundary shown in white&lt;br /&gt;
&lt;br /&gt;
===Directory Outline: How to Open FSLView Through Terminal===&lt;br /&gt;
:Below is an outline for the directory path. In order to open files for segmentation, interpolation, and demarcation in the unfolding process, you must be able to navigate the Terminal. &lt;br /&gt;
&lt;br /&gt;
::[[File:unfolding-directory_route.png]]&lt;br /&gt;
&lt;br /&gt;
The best way to open FSLview in order to do demarcations is through the FSLview path in &#039;&#039;Terminal&#039;&#039;. Below are the following steps to open a file for demarcations.&lt;br /&gt;
 &lt;br /&gt;
#ssh -X johnsmith@hoffman2.idre.ucla.edu&lt;br /&gt;
: This is your login. You must have a &#039;&#039;&#039;hoffman&#039;&#039;&#039; account to access &#039;&#039;Terminal&#039;&#039;&lt;br /&gt;
#/u/home/FMRI/sbook/data/AD/subjects &lt;br /&gt;
: This is your homebase directory. Once logged into hoffman, you will be able to access the path of directories seen above. &lt;br /&gt;
::For each subject, there is a &#039;&#039;&#039;nii&#039;&#039;&#039; directory and a &#039;&#039;&#039;analysis&#039;&#039;&#039; directory, which contain information used for demarcations.&lt;br /&gt;
:::The &#039;&#039;&#039;nii&#039;&#039;&#039; directory contains the image files for the brain scans.&lt;br /&gt;
:::The &#039;&#039;&#039;analysis&#039;&#039;&#039; directory contains the subdirectories &#039;&#039;&#039;preprocessing&#039;&#039;&#039; and &#039;&#039;&#039;structural&#039;&#039;&#039;.&lt;br /&gt;
::::The preprocessing directory may also contain the hhr structural image file, as seen in the nii directory .&lt;br /&gt;
::::The structural directory contains the &#039;&#039;&#039;unfold&#039;&#039;&#039; directory which contains folders for &#039;&#039;segmentation&#039;&#039;, &#039;&#039;interpolation&#039;&#039;, and &#039;&#039;demarcations&#039;&#039;. &lt;br /&gt;
#cd AD_10210/2008XXXX/analysis/structural/unfold&lt;br /&gt;
:In this unfold directory, you can check if the hhr image file is already in preprocessing. If the hhr image file is already in the preprocessing directory, it can be opened directly in FSL view. &lt;br /&gt;
#fslview hhr_struct_6.nii.gz&lt;br /&gt;
: If the hhr image is not in the preprocessing directory, you can copy the image from the &#039;&#039;&#039;nii&#039;&#039;&#039; directory into the &#039;&#039;&#039;preprocessing&#039;&#039;&#039; and then open it in FSL view.&lt;br /&gt;
#cd ../../../subjects/AD_1XXXXX&lt;br /&gt;
#cd nii &lt;br /&gt;
#cp nii/hhr_struct_6.nii.gz   ../analysis/preprocessing/hhr_struct_6.nii.gz&lt;br /&gt;
##fslview hhr_struct_6.nii.gz (check if this step is fslview analysis/preprocessing/hhr_struct_6.nii.gz)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.virtualbox.org/ Virtual Box: Virtual machine software]&lt;br /&gt;
*[http://white.stanford.edu/~brian/mri/segmentUnfold.htm MrGray Segmentation software for Windows]&lt;br /&gt;
*[http://www.cygwin.com/ Cygwin Command-line interface for Windows]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/ Hoffman2 Home Page]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-Dir_Route.png&amp;diff=2441</id>
		<title>File:Unfolding-Dir Route.png</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-Dir_Route.png&amp;diff=2441"/>
		<updated>2014-01-28T01:53:53Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-ERCPRCPHC.jpg&amp;diff=2440</id>
		<title>File:Unfolding-ERCPRCPHC.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-ERCPRCPHC.jpg&amp;diff=2440"/>
		<updated>2014-01-28T01:53:22Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-AntCADG.jpg&amp;diff=2439</id>
		<title>File:Unfolding-AntCADG.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-AntCADG.jpg&amp;diff=2439"/>
		<updated>2014-01-28T01:52:13Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-PRCERC.jpg&amp;diff=2438</id>
		<title>File:Unfolding-PRCERC.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-PRCERC.jpg&amp;diff=2438"/>
		<updated>2014-01-28T01:51:53Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-ERCSub.jpg&amp;diff=2437</id>
		<title>File:Unfolding-ERCSub.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-ERCSub.jpg&amp;diff=2437"/>
		<updated>2014-01-28T01:51:30Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-CA1CA23DG.jpg&amp;diff=2436</id>
		<title>File:Unfolding-CA1CA23DG.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-CA1CA23DG.jpg&amp;diff=2436"/>
		<updated>2014-01-28T01:50:35Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-PHCSub.jpg&amp;diff=2435</id>
		<title>File:Unfolding-PHCSub.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-PHCSub.jpg&amp;diff=2435"/>
		<updated>2014-01-28T01:50:01Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-CollSul.jpg&amp;diff=2434</id>
		<title>File:Unfolding-CollSul.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-CollSul.jpg&amp;diff=2434"/>
		<updated>2014-01-28T01:49:58Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-SubCA1_Posterior.jpg&amp;diff=2433</id>
		<title>File:Unfolding-SubCA1 Posterior.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-SubCA1_Posterior.jpg&amp;diff=2433"/>
		<updated>2014-01-28T01:49:54Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-SubCA1_Anterior.jpg&amp;diff=2432</id>
		<title>File:Unfolding-SubCA1 Anterior.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-SubCA1_Anterior.jpg&amp;diff=2432"/>
		<updated>2014-01-28T01:49:47Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-Fus.jpg&amp;diff=2431</id>
		<title>File:Unfolding-Fus.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-Fus.jpg&amp;diff=2431"/>
		<updated>2014-01-28T01:47:51Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Unfolding&amp;diff=2430</id>
		<title>Unfolding</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Unfolding&amp;diff=2430"/>
		<updated>2014-01-28T01:44:57Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several steps to successfully unfolding the high resolution scans of the hippocampus. The details for this section fall into the broad categories of segmentation, interpolation, demarcations, and calculating thickness. A knowledge of command line is necessary, as well as obtaining the tools for each step.&lt;br /&gt;
&lt;br /&gt;
==Tools Required==&lt;br /&gt;
*A copy of Windows&lt;br /&gt;
*A virtual machine emulator &lt;br /&gt;
*A command line interface to connect to [[Hoffman2|hoffman]]&lt;br /&gt;
*MrGray (Windows only)&lt;br /&gt;
*Matlab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Segmentation==&lt;br /&gt;
===Overview===&lt;br /&gt;
The goal of [[segmentation]] is to create a strip of gray matter in the hippocampus by locating the boundaries of the hippocampus in the brain. Using FMRI technology, the brain is sliced anteriorly to posteriorly to obtain slices of all parts of the hippocampus, creating a 2D version of the 3D hippocampus that can be mapped and analyzed. After opening [[VirtualBox]], we run a computer program, [[MrGray Segmentation software for Windows]], where we can view and find all the slices of the brain that show a portion of the hippocampus. On these slices,the hippocampal gray matter is surrounded by white matter and cerebral spinal fluid (CSF). We must mark the surrounding white matter and CSF respectively to obtain our strip of gray matter in between. The CSF material is the strip of atrophy on the interior of the gray matter, which begins at the hippocampal fissure, follows down to the collateral sulcus, and finishes after the second sulcus. The white matter is the material on the exterior portion of the gray matter. It is important to note that the shape of the hippocampal head changes from anterior to posterior in the brain. On the anterior slices, the hippocampal head has a long, oval shape. In the posterior slices, the hippocampal head has a round, almond shape. On the anterior slices, the CSF matter comes up to meet the white matter at the hippocampus head and also continues through the second sulcus through the gray matter to close off our strip. In the posterior slices, the CSF still continues through the second sulcus to the gray matter to close off the strip, but the white matter comes down to the CSF at the hippocampal fissure on the hippocampal head.&lt;br /&gt;
&lt;br /&gt;
===Getting Started: The Initial Segmentation Checklist===&lt;br /&gt;
#Export all of your vAnatomyCrop.dat files to a PC (ftp using binary).&lt;br /&gt;
#Run the program mrGray&lt;br /&gt;
#Create a new project and name it after your subject. Use the following nomenclature:&lt;br /&gt;
::AD_#####&lt;br /&gt;
:::ex. AD_12345&lt;br /&gt;
&lt;br /&gt;
For a subject with the Small ID 12345, who was scanned on May 25th, 2012, the following would be the subject entry in /u/home/data/sbook/data/AD/subjects:&lt;br /&gt;
::subj ID: AD_12345&lt;br /&gt;
::date: 20120525 (yyyymmdd)&lt;br /&gt;
::And it would be in the following path:&lt;br /&gt;
:::/u/home/sbook/data/AD/subjects/AD_12345/20120525/... etc etc.&lt;br /&gt;
&lt;br /&gt;
Subjects file names should look like:&lt;br /&gt;
::subject ID: AD_12345&lt;br /&gt;
::subject scan date: 20120525&lt;br /&gt;
::segmentation: AD_12345_seg&lt;br /&gt;
::interpolation: AD_12345_interpright or AD_12345_interpleft&lt;br /&gt;
&lt;br /&gt;
Once you have completed the segmentation session make sure to update our filemaker tab in objective fitness spreadsheet&lt;br /&gt;
::Select name for new project in AD/subjects/AD_XXXXX/SCANDATE/analysis/structural/unfold/segmentation&lt;br /&gt;
:::Select vAnatomyCrop.dat&lt;br /&gt;
:::Figure out which slices to segment based on anatomical guidelines.&lt;br /&gt;
::::*Anteriorly, choosing the last slice in which hippocampal head is visible is a consistent start point we&#039;ve used&lt;br /&gt;
&lt;br /&gt;
::Below are anatomical diagrams of the hippocampus and what to look for:&lt;br /&gt;
[[File:unfolding-Anat.png]]&lt;br /&gt;
:::Figure 1. Anatomical diagram, with an inferior view of the whole brain at the left, an inferior view of the temporal lobe 	at the center, and coronal sections from the two indicated slices at the right. A: Anterior slice through entorhinal 	cortex. B: Posterior slice 	through parahippocampal cortex. ERC, entorhinal cortex; PRC, perirhinal cortex; PHC, 	parahippocampal cortex; FG, fusiform gyrus; Sub, subiculum; CA 1,cornu ammonis 1; CA 2,3, CA fields 2 and 3; 	DG, dentate gyrus; CoS, collateral sulcus.&lt;br /&gt;
[[File:unfolding-Hipp.png]]&lt;br /&gt;
:::Figure 2. Coronal view of right side of the hippocampus. In the coronal plane the hippocampus and parahippocampal gyrus form an S-shaped configuration. The hippocampus itself consists of two interlocking C-shaped structures: the cornu ammonis and the dentate gyrus. Histologically, the hippocampus is further divided into 4 sections CA1 to CA4.&lt;br /&gt;
&lt;br /&gt;
Once file is created, you may begin segmentation process:&lt;br /&gt;
#Segment the white matter 1st (colored in beige) (red in our lab), using a pixel size of 3 pixels minimum&lt;br /&gt;
#Select white matter with the checkbox at the right&lt;br /&gt;
#Another checkbox indicates the highlight size (use 3)&lt;br /&gt;
#The left mouse button highlights a pixel, and the right mouse button deselects pixels&lt;br /&gt;
#Then, segment the CSF (colored in yellow) (blue in our lab), imposing a thin boundary on the segmentation. (You want it thin because you will expand it after the interpolation step).&lt;br /&gt;
#Save the segmentation (File -&amp;gt; Classification -&amp;gt; Save as with the above nomenclature).&lt;br /&gt;
::*&#039;&#039;&#039;Save early, save often.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here is an example of an initial segmentation: Starting anteriorly and ending posteriorly:&lt;br /&gt;
&lt;br /&gt;
:[[File:unfolding-Seg_P1.png]]&lt;br /&gt;
:[[File:unfolding-Seg_P2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Interpolation==&lt;br /&gt;
Explain [[interpolation]] here.&lt;br /&gt;
&lt;br /&gt;
To load an existing project, when you&#039;re in MrGray, you&#039;ll click on Load project and you can select any .mrp file.&lt;br /&gt;
These will be named AD_1XXXX_interpleft or _interpright. It will then appear and you should be able to see the CSF&lt;br /&gt;
and white matter masks if they are selected in the toolbar.&lt;br /&gt;
&lt;br /&gt;
Create a new interpolation file; these are the steps you will take:&lt;br /&gt;
&lt;br /&gt;
# Open the menu and select File &amp;gt; New Project&lt;br /&gt;
# In the first window go to the subject&#039;s unfold directory (ie. ...AD/subjects/AD_1XXXX/2012####/analysis/structural/unfold/interpolation)&lt;br /&gt;
# Name the project AD_1XXXX_interpleft or AD_1XXXX_interpright and hit enter&lt;br /&gt;
# In the second window select the Volume anatomy file for the interpolation file (vAnatInterp.dat file) and hit enter&lt;br /&gt;
# When the image displays, you will now go to the File menu again and then to &amp;quot;Classification&amp;quot;. Then click &amp;quot;load classification file&amp;quot;.&lt;br /&gt;
# The window that pops up will ask you to select a class file. This will be AD_1XXXX_interpright or interpleft that already exists in the directory. Select the side for which you created and hit enter. &lt;br /&gt;
# Check to make sure the masks align correctly.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Demarcations==&lt;br /&gt;
&lt;br /&gt;
===Getting Started===&lt;br /&gt;
After segmentation and interpolation, [[demarcations]] create the boundaries for the different region of the hippocampus. These boundaries can be conveniently drawn using FSLview. Open your hire structural image. Be sure this is the same brain that you used for the unfolding process. It is important to note that these images are in radiological convention, so if you&#039;re drawing on the right side of the screen, this is actually the left hemisphere. Look at your notes to determine which slices were segmented and used for unfolding; only draw boundaries on the slices that have been segmented. To create a new boundary, go to the file menu and select &amp;quot;Create Mask.&amp;quot; In the lower left corner, you&#039;ll see a blue &amp;quot;i&amp;quot;; click on this to re-name your boundary as needed, and to select the color you&#039;d like to draw with. To zoom in on the MTL, first go to View/Single, and then expland the coronal image. Use the zoom tool to magnify the MTL. Click on the pencil tool, and make adjustments as desired. A brightness with typically a max of 1 and a small pencil size work best. If using a mouse, the left button draws the boundary and the ctrl+ left button erases. When saving, be sure to save to your Demarcations directory, and to use the proper naming convention. It is best to complete one boundary at a time across all slices, and then move on to the next boundary.&lt;br /&gt;
&lt;br /&gt;
===General Tips===&lt;br /&gt;
Before starting to draw, you want to first identify the slice where the hippocampal head begins. It is important to note that where the hippocampal head &amp;quot;begins&amp;quot; means where it begins when going in the Posterior to Anterior direction. This slice, which will be called the &#039;&#039;&#039;hippocampal head slice&#039;&#039;&#039; throughout the rest of these instructions is where the anterior structures will start. Also, drawing shorter/smaller boundaries will reduce variability once projected onto the flat maps, giving you a straighter line. In general, boundary doesn&#039;t need to cross the entire gray matter area; keep the boundary towards the medial or superior side of things, as appropriate.&lt;br /&gt;
&lt;br /&gt;
===Naming Convention===&lt;br /&gt;
Boundaries drawn on all the slices:&lt;br /&gt;
*&#039;&#039;&#039;Fus&#039;&#039;&#039;(Fusiform)&lt;br /&gt;
* &#039;&#039;&#039;CollSul&#039;&#039;&#039;(Collateral Sulcus) &lt;br /&gt;
*&#039;&#039;&#039;SubCA1&#039;&#039;&#039;(Subiculum-CA1)&lt;br /&gt;
* &#039;&#039;&#039;CA1CA23DG&#039;&#039;&#039;(CA1-CA23DG) &lt;br /&gt;
Boundaries drawn on anterior slices only: &lt;br /&gt;
*&#039;&#039;&#039;ERCSub&#039;&#039;&#039; (Entorhinal Coral- Subiculum)&lt;br /&gt;
*&#039;&#039;&#039;PRCERC&#039;&#039;&#039; (Perirhinal Cortex- Entorhinal Cortex) &lt;br /&gt;
*&#039;&#039;&#039;AntCADG&#039;&#039;&#039; (Anterior portion of CA fields and Dentate Gyrus)&lt;br /&gt;
* &#039;&#039;&#039;ERCPRCPHC&#039;&#039;&#039; (Boundary between anterior structures Entorhinal/Perirhinal Cortices and the posterior structure Parahippocampal Cortex)&lt;br /&gt;
Boundaries drawn on the posterior slices only: &lt;br /&gt;
*&#039;&#039;&#039;PHCSub&#039;&#039;&#039; (Parahippocampal Cortex- Subiculum)&lt;br /&gt;
&lt;br /&gt;
===Individual Boundaries===&lt;br /&gt;
On each of the slices that were segmented, we must determine which boundaries to mark. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fusiform (Fus)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-Fus.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the &amp;quot;elbow&amp;quot; of the lateral side of the collateral sulcus (on the side closer to the second sulcus)&lt;br /&gt;
::*Outline of collateral sulcul shown in red; boundary between sulcus and fusiform gyrus shown in yellow&lt;br /&gt;
::*Fusiform is lateral to the boundary&lt;br /&gt;
&#039;&#039;&#039;Collateral Sulcus (CollSul)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-CollSul.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the bend in the superior tip of the collateral sulcus&lt;br /&gt;
::*Outline of collateral sulcus shown in yellow; boundary shown in red&lt;br /&gt;
&#039;&#039;&#039;Separating PHC from Subiculum (PHCSub)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-PHCSub.jpg]]&lt;br /&gt;
::*Posterior slices only &lt;br /&gt;
::*Begin drawing on the first slice posterior to the hippocampal head slice, and continue to draw on the remainder of the posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon approximately 50% of the way up the bend&lt;br /&gt;
::*Bend shown in red, boundary between subiculum and PHC shown in green&lt;br /&gt;
::*Subiculum is superior to boundary&lt;br /&gt;
&#039;&#039;&#039;Separating Subiculum from CA1 (SubCA1)&#039;&#039;&#039;&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*&#039;&#039;Anterior&#039;&#039;: boundary more lateral; draw boundary underneath &amp;quot;bump&amp;quot; where the curve of the hippocampus comes in, bisecting it&lt;br /&gt;
:::* Bump shown in red, boundary between Sub and CA1 shown in blue&lt;br /&gt;
:::* Sub is medial to the boundary, CA1 is lateral&lt;br /&gt;
::: [[File:unfolding-SubCA1_anterior.jpg]]&lt;br /&gt;
::*&#039;&#039;Posterior&#039;&#039;: boundary more medial; draw boundary where the hippocampus pinches off into a tear-drop shape, or folds into itself&lt;br /&gt;
:::*Teardrop shown in red, boundary between Sub and CA1 shown in blue &lt;br /&gt;
:::*Sub is medial to the boundary, CA1 is lateral&lt;br /&gt;
:::[[File:unfolding-SubCA1_posterior.jpg]]&lt;br /&gt;
&#039;&#039;&#039;Separating CA1 from CA23DG (CA1CA23DG)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-CA1CA23DG.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the bend (on the path where the hippocampal fissure would extend to in the hippocampal head)&lt;br /&gt;
::*Bend shown in red; boundary between CA1CA23DG shown in green&lt;br /&gt;
&#039;&#039;&#039;Separating ERC from Subiculum (ERCSub)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-ERCSub.jpg]]&lt;br /&gt;
::*Anterior slices only&lt;br /&gt;
::*Begin drawing on hippocampal head slice, and continue to draw on the remainder of the anterior slices&lt;br /&gt;
::*If you were to continue the lateral boundary of the hippocampus inwards medially, it would divide the hippocampus and the ERC&lt;br /&gt;
::*Draw boundary along this divide, perpendicular to gray matter ribbon&lt;br /&gt;
::*Lateral boundary shown in red, boundary between ERC and Sub shown in yellow&lt;br /&gt;
&#039;&#039;&#039;Separating PRC from ERC (PRCERC)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-PRCERC.jpg]]&lt;br /&gt;
::*Anterior slices only &lt;br /&gt;
::*Begin drawing on hippocampal head slice, and continue to draw on the remainder of the anterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the &amp;quot;elbow&amp;quot; of the medial side of the collateral sulcus (the side of the collateral sulcus closer to the hippocampal head)&lt;br /&gt;
::*Collateral sulcus outlined in yellow, boundary between PRC and ERC in green&lt;br /&gt;
::*ERC medial to boundary, PRC lateral&lt;br /&gt;
&#039;&#039;&#039;Anterior CA fields and Dentate Gyrus (AntCADG)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-AntCADG.jpg]]&lt;br /&gt;
::*Only one slice: draw on the first slice anterior to the hippocampal head slice (this should be the slice where you first see undulations going in the Posterior to Anterior direction)&lt;br /&gt;
::*Draw boundary straight through middle of CADG area, and extend all the way laterally to the CA1CA23DG boundary (go through the middle of the hippocampal head between the fissure and the top of the head)&lt;br /&gt;
::*Undulations highlighted in red; CA1CA23DG boundary in green; AntCADG boundary in white&lt;br /&gt;
&#039;&#039;&#039;Creating A/P boundary (ERCPRCPHC)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-ERCPRCPHC.jpg]]&lt;br /&gt;
::*Only one slice: draw on the hippocampal head slice&lt;br /&gt;
::*Starting at the ERCSub boundary, draw a line in the middle of the gray matter ribbon up and over the collateral sulcus, all the way out to the Fus boundary&lt;br /&gt;
::* ERCSub and Fus boundaries shown in yellow&lt;br /&gt;
::* ERCPRCPHC boundary shown in white&lt;br /&gt;
&lt;br /&gt;
===Directory Outline: How to Open FSLView Through Terminal===&lt;br /&gt;
:Below is an outline for the directory path. In order to open files for segmentation, interpolation, and demarcation in the unfolding process, you must be able to navigate the Terminal. &lt;br /&gt;
&lt;br /&gt;
::[[File:unfolding-directory_route.png]]&lt;br /&gt;
&lt;br /&gt;
The best way to open FSLview in order to do demarcations is through the FSLview path in &#039;&#039;Terminal&#039;&#039;. Below are the following steps to open a file for demarcations.&lt;br /&gt;
 &lt;br /&gt;
#ssh -X johnsmith@hoffman2.idre.ucla.edu&lt;br /&gt;
: This is your login. You must have a &#039;&#039;&#039;hoffman&#039;&#039;&#039; account to access &#039;&#039;Terminal&#039;&#039;&lt;br /&gt;
#/u/home/FMRI/sbook/data/AD/subjects &lt;br /&gt;
: This is your homebase directory. Once logged into hoffman, you will be able to access the path of directories seen above. &lt;br /&gt;
::For each subject, there is a &#039;&#039;&#039;nii&#039;&#039;&#039; directory and a &#039;&#039;&#039;analysis&#039;&#039;&#039; directory, which contain information used for demarcations.&lt;br /&gt;
:::The &#039;&#039;&#039;nii&#039;&#039;&#039; directory contains the image files for the brain scans.&lt;br /&gt;
:::The &#039;&#039;&#039;analysis&#039;&#039;&#039; directory contains the subdirectories &#039;&#039;&#039;preprocessing&#039;&#039;&#039; and &#039;&#039;&#039;structural&#039;&#039;&#039;.&lt;br /&gt;
::::The preprocessing directory may also contain the hhr structural image file, as seen in the nii directory .&lt;br /&gt;
::::The structural directory contains the &#039;&#039;&#039;unfold&#039;&#039;&#039; directory which contains folders for &#039;&#039;segmentation&#039;&#039;, &#039;&#039;interpolation&#039;&#039;, and &#039;&#039;demarcations&#039;&#039;. &lt;br /&gt;
#cd AD_10210/2008XXXX/analysis/structural/unfold&lt;br /&gt;
:In this unfold directory, you can check if the hhr image file is already in preprocessing. If the hhr image file is already in the preprocessing directory, it can be opened directly in FSL view. &lt;br /&gt;
#fslview hhr_struct_6.nii.gz&lt;br /&gt;
: If the hhr image is not in the preprocessing directory, you can copy the image from the &#039;&#039;&#039;nii&#039;&#039;&#039; directory into the &#039;&#039;&#039;preprocessing&#039;&#039;&#039; and then open it in FSL view.&lt;br /&gt;
#cd ../../../subjects/AD_1XXXXX&lt;br /&gt;
#cd nii &lt;br /&gt;
#cp nii/hhr_struct_6.nii.gz   ../analysis/preprocessing/hhr_struct_6.nii.gz&lt;br /&gt;
##fslview hhr_struct_6.nii.gz (check if this step is fslview analysis/preprocessing/hhr_struct_6.nii.gz)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.virtualbox.org/ Virtual Box: Virtual machine software]&lt;br /&gt;
*[http://white.stanford.edu/~brian/mri/segmentUnfold.htm MrGray Segmentation software for Windows]&lt;br /&gt;
*[http://www.cygwin.com/ Cygwin Command-line interface for Windows]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/ Hoffman2 Home Page]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Unfolding&amp;diff=2429</id>
		<title>Unfolding</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Unfolding&amp;diff=2429"/>
		<updated>2014-01-28T01:44:03Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: /* Segmentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several steps to successfully unfolding the high resolution scans of the hippocampus. The details for this section fall into the broad categories of segmentation, interpolation, demarcations, and calculating thickness. A knowledge of command line is necessary, as well as obtaining the tools for each step.&lt;br /&gt;
&lt;br /&gt;
==Tools Required==&lt;br /&gt;
*A copy of Windows&lt;br /&gt;
*A virtual machine emulator &lt;br /&gt;
*A command line interface to connect to [[Hoffman2|hoffman]]&lt;br /&gt;
*MrGray (Windows only)&lt;br /&gt;
*Matlab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Segmentation==&lt;br /&gt;
===Overview===&lt;br /&gt;
The goal of [[segmentation]] is to create a strip of gray matter in the hippocampus by locating the boundaries of the hippocampus in the brain. Using FMRI technology, the brain is sliced anteriorly to posteriorly to obtain slices of all parts of the hippocampus, creating a 2D version of the 3D hippocampus that can be mapped and analyzed. After opening [[VirtualBox]], we run a computer program, [[MrGray Segmentation software for Windows]], where we can view and find all the slices of the brain that show a portion of the hippocampus. On these slices,the hippocampal gray matter is surrounded by white matter and cerebral spinal fluid (CSF). We must mark the surrounding white matter and CSF respectively to obtain our strip of gray matter in between. The CSF material is the strip of atrophy on the interior of the gray matter, which begins at the hippocampal fissure, follows down to the collateral sulcus, and finishes after the second sulcus. The white matter is the material on the exterior portion of the gray matter. It is important to note that the shape of the hippocampal head changes from anterior to posterior in the brain. On the anterior slices, the hippocampal head has a long, oval shape. In the posterior slices, the hippocampal head has a round, almond shape. On the anterior slices, the CSF matter comes up to meet the white matter at the hippocampus head and also continues through the second sulcus through the gray matter to close off our strip. In the posterior slices, the CSF still continues through the second sulcus to the gray matter to close off the strip, but the white matter comes down to the CSF at the hippocampal fissure on the hippocampal head.&lt;br /&gt;
&lt;br /&gt;
===Getting Started: The Initial Segmentation Checklist===&lt;br /&gt;
#Export all of your vAnatomyCrop.dat files to a PC (ftp using binary).&lt;br /&gt;
#Run the program mrGray&lt;br /&gt;
#Create a new project and name it after your subject. Use the following nomenclature:&lt;br /&gt;
::AD_#####&lt;br /&gt;
:::ex. AD_12345&lt;br /&gt;
&lt;br /&gt;
For a subject with the Small ID 12345, who was scanned on May 25th, 2012, the following would be the subject entry in /u/home/data/sbook/data/AD/subjects:&lt;br /&gt;
::subj ID: AD_12345&lt;br /&gt;
::date: 20120525 (yyyymmdd)&lt;br /&gt;
::And it would be in the following path:&lt;br /&gt;
:::/u/home/sbook/data/AD/subjects/AD_12345/20120525/... etc etc.&lt;br /&gt;
&lt;br /&gt;
Subjects file names should look like:&lt;br /&gt;
::subject ID: AD_12345&lt;br /&gt;
::subject scan date: 20120525&lt;br /&gt;
::segmentation: AD_12345_seg&lt;br /&gt;
::interpolation: AD_12345_interpright or AD_12345_interpleft&lt;br /&gt;
&lt;br /&gt;
Once you have completed the segmentation session make sure to update our filemaker tab in objective fitness spreadsheet&lt;br /&gt;
::Select name for new project in AD/subjects/AD_XXXXX/SCANDATE/analysis/structural/unfold/segmentation&lt;br /&gt;
:::Select vAnatomyCrop.dat&lt;br /&gt;
:::Figure out which slices to segment based on anatomical guidelines.&lt;br /&gt;
::::*Anteriorly, choosing the last slice in which hippocampal head is visible is a consistent start point we&#039;ve used&lt;br /&gt;
&lt;br /&gt;
::Below are anatomical diagrams of the hippocampus and what to look for:&lt;br /&gt;
[[File:unfolding-Anat.png]]&lt;br /&gt;
:::Figure 1. Anatomical diagram, with an inferior view of the whole brain at the left, an inferior view of the temporal lobe 	at the center, and coronal sections from the two indicated slices at the right. A: Anterior slice through entorhinal 	cortex. B: Posterior slice 	through parahippocampal cortex. ERC, entorhinal cortex; PRC, perirhinal cortex; PHC, 	parahippocampal cortex; FG, fusiform gyrus; Sub, subiculum; CA 1,cornu ammonis 1; CA 2,3, CA fields 2 and 3; 	DG, dentate gyrus; CoS, collateral sulcus.&lt;br /&gt;
[[File:unfolding-Hipp.png]]&lt;br /&gt;
:::Figure 2. Coronal view of right side of the hippocampus. In the coronal plane the hippocampus and parahippocampal gyrus form an S-shaped configuration. The hippocampus itself consists of two interlocking C-shaped structures: the cornu ammonis and the dentate gyrus. Histologically, the hippocampus is further divided into 4 sections CA1 to CA4.&lt;br /&gt;
&lt;br /&gt;
Once file is created, you may begin segmentation process:&lt;br /&gt;
#Segment the white matter 1st (colored in beige) (red in our lab), using a pixel size of 3 pixels minimum&lt;br /&gt;
#Select white matter with the checkbox at the right&lt;br /&gt;
#Another checkbox indicates the highlight size (use 3)&lt;br /&gt;
#The left mouse button highlights a pixel, and the right mouse button deselects pixels&lt;br /&gt;
#Then, segment the CSF (colored in yellow) (blue in our lab), imposing a thin boundary on the segmentation. (You want it thin because you will expand it after the interpolation step).&lt;br /&gt;
#Save the segmentation (File -&amp;gt; Classification -&amp;gt; Save as with the above nomenclature).&lt;br /&gt;
::*&#039;&#039;&#039;Save early, save often.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here is an example of an initial segmentation: Starting anteriorly and ending posteriorly:&lt;br /&gt;
&lt;br /&gt;
:[[File:unfolding-Seg_P1.png]]&lt;br /&gt;
:[[File:unfolding-Seg_P2.png]]&lt;br /&gt;
&lt;br /&gt;
==Interpolation==&lt;br /&gt;
Explain [[interpolation]] here.&lt;br /&gt;
&lt;br /&gt;
To load an existing project, when you&#039;re in MrGray, you&#039;ll click on Load project and you can select any .mrp file.&lt;br /&gt;
These will be named AD_1XXXX_interpleft or _interpright. It will then appear and you should be able to see the CSF&lt;br /&gt;
and white matter masks if they are selected in the toolbar.&lt;br /&gt;
&lt;br /&gt;
Create a new interpolation file; these are the steps you will take:&lt;br /&gt;
&lt;br /&gt;
# Open the menu and select File &amp;gt; New Project&lt;br /&gt;
# In the first window go to the subject&#039;s unfold directory (ie. ...AD/subjects/AD_1XXXX/2012####/analysis/structural/unfold/interpolation)&lt;br /&gt;
# Name the project AD_1XXXX_interpleft or AD_1XXXX_interpright and hit enter&lt;br /&gt;
# In the second window select the Volume anatomy file for the interpolation file (vAnatInterp.dat file) and hit enter&lt;br /&gt;
# When the image displays, you will now go to the File menu again and then to &amp;quot;Classification&amp;quot;. Then click &amp;quot;load classification file&amp;quot;.&lt;br /&gt;
# The window that pops up will ask you to select a class file. This will be AD_1XXXX_interpright or interpleft that already exists in the directory. Select the side for which you created and hit enter. &lt;br /&gt;
# Check to make sure the masks align correctly.&lt;br /&gt;
&lt;br /&gt;
==Demarcations==&lt;br /&gt;
&lt;br /&gt;
===Getting Started===&lt;br /&gt;
After segmentation and interpolation, [[demarcations]] create the boundaries for the different region of the hippocampus. These boundaries can be conveniently drawn using FSLview. Open your hire structural image. Be sure this is the same brain that you used for the unfolding process. It is important to note that these images are in radiological convention, so if you&#039;re drawing on the right side of the screen, this is actually the left hemisphere. Look at your notes to determine which slices were segmented and used for unfolding; only draw boundaries on the slices that have been segmented. To create a new boundary, go to the file menu and select &amp;quot;Create Mask.&amp;quot; In the lower left corner, you&#039;ll see a blue &amp;quot;i&amp;quot;; click on this to re-name your boundary as needed, and to select the color you&#039;d like to draw with. To zoom in on the MTL, first go to View/Single, and then expland the coronal image. Use the zoom tool to magnify the MTL. Click on the pencil tool, and make adjustments as desired. A brightness with typically a max of 1 and a small pencil size work best. If using a mouse, the left button draws the boundary and the ctrl+ left button erases. When saving, be sure to save to your Demarcations directory, and to use the proper naming convention. It is best to complete one boundary at a time across all slices, and then move on to the next boundary.&lt;br /&gt;
&lt;br /&gt;
===General Tips===&lt;br /&gt;
Before starting to draw, you want to first identify the slice where the hippocampal head begins. It is important to note that where the hippocampal head &amp;quot;begins&amp;quot; means where it begins when going in the Posterior to Anterior direction. This slice, which will be called the &#039;&#039;&#039;hippocampal head slice&#039;&#039;&#039; throughout the rest of these instructions is where the anterior structures will start. Also, drawing shorter/smaller boundaries will reduce variability once projected onto the flat maps, giving you a straighter line. In general, boundary doesn&#039;t need to cross the entire gray matter area; keep the boundary towards the medial or superior side of things, as appropriate.&lt;br /&gt;
&lt;br /&gt;
===Naming Convention===&lt;br /&gt;
Boundaries drawn on all the slices:&lt;br /&gt;
*&#039;&#039;&#039;Fus&#039;&#039;&#039;(Fusiform)&lt;br /&gt;
* &#039;&#039;&#039;CollSul&#039;&#039;&#039;(Collateral Sulcus) &lt;br /&gt;
*&#039;&#039;&#039;SubCA1&#039;&#039;&#039;(Subiculum-CA1)&lt;br /&gt;
* &#039;&#039;&#039;CA1CA23DG&#039;&#039;&#039;(CA1-CA23DG) &lt;br /&gt;
Boundaries drawn on anterior slices only: &lt;br /&gt;
*&#039;&#039;&#039;ERCSub&#039;&#039;&#039; (Entorhinal Coral- Subiculum)&lt;br /&gt;
*&#039;&#039;&#039;PRCERC&#039;&#039;&#039; (Perirhinal Cortex- Entorhinal Cortex) &lt;br /&gt;
*&#039;&#039;&#039;AntCADG&#039;&#039;&#039; (Anterior portion of CA fields and Dentate Gyrus)&lt;br /&gt;
* &#039;&#039;&#039;ERCPRCPHC&#039;&#039;&#039; (Boundary between anterior structures Entorhinal/Perirhinal Cortices and the posterior structure Parahippocampal Cortex)&lt;br /&gt;
Boundaries drawn on the posterior slices only: &lt;br /&gt;
*&#039;&#039;&#039;PHCSub&#039;&#039;&#039; (Parahippocampal Cortex- Subiculum)&lt;br /&gt;
&lt;br /&gt;
===Individual Boundaries===&lt;br /&gt;
On each of the slices that were segmented, we must determine which boundaries to mark. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fusiform (Fus)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-Fus.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the &amp;quot;elbow&amp;quot; of the lateral side of the collateral sulcus (on the side closer to the second sulcus)&lt;br /&gt;
::*Outline of collateral sulcul shown in red; boundary between sulcus and fusiform gyrus shown in yellow&lt;br /&gt;
::*Fusiform is lateral to the boundary&lt;br /&gt;
&#039;&#039;&#039;Collateral Sulcus (CollSul)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-CollSul.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the bend in the superior tip of the collateral sulcus&lt;br /&gt;
::*Outline of collateral sulcus shown in yellow; boundary shown in red&lt;br /&gt;
&#039;&#039;&#039;Separating PHC from Subiculum (PHCSub)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-PHCSub.jpg]]&lt;br /&gt;
::*Posterior slices only &lt;br /&gt;
::*Begin drawing on the first slice posterior to the hippocampal head slice, and continue to draw on the remainder of the posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon approximately 50% of the way up the bend&lt;br /&gt;
::*Bend shown in red, boundary between subiculum and PHC shown in green&lt;br /&gt;
::*Subiculum is superior to boundary&lt;br /&gt;
&#039;&#039;&#039;Separating Subiculum from CA1 (SubCA1)&#039;&#039;&#039;&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*&#039;&#039;Anterior&#039;&#039;: boundary more lateral; draw boundary underneath &amp;quot;bump&amp;quot; where the curve of the hippocampus comes in, bisecting it&lt;br /&gt;
:::* Bump shown in red, boundary between Sub and CA1 shown in blue&lt;br /&gt;
:::* Sub is medial to the boundary, CA1 is lateral&lt;br /&gt;
::: [[File:unfolding-SubCA1_anterior.jpg]]&lt;br /&gt;
::*&#039;&#039;Posterior&#039;&#039;: boundary more medial; draw boundary where the hippocampus pinches off into a tear-drop shape, or folds into itself&lt;br /&gt;
:::*Teardrop shown in red, boundary between Sub and CA1 shown in blue &lt;br /&gt;
:::*Sub is medial to the boundary, CA1 is lateral&lt;br /&gt;
:::[[File:unfolding-SubCA1_posterior.jpg]]&lt;br /&gt;
&#039;&#039;&#039;Separating CA1 from CA23DG (CA1CA23DG)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-CA1CA23DG.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the bend (on the path where the hippocampal fissure would extend to in the hippocampal head)&lt;br /&gt;
::*Bend shown in red; boundary between CA1CA23DG shown in green&lt;br /&gt;
&#039;&#039;&#039;Separating ERC from Subiculum (ERCSub)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-ERCSub.jpg]]&lt;br /&gt;
::*Anterior slices only&lt;br /&gt;
::*Begin drawing on hippocampal head slice, and continue to draw on the remainder of the anterior slices&lt;br /&gt;
::*If you were to continue the lateral boundary of the hippocampus inwards medially, it would divide the hippocampus and the ERC&lt;br /&gt;
::*Draw boundary along this divide, perpendicular to gray matter ribbon&lt;br /&gt;
::*Lateral boundary shown in red, boundary between ERC and Sub shown in yellow&lt;br /&gt;
&#039;&#039;&#039;Separating PRC from ERC (PRCERC)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-PRCERC.jpg]]&lt;br /&gt;
::*Anterior slices only &lt;br /&gt;
::*Begin drawing on hippocampal head slice, and continue to draw on the remainder of the anterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the &amp;quot;elbow&amp;quot; of the medial side of the collateral sulcus (the side of the collateral sulcus closer to the hippocampal head)&lt;br /&gt;
::*Collateral sulcus outlined in yellow, boundary between PRC and ERC in green&lt;br /&gt;
::*ERC medial to boundary, PRC lateral&lt;br /&gt;
&#039;&#039;&#039;Anterior CA fields and Dentate Gyrus (AntCADG)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-AntCADG.jpg]]&lt;br /&gt;
::*Only one slice: draw on the first slice anterior to the hippocampal head slice (this should be the slice where you first see undulations going in the Posterior to Anterior direction)&lt;br /&gt;
::*Draw boundary straight through middle of CADG area, and extend all the way laterally to the CA1CA23DG boundary (go through the middle of the hippocampal head between the fissure and the top of the head)&lt;br /&gt;
::*Undulations highlighted in red; CA1CA23DG boundary in green; AntCADG boundary in white&lt;br /&gt;
&#039;&#039;&#039;Creating A/P boundary (ERCPRCPHC)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-ERCPRCPHC.jpg]]&lt;br /&gt;
::*Only one slice: draw on the hippocampal head slice&lt;br /&gt;
::*Starting at the ERCSub boundary, draw a line in the middle of the gray matter ribbon up and over the collateral sulcus, all the way out to the Fus boundary&lt;br /&gt;
::* ERCSub and Fus boundaries shown in yellow&lt;br /&gt;
::* ERCPRCPHC boundary shown in white&lt;br /&gt;
&lt;br /&gt;
===Directory Outline: How to Open FSLView Through Terminal===&lt;br /&gt;
:Below is an outline for the directory path. In order to open files for segmentation, interpolation, and demarcation in the unfolding process, you must be able to navigate the Terminal. &lt;br /&gt;
&lt;br /&gt;
::[[File:unfolding-directory_route.png]]&lt;br /&gt;
&lt;br /&gt;
The best way to open FSLview in order to do demarcations is through the FSLview path in &#039;&#039;Terminal&#039;&#039;. Below are the following steps to open a file for demarcations.&lt;br /&gt;
 &lt;br /&gt;
#ssh -X johnsmith@hoffman2.idre.ucla.edu&lt;br /&gt;
: This is your login. You must have a &#039;&#039;&#039;hoffman&#039;&#039;&#039; account to access &#039;&#039;Terminal&#039;&#039;&lt;br /&gt;
#/u/home/FMRI/sbook/data/AD/subjects &lt;br /&gt;
: This is your homebase directory. Once logged into hoffman, you will be able to access the path of directories seen above. &lt;br /&gt;
::For each subject, there is a &#039;&#039;&#039;nii&#039;&#039;&#039; directory and a &#039;&#039;&#039;analysis&#039;&#039;&#039; directory, which contain information used for demarcations.&lt;br /&gt;
:::The &#039;&#039;&#039;nii&#039;&#039;&#039; directory contains the image files for the brain scans.&lt;br /&gt;
:::The &#039;&#039;&#039;analysis&#039;&#039;&#039; directory contains the subdirectories &#039;&#039;&#039;preprocessing&#039;&#039;&#039; and &#039;&#039;&#039;structural&#039;&#039;&#039;.&lt;br /&gt;
::::The preprocessing directory may also contain the hhr structural image file, as seen in the nii directory .&lt;br /&gt;
::::The structural directory contains the &#039;&#039;&#039;unfold&#039;&#039;&#039; directory which contains folders for &#039;&#039;segmentation&#039;&#039;, &#039;&#039;interpolation&#039;&#039;, and &#039;&#039;demarcations&#039;&#039;. &lt;br /&gt;
#cd AD_10210/2008XXXX/analysis/structural/unfold&lt;br /&gt;
:In this unfold directory, you can check if the hhr image file is already in preprocessing. If the hhr image file is already in the preprocessing directory, it can be opened directly in FSL view. &lt;br /&gt;
#fslview hhr_struct_6.nii.gz&lt;br /&gt;
: If the hhr image is not in the preprocessing directory, you can copy the image from the &#039;&#039;&#039;nii&#039;&#039;&#039; directory into the &#039;&#039;&#039;preprocessing&#039;&#039;&#039; and then open it in FSL view.&lt;br /&gt;
#cd ../../../subjects/AD_1XXXXX&lt;br /&gt;
#cd nii &lt;br /&gt;
#cp nii/hhr_struct_6.nii.gz   ../analysis/preprocessing/hhr_struct_6.nii.gz&lt;br /&gt;
##fslview hhr_struct_6.nii.gz (check if this step is fslview analysis/preprocessing/hhr_struct_6.nii.gz)&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.virtualbox.org/ Virtual Box: Virtual machine software]&lt;br /&gt;
*[http://white.stanford.edu/~brian/mri/segmentUnfold.htm MrGray Segmentation software for Windows]&lt;br /&gt;
*[http://www.cygwin.com/ Cygwin Command-line interface for Windows]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/ Hoffman2 Home Page]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-Seg_P1.png&amp;diff=2428</id>
		<title>File:Unfolding-Seg P1.png</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-Seg_P1.png&amp;diff=2428"/>
		<updated>2014-01-28T01:43:38Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-Seg_P2.png&amp;diff=2427</id>
		<title>File:Unfolding-Seg P2.png</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-Seg_P2.png&amp;diff=2427"/>
		<updated>2014-01-28T01:43:12Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-Hipp.png&amp;diff=2426</id>
		<title>File:Unfolding-Hipp.png</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-Hipp.png&amp;diff=2426"/>
		<updated>2014-01-28T01:40:21Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Unfolding&amp;diff=2425</id>
		<title>Unfolding</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Unfolding&amp;diff=2425"/>
		<updated>2014-01-28T01:38:22Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several steps to successfully unfolding the high resolution scans of the hippocampus. The details for this section fall into the broad categories of segmentation, interpolation, demarcations, and calculating thickness. A knowledge of command line is necessary, as well as obtaining the tools for each step.&lt;br /&gt;
&lt;br /&gt;
==Tools Required==&lt;br /&gt;
*A copy of Windows&lt;br /&gt;
*A virtual machine emulator &lt;br /&gt;
*A command line interface to connect to [[Hoffman2|hoffman]]&lt;br /&gt;
*MrGray (Windows only)&lt;br /&gt;
*Matlab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Segmentation==&lt;br /&gt;
===Overview===&lt;br /&gt;
The goal of [[segmentation]] is to create a strip of gray matter in the hippocampus by locating the boundaries of the hippocampus in the brain. Using FMRI technology, the brain is sliced anteriorly to posteriorly to obtain slices of all parts of the hippocampus, creating a 2D version of the 3D hippocampus that can be mapped and analyzed. After opening [[VirtualBox]], we run a computer program, [[MrGray Segmentation software for Windows]], where we can view and find all the slices of the brain that show a portion of the hippocampus. On these slices,the hippocampal gray matter is surrounded by white matter and cerebral spinal fluid (CSF). We must mark the surrounding white matter and CSF respectively to obtain our strip of gray matter in between. The CSF material is the strip of atrophy on the interior of the gray matter, which begins at the hippocampal fissure, follows down to the collateral sulcus, and finishes after the second sulcus. The white matter is the material on the exterior portion of the gray matter. It is important to note that the shape of the hippocampal head changes from anterior to posterior in the brain. On the anterior slices, the hippocampal head has a long, oval shape. In the posterior slices, the hippocampal head has a round, almond shape. On the anterior slices, the CSF matter comes up to meet the white matter at the hippocampus head and also continues through the second sulcus through the gray matter to close off our strip. In the posterior slices, the CSF still continues through the second sulcus to the gray matter to close off the strip, but the white matter comes down to the CSF at the hippocampal fissure on the hippocampal head.&lt;br /&gt;
&lt;br /&gt;
===Getting Started: The Initial Segmentation Checklist===&lt;br /&gt;
#Export all of your vAnatomyCrop.dat files to a PC (ftp using binary).&lt;br /&gt;
#Run the program mrGray&lt;br /&gt;
#Create a new project and name it after your subject. Use the following nomenclature:&lt;br /&gt;
::AD_#####&lt;br /&gt;
:::ex. AD_12345&lt;br /&gt;
&lt;br /&gt;
For a subject with the Small ID 12345, who was scanned on May 25th, 2012, the following would be the subject entry in /u/home/data/sbook/data/AD/subjects:&lt;br /&gt;
::subj ID: AD_12345&lt;br /&gt;
::date: 20120525 (yyyymmdd)&lt;br /&gt;
::And it would be in the following path:&lt;br /&gt;
:::/u/home/sbook/data/AD/subjects/AD_12345/20120525/... etc etc.&lt;br /&gt;
&lt;br /&gt;
Subjects file names should look like:&lt;br /&gt;
::subject ID: AD_12345&lt;br /&gt;
::subject scan date: 20120525&lt;br /&gt;
::segmentation: AD_12345_seg&lt;br /&gt;
::interpolation: AD_12345_interpright or AD_12345_interpleft&lt;br /&gt;
&lt;br /&gt;
Once you have completed the segmentation session make sure to update our filemaker tab in objective fitness spreadsheet&lt;br /&gt;
::Select name for new project in AD/subjects/AD_XXXXX/SCANDATE/analysis/structural/unfold/segmentation&lt;br /&gt;
:::Select vAnatomyCrop.dat&lt;br /&gt;
:::Figure out which slices to segment based on anatomical guidelines.&lt;br /&gt;
::::*Anteriorly, choosing the last slice in which hippocampal head is visible is a consistent start point we&#039;ve used&lt;br /&gt;
&lt;br /&gt;
::Below are anatomical diagrams of the hippocampus and what to look for:&lt;br /&gt;
[[File:unfolding-Anat.png]]&lt;br /&gt;
:::Figure 1. Anatomical diagram, with an inferior view of the whole brain at the left, an inferior view of the temporal lobe 	at the center, and coronal sections from the two indicated slices at the right. A: Anterior slice through entorhinal 	cortex. B: Posterior slice 	through parahippocampal cortex. ERC, entorhinal cortex; PRC, perirhinal cortex; PHC, 	parahippocampal cortex; FG, fusiform gyrus; Sub, subiculum; CA 1,cornu ammonis 1; CA 2,3, CA fields 2 and 3; 	DG, dentate gyrus; CoS, collateral sulcus.&lt;br /&gt;
[[File:unfolding-hipp.png]]&lt;br /&gt;
:::Figure 2. Coronal view of right side of the hippocampus. In the coronal plane the hippocampus and parahippocampal gyrus form an S-shaped configuration. The hippocampus itself consists of two interlocking C-shaped structures: the cornu ammonis and the dentate gyrus. Histologically, the hippocampus is further divided into 4 sections CA1 to CA4.&lt;br /&gt;
&lt;br /&gt;
Once file is created, you may begin segmentation process:&lt;br /&gt;
#Segment the white matter 1st (colored in beige) (red in our lab), using a pixel size of 3 pixels minimum&lt;br /&gt;
#Select white matter with the checkbox at the right&lt;br /&gt;
#Another checkbox indicates the highlight size (use 3)&lt;br /&gt;
#The left mouse button highlights a pixel, and the right mouse button deselects pixels&lt;br /&gt;
#Then, segment the CSF (colored in yellow) (blue in our lab), imposing a thin boundary on the segmentation. (You want it thin because you will expand it after the interpolation step).&lt;br /&gt;
#Save the segmentation (File -&amp;gt; Classification -&amp;gt; Save as with the above nomenclature).&lt;br /&gt;
::*&#039;&#039;&#039;Save early, save often.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here is an example of an initial segmentation: Starting anteriorly and ending posteriorly:&lt;br /&gt;
&lt;br /&gt;
:[[File:unfolding-seg_part_1.png]]&lt;br /&gt;
:[[File:unfolding-seg_part_2.png]]&lt;br /&gt;
&lt;br /&gt;
==Interpolation==&lt;br /&gt;
Explain [[interpolation]] here.&lt;br /&gt;
&lt;br /&gt;
To load an existing project, when you&#039;re in MrGray, you&#039;ll click on Load project and you can select any .mrp file.&lt;br /&gt;
These will be named AD_1XXXX_interpleft or _interpright. It will then appear and you should be able to see the CSF&lt;br /&gt;
and white matter masks if they are selected in the toolbar.&lt;br /&gt;
&lt;br /&gt;
Create a new interpolation file; these are the steps you will take:&lt;br /&gt;
&lt;br /&gt;
# Open the menu and select File &amp;gt; New Project&lt;br /&gt;
# In the first window go to the subject&#039;s unfold directory (ie. ...AD/subjects/AD_1XXXX/2012####/analysis/structural/unfold/interpolation)&lt;br /&gt;
# Name the project AD_1XXXX_interpleft or AD_1XXXX_interpright and hit enter&lt;br /&gt;
# In the second window select the Volume anatomy file for the interpolation file (vAnatInterp.dat file) and hit enter&lt;br /&gt;
# When the image displays, you will now go to the File menu again and then to &amp;quot;Classification&amp;quot;. Then click &amp;quot;load classification file&amp;quot;.&lt;br /&gt;
# The window that pops up will ask you to select a class file. This will be AD_1XXXX_interpright or interpleft that already exists in the directory. Select the side for which you created and hit enter. &lt;br /&gt;
# Check to make sure the masks align correctly.&lt;br /&gt;
&lt;br /&gt;
==Demarcations==&lt;br /&gt;
&lt;br /&gt;
===Getting Started===&lt;br /&gt;
After segmentation and interpolation, [[demarcations]] create the boundaries for the different region of the hippocampus. These boundaries can be conveniently drawn using FSLview. Open your hire structural image. Be sure this is the same brain that you used for the unfolding process. It is important to note that these images are in radiological convention, so if you&#039;re drawing on the right side of the screen, this is actually the left hemisphere. Look at your notes to determine which slices were segmented and used for unfolding; only draw boundaries on the slices that have been segmented. To create a new boundary, go to the file menu and select &amp;quot;Create Mask.&amp;quot; In the lower left corner, you&#039;ll see a blue &amp;quot;i&amp;quot;; click on this to re-name your boundary as needed, and to select the color you&#039;d like to draw with. To zoom in on the MTL, first go to View/Single, and then expland the coronal image. Use the zoom tool to magnify the MTL. Click on the pencil tool, and make adjustments as desired. A brightness with typically a max of 1 and a small pencil size work best. If using a mouse, the left button draws the boundary and the ctrl+ left button erases. When saving, be sure to save to your Demarcations directory, and to use the proper naming convention. It is best to complete one boundary at a time across all slices, and then move on to the next boundary.&lt;br /&gt;
&lt;br /&gt;
===General Tips===&lt;br /&gt;
Before starting to draw, you want to first identify the slice where the hippocampal head begins. It is important to note that where the hippocampal head &amp;quot;begins&amp;quot; means where it begins when going in the Posterior to Anterior direction. This slice, which will be called the &#039;&#039;&#039;hippocampal head slice&#039;&#039;&#039; throughout the rest of these instructions is where the anterior structures will start. Also, drawing shorter/smaller boundaries will reduce variability once projected onto the flat maps, giving you a straighter line. In general, boundary doesn&#039;t need to cross the entire gray matter area; keep the boundary towards the medial or superior side of things, as appropriate.&lt;br /&gt;
&lt;br /&gt;
===Naming Convention===&lt;br /&gt;
Boundaries drawn on all the slices:&lt;br /&gt;
*&#039;&#039;&#039;Fus&#039;&#039;&#039;(Fusiform)&lt;br /&gt;
* &#039;&#039;&#039;CollSul&#039;&#039;&#039;(Collateral Sulcus) &lt;br /&gt;
*&#039;&#039;&#039;SubCA1&#039;&#039;&#039;(Subiculum-CA1)&lt;br /&gt;
* &#039;&#039;&#039;CA1CA23DG&#039;&#039;&#039;(CA1-CA23DG) &lt;br /&gt;
Boundaries drawn on anterior slices only: &lt;br /&gt;
*&#039;&#039;&#039;ERCSub&#039;&#039;&#039; (Entorhinal Coral- Subiculum)&lt;br /&gt;
*&#039;&#039;&#039;PRCERC&#039;&#039;&#039; (Perirhinal Cortex- Entorhinal Cortex) &lt;br /&gt;
*&#039;&#039;&#039;AntCADG&#039;&#039;&#039; (Anterior portion of CA fields and Dentate Gyrus)&lt;br /&gt;
* &#039;&#039;&#039;ERCPRCPHC&#039;&#039;&#039; (Boundary between anterior structures Entorhinal/Perirhinal Cortices and the posterior structure Parahippocampal Cortex)&lt;br /&gt;
Boundaries drawn on the posterior slices only: &lt;br /&gt;
*&#039;&#039;&#039;PHCSub&#039;&#039;&#039; (Parahippocampal Cortex- Subiculum)&lt;br /&gt;
&lt;br /&gt;
===Individual Boundaries===&lt;br /&gt;
On each of the slices that were segmented, we must determine which boundaries to mark. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fusiform (Fus)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-Fus.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the &amp;quot;elbow&amp;quot; of the lateral side of the collateral sulcus (on the side closer to the second sulcus)&lt;br /&gt;
::*Outline of collateral sulcul shown in red; boundary between sulcus and fusiform gyrus shown in yellow&lt;br /&gt;
::*Fusiform is lateral to the boundary&lt;br /&gt;
&#039;&#039;&#039;Collateral Sulcus (CollSul)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-CollSul.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the bend in the superior tip of the collateral sulcus&lt;br /&gt;
::*Outline of collateral sulcus shown in yellow; boundary shown in red&lt;br /&gt;
&#039;&#039;&#039;Separating PHC from Subiculum (PHCSub)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-PHCSub.jpg]]&lt;br /&gt;
::*Posterior slices only &lt;br /&gt;
::*Begin drawing on the first slice posterior to the hippocampal head slice, and continue to draw on the remainder of the posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon approximately 50% of the way up the bend&lt;br /&gt;
::*Bend shown in red, boundary between subiculum and PHC shown in green&lt;br /&gt;
::*Subiculum is superior to boundary&lt;br /&gt;
&#039;&#039;&#039;Separating Subiculum from CA1 (SubCA1)&#039;&#039;&#039;&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*&#039;&#039;Anterior&#039;&#039;: boundary more lateral; draw boundary underneath &amp;quot;bump&amp;quot; where the curve of the hippocampus comes in, bisecting it&lt;br /&gt;
:::* Bump shown in red, boundary between Sub and CA1 shown in blue&lt;br /&gt;
:::* Sub is medial to the boundary, CA1 is lateral&lt;br /&gt;
::: [[File:unfolding-SubCA1_anterior.jpg]]&lt;br /&gt;
::*&#039;&#039;Posterior&#039;&#039;: boundary more medial; draw boundary where the hippocampus pinches off into a tear-drop shape, or folds into itself&lt;br /&gt;
:::*Teardrop shown in red, boundary between Sub and CA1 shown in blue &lt;br /&gt;
:::*Sub is medial to the boundary, CA1 is lateral&lt;br /&gt;
:::[[File:unfolding-SubCA1_posterior.jpg]]&lt;br /&gt;
&#039;&#039;&#039;Separating CA1 from CA23DG (CA1CA23DG)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-CA1CA23DG.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the bend (on the path where the hippocampal fissure would extend to in the hippocampal head)&lt;br /&gt;
::*Bend shown in red; boundary between CA1CA23DG shown in green&lt;br /&gt;
&#039;&#039;&#039;Separating ERC from Subiculum (ERCSub)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-ERCSub.jpg]]&lt;br /&gt;
::*Anterior slices only&lt;br /&gt;
::*Begin drawing on hippocampal head slice, and continue to draw on the remainder of the anterior slices&lt;br /&gt;
::*If you were to continue the lateral boundary of the hippocampus inwards medially, it would divide the hippocampus and the ERC&lt;br /&gt;
::*Draw boundary along this divide, perpendicular to gray matter ribbon&lt;br /&gt;
::*Lateral boundary shown in red, boundary between ERC and Sub shown in yellow&lt;br /&gt;
&#039;&#039;&#039;Separating PRC from ERC (PRCERC)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-PRCERC.jpg]]&lt;br /&gt;
::*Anterior slices only &lt;br /&gt;
::*Begin drawing on hippocampal head slice, and continue to draw on the remainder of the anterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the &amp;quot;elbow&amp;quot; of the medial side of the collateral sulcus (the side of the collateral sulcus closer to the hippocampal head)&lt;br /&gt;
::*Collateral sulcus outlined in yellow, boundary between PRC and ERC in green&lt;br /&gt;
::*ERC medial to boundary, PRC lateral&lt;br /&gt;
&#039;&#039;&#039;Anterior CA fields and Dentate Gyrus (AntCADG)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-AntCADG.jpg]]&lt;br /&gt;
::*Only one slice: draw on the first slice anterior to the hippocampal head slice (this should be the slice where you first see undulations going in the Posterior to Anterior direction)&lt;br /&gt;
::*Draw boundary straight through middle of CADG area, and extend all the way laterally to the CA1CA23DG boundary (go through the middle of the hippocampal head between the fissure and the top of the head)&lt;br /&gt;
::*Undulations highlighted in red; CA1CA23DG boundary in green; AntCADG boundary in white&lt;br /&gt;
&#039;&#039;&#039;Creating A/P boundary (ERCPRCPHC)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-ERCPRCPHC.jpg]]&lt;br /&gt;
::*Only one slice: draw on the hippocampal head slice&lt;br /&gt;
::*Starting at the ERCSub boundary, draw a line in the middle of the gray matter ribbon up and over the collateral sulcus, all the way out to the Fus boundary&lt;br /&gt;
::* ERCSub and Fus boundaries shown in yellow&lt;br /&gt;
::* ERCPRCPHC boundary shown in white&lt;br /&gt;
&lt;br /&gt;
===Directory Outline: How to Open FSLView Through Terminal===&lt;br /&gt;
:Below is an outline for the directory path. In order to open files for segmentation, interpolation, and demarcation in the unfolding process, you must be able to navigate the Terminal. &lt;br /&gt;
&lt;br /&gt;
::[[File:unfolding-directory_route.png]]&lt;br /&gt;
&lt;br /&gt;
The best way to open FSLview in order to do demarcations is through the FSLview path in &#039;&#039;Terminal&#039;&#039;. Below are the following steps to open a file for demarcations.&lt;br /&gt;
 &lt;br /&gt;
#ssh -X johnsmith@hoffman2.idre.ucla.edu&lt;br /&gt;
: This is your login. You must have a &#039;&#039;&#039;hoffman&#039;&#039;&#039; account to access &#039;&#039;Terminal&#039;&#039;&lt;br /&gt;
#/u/home/FMRI/sbook/data/AD/subjects &lt;br /&gt;
: This is your homebase directory. Once logged into hoffman, you will be able to access the path of directories seen above. &lt;br /&gt;
::For each subject, there is a &#039;&#039;&#039;nii&#039;&#039;&#039; directory and a &#039;&#039;&#039;analysis&#039;&#039;&#039; directory, which contain information used for demarcations.&lt;br /&gt;
:::The &#039;&#039;&#039;nii&#039;&#039;&#039; directory contains the image files for the brain scans.&lt;br /&gt;
:::The &#039;&#039;&#039;analysis&#039;&#039;&#039; directory contains the subdirectories &#039;&#039;&#039;preprocessing&#039;&#039;&#039; and &#039;&#039;&#039;structural&#039;&#039;&#039;.&lt;br /&gt;
::::The preprocessing directory may also contain the hhr structural image file, as seen in the nii directory .&lt;br /&gt;
::::The structural directory contains the &#039;&#039;&#039;unfold&#039;&#039;&#039; directory which contains folders for &#039;&#039;segmentation&#039;&#039;, &#039;&#039;interpolation&#039;&#039;, and &#039;&#039;demarcations&#039;&#039;. &lt;br /&gt;
#cd AD_10210/2008XXXX/analysis/structural/unfold&lt;br /&gt;
:In this unfold directory, you can check if the hhr image file is already in preprocessing. If the hhr image file is already in the preprocessing directory, it can be opened directly in FSL view. &lt;br /&gt;
#fslview hhr_struct_6.nii.gz&lt;br /&gt;
: If the hhr image is not in the preprocessing directory, you can copy the image from the &#039;&#039;&#039;nii&#039;&#039;&#039; directory into the &#039;&#039;&#039;preprocessing&#039;&#039;&#039; and then open it in FSL view.&lt;br /&gt;
#cd ../../../subjects/AD_1XXXXX&lt;br /&gt;
#cd nii &lt;br /&gt;
#cp nii/hhr_struct_6.nii.gz   ../analysis/preprocessing/hhr_struct_6.nii.gz&lt;br /&gt;
##fslview hhr_struct_6.nii.gz (check if this step is fslview analysis/preprocessing/hhr_struct_6.nii.gz)&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.virtualbox.org/ Virtual Box: Virtual machine software]&lt;br /&gt;
*[http://white.stanford.edu/~brian/mri/segmentUnfold.htm MrGray Segmentation software for Windows]&lt;br /&gt;
*[http://www.cygwin.com/ Cygwin Command-line interface for Windows]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/ Hoffman2 Home Page]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-Anat.png&amp;diff=2424</id>
		<title>File:Unfolding-Anat.png</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Unfolding-Anat.png&amp;diff=2424"/>
		<updated>2014-01-28T01:37:43Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=Unfolding&amp;diff=2423</id>
		<title>Unfolding</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=Unfolding&amp;diff=2423"/>
		<updated>2014-01-28T01:28:56Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are several steps to successfully unfolding the high resolution scans of the hippocampus. The details for this section fall into the broad categories of segmentation, interpolation, demarcations, and calculating thickness. A knowledge of command line is necessary, as well as obtaining the tools for each step.&lt;br /&gt;
&lt;br /&gt;
==Tools Required==&lt;br /&gt;
*A copy of Windows&lt;br /&gt;
*A virtual machine emulator &lt;br /&gt;
*A command line interface to connect to [[Hoffman2|hoffman]]&lt;br /&gt;
*MrGray (Windows only)&lt;br /&gt;
*Matlab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Segmentation==&lt;br /&gt;
===Overview===&lt;br /&gt;
The goal of [[segmentation]] is to create a strip of gray matter in the hippocampus by locating the boundaries of the hippocampus in the brain. Using FMRI technology, the brain is sliced anteriorly to posteriorly to obtain slices of all parts of the hippocampus, creating a 2D version of the 3D hippocampus that can be mapped and analyzed. After opening [[VirtualBox]], we run a computer program, [[MrGray Segmentation software for Windows]], where we can view and find all the slices of the brain that show a portion of the hippocampus. On these slices,the hippocampal gray matter is surrounded by white matter and cerebral spinal fluid (CSF). We must mark the surrounding white matter and CSF respectively to obtain our strip of gray matter in between. The CSF material is the strip of atrophy on the interior of the gray matter, which begins at the hippocampal fissure, follows down to the collateral sulcus, and finishes after the second sulcus. The white matter is the material on the exterior portion of the gray matter. It is important to note that the shape of the hippocampal head changes from anterior to posterior in the brain. On the anterior slices, the hippocampal head has a long, oval shape. In the posterior slices, the hippocampal head has a round, almond shape. On the anterior slices, the CSF matter comes up to meet the white matter at the hippocampus head and also continues through the second sulcus through the gray matter to close off our strip. In the posterior slices, the CSF still continues through the second sulcus to the gray matter to close off the strip, but the white matter comes down to the CSF at the hippocampal fissure on the hippocampal head.&lt;br /&gt;
&lt;br /&gt;
===Getting Started: The Initial Segmentation Checklist===&lt;br /&gt;
#Export all of your vAnatomyCrop.dat files to a PC (ftp using binary).&lt;br /&gt;
#Run the program mrGray&lt;br /&gt;
#Create a new project and name it after your subject. Use the following nomenclature:&lt;br /&gt;
::AD_#####&lt;br /&gt;
:::ex. AD_12345&lt;br /&gt;
&lt;br /&gt;
For a subject with the Small ID 12345, who was scanned on May 25th, 2012, the following would be the subject entry in /u/home/data/sbook/data/AD/subjects:&lt;br /&gt;
::subj ID: AD_12345&lt;br /&gt;
::date: 20120525 (yyyymmdd)&lt;br /&gt;
::And it would be in the following path:&lt;br /&gt;
:::/u/home/sbook/data/AD/subjects/AD_12345/20120525/... etc etc.&lt;br /&gt;
&lt;br /&gt;
Subjects file names should look like:&lt;br /&gt;
::subject ID: AD_12345&lt;br /&gt;
::subject scan date: 20120525&lt;br /&gt;
::segmentation: AD_12345_seg&lt;br /&gt;
::interpolation: AD_12345_interpright or AD_12345_interpleft&lt;br /&gt;
&lt;br /&gt;
Once you have completed the segmentation session make sure to update our filemaker tab in objective fitness spreadsheet&lt;br /&gt;
::Select name for new project in AD/subjects/AD_XXXXX/SCANDATE/analysis/structural/unfold/segmentation&lt;br /&gt;
:::Select vAnatomyCrop.dat&lt;br /&gt;
:::Figure out which slices to segment based on anatomical guidelines.&lt;br /&gt;
::::*Anteriorly, choosing the last slice in which hippocampal head is visible is a consistent start point we&#039;ve used&lt;br /&gt;
&lt;br /&gt;
::Below are anatomical diagrams of the hippocampus and what to look for:&lt;br /&gt;
[[File:unfolding-anat.png]]&lt;br /&gt;
:::Figure 1. Anatomical diagram, with an inferior view of the whole brain at the left, an inferior view of the temporal lobe 	at the center, and coronal sections from the two indicated slices at the right. A: Anterior slice through entorhinal 	cortex. B: Posterior slice 	through parahippocampal cortex. ERC, entorhinal cortex; PRC, perirhinal cortex; PHC, 	parahippocampal cortex; FG, fusiform gyrus; Sub, subiculum; CA 1,cornu ammonis 1; CA 2,3, CA fields 2 and 3; 	DG, dentate gyrus; CoS, collateral sulcus.&lt;br /&gt;
[[File:unfolding-hipp.png]]&lt;br /&gt;
:::Figure 2. Coronal view of right side of the hippocampus. In the coronal plane the hippocampus and parahippocampal gyrus form an S-shaped configuration. The hippocampus itself consists of two interlocking C-shaped structures: the cornu ammonis and the dentate gyrus. Histologically, the hippocampus is further divided into 4 sections CA1 to CA4.&lt;br /&gt;
&lt;br /&gt;
Once file is created, you may begin segmentation process:&lt;br /&gt;
#Segment the white matter 1st (colored in beige) (red in our lab), using a pixel size of 3 pixels minimum&lt;br /&gt;
#Select white matter with the checkbox at the right&lt;br /&gt;
#Another checkbox indicates the highlight size (use 3)&lt;br /&gt;
#The left mouse button highlights a pixel, and the right mouse button deselects pixels&lt;br /&gt;
#Then, segment the CSF (colored in yellow) (blue in our lab), imposing a thin boundary on the segmentation. (You want it thin because you will expand it after the interpolation step).&lt;br /&gt;
#Save the segmentation (File -&amp;gt; Classification -&amp;gt; Save as with the above nomenclature).&lt;br /&gt;
::*&#039;&#039;&#039;Save early, save often.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here is an example of an initial segmentation: Starting anteriorly and ending posteriorly:&lt;br /&gt;
&lt;br /&gt;
:[[File:unfolding-seg_part_1.png]]&lt;br /&gt;
:[[File:unfolding-seg_part_2.png]]&lt;br /&gt;
&lt;br /&gt;
==Interpolation==&lt;br /&gt;
Explain [[interpolation]] here.&lt;br /&gt;
&lt;br /&gt;
To load an existing project, when you&#039;re in MrGray, you&#039;ll click on Load project and you can select any .mrp file.&lt;br /&gt;
These will be named AD_1XXXX_interpleft or _interpright. It will then appear and you should be able to see the CSF&lt;br /&gt;
and white matter masks if they are selected in the toolbar.&lt;br /&gt;
&lt;br /&gt;
Create a new interpolation file; these are the steps you will take:&lt;br /&gt;
&lt;br /&gt;
# Open the menu and select File &amp;gt; New Project&lt;br /&gt;
# In the first window go to the subject&#039;s unfold directory (ie. ...AD/subjects/AD_1XXXX/2012####/analysis/structural/unfold/interpolation)&lt;br /&gt;
# Name the project AD_1XXXX_interpleft or AD_1XXXX_interpright and hit enter&lt;br /&gt;
# In the second window select the Volume anatomy file for the interpolation file (vAnatInterp.dat file) and hit enter&lt;br /&gt;
# When the image displays, you will now go to the File menu again and then to &amp;quot;Classification&amp;quot;. Then click &amp;quot;load classification file&amp;quot;.&lt;br /&gt;
# The window that pops up will ask you to select a class file. This will be AD_1XXXX_interpright or interpleft that already exists in the directory. Select the side for which you created and hit enter. &lt;br /&gt;
# Check to make sure the masks align correctly.&lt;br /&gt;
&lt;br /&gt;
==Demarcations==&lt;br /&gt;
&lt;br /&gt;
===Getting Started===&lt;br /&gt;
After segmentation and interpolation, [[demarcations]] create the boundaries for the different region of the hippocampus. These boundaries can be conveniently drawn using FSLview. Open your hire structural image. Be sure this is the same brain that you used for the unfolding process. It is important to note that these images are in radiological convention, so if you&#039;re drawing on the right side of the screen, this is actually the left hemisphere. Look at your notes to determine which slices were segmented and used for unfolding; only draw boundaries on the slices that have been segmented. To create a new boundary, go to the file menu and select &amp;quot;Create Mask.&amp;quot; In the lower left corner, you&#039;ll see a blue &amp;quot;i&amp;quot;; click on this to re-name your boundary as needed, and to select the color you&#039;d like to draw with. To zoom in on the MTL, first go to View/Single, and then expland the coronal image. Use the zoom tool to magnify the MTL. Click on the pencil tool, and make adjustments as desired. A brightness with typically a max of 1 and a small pencil size work best. If using a mouse, the left button draws the boundary and the ctrl+ left button erases. When saving, be sure to save to your Demarcations directory, and to use the proper naming convention. It is best to complete one boundary at a time across all slices, and then move on to the next boundary.&lt;br /&gt;
&lt;br /&gt;
===General Tips===&lt;br /&gt;
Before starting to draw, you want to first identify the slice where the hippocampal head begins. It is important to note that where the hippocampal head &amp;quot;begins&amp;quot; means where it begins when going in the Posterior to Anterior direction. This slice, which will be called the &#039;&#039;&#039;hippocampal head slice&#039;&#039;&#039; throughout the rest of these instructions is where the anterior structures will start. Also, drawing shorter/smaller boundaries will reduce variability once projected onto the flat maps, giving you a straighter line. In general, boundary doesn&#039;t need to cross the entire gray matter area; keep the boundary towards the medial or superior side of things, as appropriate.&lt;br /&gt;
&lt;br /&gt;
===Naming Convention===&lt;br /&gt;
Boundaries drawn on all the slices:&lt;br /&gt;
*&#039;&#039;&#039;Fus&#039;&#039;&#039;(Fusiform)&lt;br /&gt;
* &#039;&#039;&#039;CollSul&#039;&#039;&#039;(Collateral Sulcus) &lt;br /&gt;
*&#039;&#039;&#039;SubCA1&#039;&#039;&#039;(Subiculum-CA1)&lt;br /&gt;
* &#039;&#039;&#039;CA1CA23DG&#039;&#039;&#039;(CA1-CA23DG) &lt;br /&gt;
Boundaries drawn on anterior slices only: &lt;br /&gt;
*&#039;&#039;&#039;ERCSub&#039;&#039;&#039; (Entorhinal Coral- Subiculum)&lt;br /&gt;
*&#039;&#039;&#039;PRCERC&#039;&#039;&#039; (Perirhinal Cortex- Entorhinal Cortex) &lt;br /&gt;
*&#039;&#039;&#039;AntCADG&#039;&#039;&#039; (Anterior portion of CA fields and Dentate Gyrus)&lt;br /&gt;
* &#039;&#039;&#039;ERCPRCPHC&#039;&#039;&#039; (Boundary between anterior structures Entorhinal/Perirhinal Cortices and the posterior structure Parahippocampal Cortex)&lt;br /&gt;
Boundaries drawn on the posterior slices only: &lt;br /&gt;
*&#039;&#039;&#039;PHCSub&#039;&#039;&#039; (Parahippocampal Cortex- Subiculum)&lt;br /&gt;
&lt;br /&gt;
===Individual Boundaries===&lt;br /&gt;
On each of the slices that were segmented, we must determine which boundaries to mark. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Fusiform (Fus)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-Fus.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the &amp;quot;elbow&amp;quot; of the lateral side of the collateral sulcus (on the side closer to the second sulcus)&lt;br /&gt;
::*Outline of collateral sulcul shown in red; boundary between sulcus and fusiform gyrus shown in yellow&lt;br /&gt;
::*Fusiform is lateral to the boundary&lt;br /&gt;
&#039;&#039;&#039;Collateral Sulcus (CollSul)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-CollSul.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the bend in the superior tip of the collateral sulcus&lt;br /&gt;
::*Outline of collateral sulcus shown in yellow; boundary shown in red&lt;br /&gt;
&#039;&#039;&#039;Separating PHC from Subiculum (PHCSub)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-PHCSub.jpg]]&lt;br /&gt;
::*Posterior slices only &lt;br /&gt;
::*Begin drawing on the first slice posterior to the hippocampal head slice, and continue to draw on the remainder of the posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon approximately 50% of the way up the bend&lt;br /&gt;
::*Bend shown in red, boundary between subiculum and PHC shown in green&lt;br /&gt;
::*Subiculum is superior to boundary&lt;br /&gt;
&#039;&#039;&#039;Separating Subiculum from CA1 (SubCA1)&#039;&#039;&#039;&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*&#039;&#039;Anterior&#039;&#039;: boundary more lateral; draw boundary underneath &amp;quot;bump&amp;quot; where the curve of the hippocampus comes in, bisecting it&lt;br /&gt;
:::* Bump shown in red, boundary between Sub and CA1 shown in blue&lt;br /&gt;
:::* Sub is medial to the boundary, CA1 is lateral&lt;br /&gt;
::: [[File:unfolding-SubCA1_anterior.jpg]]&lt;br /&gt;
::*&#039;&#039;Posterior&#039;&#039;: boundary more medial; draw boundary where the hippocampus pinches off into a tear-drop shape, or folds into itself&lt;br /&gt;
:::*Teardrop shown in red, boundary between Sub and CA1 shown in blue &lt;br /&gt;
:::*Sub is medial to the boundary, CA1 is lateral&lt;br /&gt;
:::[[File:unfolding-SubCA1_posterior.jpg]]&lt;br /&gt;
&#039;&#039;&#039;Separating CA1 from CA23DG (CA1CA23DG)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-CA1CA23DG.jpg]]&lt;br /&gt;
::*Both anterior and posterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the bend (on the path where the hippocampal fissure would extend to in the hippocampal head)&lt;br /&gt;
::*Bend shown in red; boundary between CA1CA23DG shown in green&lt;br /&gt;
&#039;&#039;&#039;Separating ERC from Subiculum (ERCSub)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-ERCSub.jpg]]&lt;br /&gt;
::*Anterior slices only&lt;br /&gt;
::*Begin drawing on hippocampal head slice, and continue to draw on the remainder of the anterior slices&lt;br /&gt;
::*If you were to continue the lateral boundary of the hippocampus inwards medially, it would divide the hippocampus and the ERC&lt;br /&gt;
::*Draw boundary along this divide, perpendicular to gray matter ribbon&lt;br /&gt;
::*Lateral boundary shown in red, boundary between ERC and Sub shown in yellow&lt;br /&gt;
&#039;&#039;&#039;Separating PRC from ERC (PRCERC)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-PRCERC.jpg]]&lt;br /&gt;
::*Anterior slices only &lt;br /&gt;
::*Begin drawing on hippocampal head slice, and continue to draw on the remainder of the anterior slices&lt;br /&gt;
::*Draw boundary perpendicular to the gray matter ribbon at the &amp;quot;elbow&amp;quot; of the medial side of the collateral sulcus (the side of the collateral sulcus closer to the hippocampal head)&lt;br /&gt;
::*Collateral sulcus outlined in yellow, boundary between PRC and ERC in green&lt;br /&gt;
::*ERC medial to boundary, PRC lateral&lt;br /&gt;
&#039;&#039;&#039;Anterior CA fields and Dentate Gyrus (AntCADG)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-AntCADG.jpg]]&lt;br /&gt;
::*Only one slice: draw on the first slice anterior to the hippocampal head slice (this should be the slice where you first see undulations going in the Posterior to Anterior direction)&lt;br /&gt;
::*Draw boundary straight through middle of CADG area, and extend all the way laterally to the CA1CA23DG boundary (go through the middle of the hippocampal head between the fissure and the top of the head)&lt;br /&gt;
::*Undulations highlighted in red; CA1CA23DG boundary in green; AntCADG boundary in white&lt;br /&gt;
&#039;&#039;&#039;Creating A/P boundary (ERCPRCPHC)&#039;&#039;&#039;&lt;br /&gt;
::[[File:unfolding-ERCPRCPHC.jpg]]&lt;br /&gt;
::*Only one slice: draw on the hippocampal head slice&lt;br /&gt;
::*Starting at the ERCSub boundary, draw a line in the middle of the gray matter ribbon up and over the collateral sulcus, all the way out to the Fus boundary&lt;br /&gt;
::* ERCSub and Fus boundaries shown in yellow&lt;br /&gt;
::* ERCPRCPHC boundary shown in white&lt;br /&gt;
&lt;br /&gt;
===Directory Outline: How to Open FSLView Through Terminal===&lt;br /&gt;
:Below is an outline for the directory path. In order to open files for segmentation, interpolation, and demarcation in the unfolding process, you must be able to navigate the Terminal. &lt;br /&gt;
&lt;br /&gt;
::[[File:unfolding-directory_route.png]]&lt;br /&gt;
&lt;br /&gt;
The best way to open FSLview in order to do demarcations is through the FSLview path in &#039;&#039;Terminal&#039;&#039;. Below are the following steps to open a file for demarcations.&lt;br /&gt;
 &lt;br /&gt;
#ssh -X johnsmith@hoffman2.idre.ucla.edu&lt;br /&gt;
: This is your login. You must have a &#039;&#039;&#039;hoffman&#039;&#039;&#039; account to access &#039;&#039;Terminal&#039;&#039;&lt;br /&gt;
#/u/home/FMRI/sbook/data/AD/subjects &lt;br /&gt;
: This is your homebase directory. Once logged into hoffman, you will be able to access the path of directories seen above. &lt;br /&gt;
::For each subject, there is a &#039;&#039;&#039;nii&#039;&#039;&#039; directory and a &#039;&#039;&#039;analysis&#039;&#039;&#039; directory, which contain information used for demarcations.&lt;br /&gt;
:::The &#039;&#039;&#039;nii&#039;&#039;&#039; directory contains the image files for the brain scans.&lt;br /&gt;
:::The &#039;&#039;&#039;analysis&#039;&#039;&#039; directory contains the subdirectories &#039;&#039;&#039;preprocessing&#039;&#039;&#039; and &#039;&#039;&#039;structural&#039;&#039;&#039;.&lt;br /&gt;
::::The preprocessing directory may also contain the hhr structural image file, as seen in the nii directory .&lt;br /&gt;
::::The structural directory contains the &#039;&#039;&#039;unfold&#039;&#039;&#039; directory which contains folders for &#039;&#039;segmentation&#039;&#039;, &#039;&#039;interpolation&#039;&#039;, and &#039;&#039;demarcations&#039;&#039;. &lt;br /&gt;
#cd AD_10210/2008XXXX/analysis/structural/unfold&lt;br /&gt;
:In this unfold directory, you can check if the hhr image file is already in preprocessing. If the hhr image file is already in the preprocessing directory, it can be opened directly in FSL view. &lt;br /&gt;
#fslview hhr_struct_6.nii.gz&lt;br /&gt;
: If the hhr image is not in the preprocessing directory, you can copy the image from the &#039;&#039;&#039;nii&#039;&#039;&#039; directory into the &#039;&#039;&#039;preprocessing&#039;&#039;&#039; and then open it in FSL view.&lt;br /&gt;
#cd ../../../subjects/AD_1XXXXX&lt;br /&gt;
#cd nii &lt;br /&gt;
#cp nii/hhr_struct_6.nii.gz   ../analysis/preprocessing/hhr_struct_6.nii.gz&lt;br /&gt;
##fslview hhr_struct_6.nii.gz (check if this step is fslview analysis/preprocessing/hhr_struct_6.nii.gz)&lt;br /&gt;
&lt;br /&gt;
==External Links==&lt;br /&gt;
*[https://www.virtualbox.org/ Virtual Box: Virtual machine software]&lt;br /&gt;
*[http://white.stanford.edu/~brian/mri/segmentUnfold.htm MrGray Segmentation software for Windows]&lt;br /&gt;
*[http://www.cygwin.com/ Cygwin Command-line interface for Windows]&lt;br /&gt;
*[http://www.ats.ucla.edu/clusters/hoffman2/ Hoffman2 Home Page]&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Circuits2013.pdf&amp;diff=2419</id>
		<title>File:Circuits2013.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Circuits2013.pdf&amp;diff=2419"/>
		<updated>2014-01-21T23:15:58Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:NeuronFunction%2BAnatomyNITP2013_sm.pdf&amp;diff=2417</id>
		<title>File:NeuronFunction+AnatomyNITP2013 sm.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:NeuronFunction%2BAnatomyNITP2013_sm.pdf&amp;diff=2417"/>
		<updated>2014-01-21T23:15:58Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Revised for 2013 course&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Skullstrip.jpg&amp;diff=2415</id>
		<title>File:Skullstrip.jpg</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Skullstrip.jpg&amp;diff=2415"/>
		<updated>2014-01-21T23:15:57Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:EEGNeurophys_130313.pdf&amp;diff=2413</id>
		<title>File:EEGNeurophys 130313.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:EEGNeurophys_130313.pdf&amp;diff=2413"/>
		<updated>2014-01-21T23:15:57Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Agatha Lerartowicz&#039;s Talk 2013/03/13&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:NITP2012_MMonti_01_ExperimentalDesign_Advanced_print.pdf&amp;diff=2411</id>
		<title>File:NITP2012 MMonti 01 ExperimentalDesign Advanced print.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:NITP2012_MMonti_01_ExperimentalDesign_Advanced_print.pdf&amp;diff=2411"/>
		<updated>2014-01-21T23:15:57Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Martin Monti&#039;s Talk 4/6/2013&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Rissman_MVPA_for_Principles_of_Neuroimaging_course_(March_2013).pdf&amp;diff=2409</id>
		<title>File:Rissman MVPA for Principles of Neuroimaging course (March 2013).pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Rissman_MVPA_for_Principles_of_Neuroimaging_course_(March_2013).pdf&amp;diff=2409"/>
		<updated>2014-01-21T23:15:57Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Jesse Rissman&#039;s 2013 LEcture Notes&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:MultiModalNITP2013_sm.pdf&amp;diff=2407</id>
		<title>File:MultiModalNITP2013 sm.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:MultiModalNITP2013_sm.pdf&amp;diff=2407"/>
		<updated>2014-01-21T23:15:57Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:WuTMSFeb2013.pdf&amp;diff=2405</id>
		<title>File:WuTMSFeb2013.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:WuTMSFeb2013.pdf&amp;diff=2405"/>
		<updated>2014-01-21T23:15:57Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TMS Lecture for NITP Feb 2013&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Bystritsky,_et_all,_LIFUP,_2011.pdf&amp;diff=2403</id>
		<title>File:Bystritsky, et all, LIFUP, 2011.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Bystritsky,_et_all,_LIFUP,_2011.pdf&amp;diff=2403"/>
		<updated>2014-01-21T23:15:57Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:NITP_PET_1-30-13.pdf&amp;diff=2401</id>
		<title>File:NITP PET 1-30-13.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:NITP_PET_1-30-13.pdf&amp;diff=2401"/>
		<updated>2014-01-21T23:15:57Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;E London Lecture Slides 2013/01/30&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:PS1_%E2%80%93_PNIB2013.pdf&amp;diff=2399</id>
		<title>File:PS1 – PNIB2013.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:PS1_%E2%80%93_PNIB2013.pdf&amp;diff=2399"/>
		<updated>2014-01-21T23:15:56Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:CohenClassSlides11_21_12.pdf&amp;diff=2397</id>
		<title>File:CohenClassSlides11 21 12.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:CohenClassSlides11_21_12.pdf&amp;diff=2397"/>
		<updated>2014-01-21T23:15:56Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:CohenClassSlides11_19_12.pdf&amp;diff=2395</id>
		<title>File:CohenClassSlides11 19 12.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:CohenClassSlides11_19_12.pdf&amp;diff=2395"/>
		<updated>2014-01-21T23:15:56Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:CohenClassIntroStats11_14_12.pdf&amp;diff=2393</id>
		<title>File:CohenClassIntroStats11 14 12.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:CohenClassIntroStats11_14_12.pdf&amp;diff=2393"/>
		<updated>2014-01-21T23:15:56Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:PNIA_Midterm_2012.pdf&amp;diff=2391</id>
		<title>File:PNIA Midterm 2012.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:PNIA_Midterm_2012.pdf&amp;diff=2391"/>
		<updated>2014-01-21T23:15:56Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:PNIA_PS2.pdf&amp;diff=2389</id>
		<title>File:PNIA PS2.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:PNIA_PS2.pdf&amp;diff=2389"/>
		<updated>2014-01-21T23:15:56Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Problem Set 2 2012, Optics, Basic Circuits and A/D&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:Cognitive_science_and_neuro_2012.pdf&amp;diff=2387</id>
		<title>File:Cognitive science and neuro 2012.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:Cognitive_science_and_neuro_2012.pdf&amp;diff=2387"/>
		<updated>2014-01-21T23:15:56Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Slides from Dr Susan Bookheimer&#039;s talk 2012/10/17&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:PNIA_2012_PS1_Soln.pdf&amp;diff=2385</id>
		<title>File:PNIA 2012 PS1 Soln.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:PNIA_2012_PS1_Soln.pdf&amp;diff=2385"/>
		<updated>2014-01-21T23:15:55Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Solution to Problem Set 1 for PNI-A 2012&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
	<entry>
		<id>https://www.ccn.ucla.edu/wiki/index.php?title=File:PNIA2012PS1.pdf&amp;diff=2383</id>
		<title>File:PNIA2012PS1.pdf</title>
		<link rel="alternate" type="text/html" href="https://www.ccn.ucla.edu/wiki/index.php?title=File:PNIA2012PS1.pdf&amp;diff=2383"/>
		<updated>2014-01-21T23:15:55Z</updated>

		<summary type="html">&lt;p&gt;Ccn admin: 1 revision&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Problem Set 1 for PNIA 2012&lt;/div&gt;</summary>
		<author><name>Ccn admin</name></author>
	</entry>
</feed>