Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Support Forums
 Unix Support
 recon_all FreeSurfer 5.1.0

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
arnaud Posted - Sep 06 2011 : 11:06:11 AM
Hi,
I submitted a job that calls a simple script that sets the freesurfer SUBJECTS_DIR variable to a subfolder of my EXPERIMENT folder and then calls recon_all. It runs well up to mri_label2label.

At that point recon_all fails to create a symlink in $SUBJECTS_DIR/. The symlink would normally point to $FREESURFER_HOME/subjects/fsaverage but instead I get this error message:

ln: creating symbolic link `./fsaverage': Operation not supported

Anyone knows a workaround? Thanks.
5   L A T E S T    R E P L I E S    (Newest First)
petty Posted - Sep 07 2011 : 09:07:59 AM
Also, there's a general freesurfer template script on the head node which anyone can run.

I've included copying these directories over if they don't exist:
/usr/local/packages/qsub_templates/RunFreeSurf.sh

to run it, just:
qsub -v EXPERIMENT=Something.01 /usr/local/packages/qsub_templates/RunFreeSurf.sh SUBJNUM Path/to/Anat/Series

(ie: qsub -v EXPERIMENT=Something.01 /usr/local/packages/qsub_templates/RunFreeSurf.sh 12345 Data/Anat/20110907_12345/series007 )

The results will be in Something.01/Analysis/freesurfer/12345
arnaud Posted - Sep 06 2011 : 1:44:26 PM
Thanks to both of you. The solution of explicitly copying the following folders in my $SUBJECTS_DIR worked.

In case other users run into this problem, just do the following thing in interactive mode:
cd $SUBJECTS_DIR
cp -rf $FREESURFER_HOME/subjects/fsaverage .
cp -rf $FREESURFER_HOME/subjects/lh.EC_average .
cp -rf $FREESURFER_HOME/subjects/rh.EC_average .
cp -rf $FREESURFER_HOME/subjects/V1_average . [ not sure if that one is necessary but in doubt...]

Then adapt your master script to resume recon-all from where it failed using the following arguments (<5min):
recon-all -s $subjectid -no-isrunning -autorecon3 -nosphere -nosurfreg -nojacobian_white -noavgcurv -nocortparc -nopial -surfvolume -noparcstats -nocortparc2 -noparcstats2 -nocortribbon -nosegstats -noaparc2aseg -nowmparc -balabels -label-exvivo-ec

Note: it's tempting to use -nosurfvolume but it is not available in FreeSurfer5.1 (oversight?). In any case, the surfvolume step is very quick.
petty Posted - Sep 06 2011 : 12:05:46 PM
quote:
Originally posted by syam.gadde

I just asked Doug Greve about this -- he suggests explicitly copying the $FREESURFER_HOME/subjects/fsaverage directory to your $SUBJECTS_DIR, and then it won't attempt to symbolically link it. He also says the other symbolic links in recon-all are generally only encountered in their testing. Hopefully this will work.



that would make the most sense ... if something went wrong, your progress wouldn't get deleted at the end of the job ( which is what happens to $TMP )
syam.gadde Posted - Sep 06 2011 : 11:57:09 AM
I just asked Doug Greve about this -- he suggests explicitly copying the $FREESURFER_HOME/subjects/fsaverage directory to your $SUBJECTS_DIR, and then it won't attempt to symbolically link it. He also says the other symbolic links in recon-all are generally only encountered in their testing. Hopefully this will work.
petty Posted - Sep 06 2011 : 11:36:17 AM
your workaround would be to write your freesurfer results to your temporary directory ( $TMP ), then copy them back to your normal experiment directory when you are finished.

All the mounts are cifs/smb mounts, which don't allow symbolic linking ... the temporary directories are nfs

BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.41 seconds. Snitz Forums 2000