To exit enter exit twice (once to exit from being a super user and another time to exit from the remote login.

To exit enter exit twice (once to exit from being a super user and another time to exit from the remote login.

+

+

+

== Making a Pial Envelope==

+

It can also be useful to have a pial "envelope" that holds the whole brain. For instance, electrodes can be mapped to this surface with the guarantee that they will be visible in any surface model and not buried in cortex. The command to make a pial envelope is

+

recon-all -s $subj -localGI

+

+

This command requires that Matlab be in your path; you will receive an error if it is not.

Revision as of 11:01, 8 July 2010

Contents

Automation

All of the steps below are contained in the scripts file
/Volumes/data9/surface/scripts/@recon

To run this command type,

/Volumes/data9/surfaces/scripts/@recon ec subjname

Where ec is the two-letter experiment code and subjname is the subject's name in the format lastname_firstname.
The scripts assumes that all of the steps performed the script file @prep_dir have been performed (see Preparation for Creating Cortical Surface Models page)
e.g.

Often this will result in errors because FreeSurfer has permissions issues when copying and appending files. Processor usage can be checked using the program top in another window. If recon-all has been running one subprogram for an inordinate amount of time you can kill it using ctrl-c from the window where you are running recon-all. Reset the permissions so everyone can read and write files from the subject’s directory:

sudo chmod –R 777 $SUBJECTS_DIR/subjID

After resetting the permissions you should check where the program crashed by viewing recon-all-status.log in the subject’s scripts folder. Check the FreeSurfer wiki on how to restart the file stream from where the program crashed. For example, if the program during CA Normalize the program can be restarted using the following line:

recon-all –nogcareg –autorecon2 –autorecon3 –s subjID

Since the all the Macs in the lab are multiprocessor machines, the program can delegate each hemisphere to a single processor. To do this recon-all first needs to preprocess the anatomical data and then identify the white matter:

Alternatively you can use the script in the surfaces folder, which runs recon-all in the manner described above:

/surfaces/@recon-all_sep_hemi –subj subjID

Be forewarned that use of this script on the iMacs will hamper system performance when the two hemispheres are simultaneously processed.

Using FreeSurfer on Another Mac To Speed Up Surface Creation

Some Macs have multiple processors and faster CPUs, making them better for surface creation.
The fastest Mac in the lab is currently Mike Disano's MacPro.
To create a surface on this Mac, you must first log in:

ssh mbeauchamp@139.52.6.5

/data9 should already be accessible. Check this with

ls ~/mount/data9/surfaces

Only if this gives an error message instead of a list of files, then you must mount the drive:

From the window that is logged onto the PowerMac set the display IP address:

set DISPLAY = 129.106.236.192:0.0

To exit enter exit twice (once to exit from being a super user and another time to exit from the remote login.

Making a Pial Envelope

It can also be useful to have a pial "envelope" that holds the whole brain. For instance, electrodes can be mapped to this surface with the guarantee that they will be visible in any surface model and not buried in cortex. The command to make a pial envelope is

recon-all -s $subj -localGI

This command requires that Matlab be in your path; you will receive an error if it is not.