We are doing another round of freesurfer work. I’m curious what the latest and greatest out there is.
Flavin, can you share a link to some of your recent Freesurfer stuff? Has anyone else recently made use of freesurfer on their XNAT’s?
Tim
Radiologics, Inc
--
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
To post to this group, send email to xnat_di...@googlegroups.com.
Visit this group at http://groups.google.com/group/xnat_discussion.
For more options, visit https://groups.google.com/d/optout.
Here’s a list of the additional changes I had to make to get Freesurfer working.
On the XNAT side:
templates/screens/PipelineScreen_Freesurfer_53.vm
modify cmdPrefix to remove the arc-grid-queue text
/java/org/nrg/pipeline/launchers/Freesurfer53Launcher.java
remove reference the to cnda-ops at nrg.wustl.edu
/java/org/nrg/pipeline/launchers/FreesurferRelauncher.java
remove reference the to cnda-ops at nrg.wustl.edu
/java/org/nrg/xnat/turbine/modules/screens/DefaultPipelineScreen.java
modify the code after String pValues = pipelineParam.getCsvvalues();. It throws a NullPointerExpception if you don’t select T2 and FLAIR scans. Not sure why. But, I just added a null check and ignored the parameter entirely if that value was null.
Added the following files from various CNDA public repositories. These could probably be moved to the freesurfer webapp repos.
/scripts/slideshow.js
templates/layouts/FreesurferQC.vm
templates/layouts/FreesurferQC_64.vm
templates/layouts/Fs_fsData_QC_64.vm
templates/layouts/PipelineScreen_FS5_64_upload_files.vm
templates/layouts/PipelineScreen_FS5_upload_files.vm
templates/macros/xnatMacros.vm
/java/org/nrg/xnat/turbine/modules/actions/DownloadFreesurferAction.java
/java/org/nrg/xnat/turbine/modules/screens/FreesurferQC.java
/java/org/nrg/xnat/turbine/modules/screens/FreesurferQC_64.java
On the pipeline side
Commented out setup scripts (freesurfer, etc) and removed FS_VERSION stuff. I only had 1 version of freesurfer and it was setup by default for the user account. I might have to do it differently in a production system.
I had to manually find and replace a few PIPELINE_HOME references in .sh files.
I had to find and replace references to cnda-ops at nrg.wustl.edu.
I had to do a chmod +x on many of the .*sh files and a .pl files.
To get everything running, I had to register both the Freesurfer pipeline and the Freesurfer_Snapshots pipeline. The Freesurfer pipeline had a custom start page of PipelineScreen_Freesurfer_53.vm. Freesurfer_Snapshots didn’t have one.
On the command prompt, getting the actual Freesurfer pipeline running was easy. Getting the Freesurfer_Snapshots pipeline was more of a challenge. It has a lot of dependencies (for generating images without a DISPLAY). I think these are the commands I had to run:
yum install -y tcsh libgomp bc perl-core
yum install turbojpeg
yum install VirtualGL
vglserver_config -config +s +f +t (hat tip to Matt House for recommending this)
yum install ImageMagick
yum install Xvfb
Once all that was in place, I was running Freesurfer J.
I’ve made some changes to how Freesurfer can be launched from the webapp. A more streamlined option. I’m going to clean those up a bit, then I’ll give them to Flavin to see if he wants to incorporate them.
Message: XML Validation Exception.
--
You received this message because you are subscribed to a topic in the Google Groups "xnat_discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xnat_discussion/SbIPPLLC6lg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to xnat_discussi...@googlegroups.com.
You received this message because you are subscribed to the Google Groups "xnat_discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xnat_discussi...@googlegroups.com.
<MyXnat_E01740_freesurfer_20150930025050.err><MyXnat_E01740_freesurfer_20150930025050.log>
/usr/local/freesurfer/QAtools/data_checker:/usr/local/freesurfer/QAtools:/usr/local/freesurfer/bin:/usr/local/freesurfer/fsfast/bin:/usr/local/freesurfer/tktools:/usr/local/freesurfer/mni/bin:/home/xnat/bin:/usr/local/freesurfer/bin:/usr/local/freesurfer/fsfast/bin:/usr/local/freesurfer/tktools:/usr/local/freesurfer/mni/bin:/usr/lib/jvm/java-7-openjdk-amd64/bin:/usr/lib/postgresql/9.1/bin:/xnat_builder/xnat-165/bin:/pipeline_installer/build/pipeline/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:$JAVA_HOME:$JRE_HOME/bin/convert: Command not found.This looks to me like convert cannot run, because it isn’t on the path.
When taking snapshots, the tkmedit and tksurfer windows that appear can't be blocked by other windows, and the screensaver can't be activated while these scripts are running. Otherwise, the script will take snapshots of the screensaver or the interfering windows. The monitor can be physically turned off while the scripts are running, however, to save power.
<ScreenShot.JPG>
Visit this group at https://groups.google.com/group/xnat_discussion.