Have you looked at the modifications for the BIDS App version:
https://github.com/BIDS-Apps/freesurfer
I believe the latest image (using FS6) is only 6.37GB and you could bypass the run.py script with --entrypoint bash to run your typical recon-all commands
-Alex
---------------------------------------------------------------- Alexander Li Cohen, M.D., Ph.D. E-mail: Alexander.Cohen2@childrens.harvard.edu (Medical/Science Email) E-mail: alexcohen@gmail.com (Lifetime Email) ----------------------------------------------------------------
On Sun, Feb 5, 2017 at 12:00 PM, freesurfer-request@nmr.mgh.harvard.edu wrote:
Send Freesurfer mailing list submissions to freesurfer@nmr.mgh.harvard.edu
To subscribe or unsubscribe via the World Wide Web, visit https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer or, via email, send a message with subject or body 'help' to freesurfer-request@nmr.mgh.harvard.edu
You can reach the person managing the list at freesurfer-owner@nmr.mgh.harvard.edu
When replying, please edit your Subject line so it is more specific than "Re: Contents of Freesurfer digest..."
Today's Topics:
- Problem with using tksurfer to take snap shot with .tcl (Hao wen)
- Slim down FS6 (Marmaduke Woodman)
---------- Forwarded message ---------- From: Hao wen hao.freesurfer@hotmail.com To: "freesurfer@nmr.mgh.harvard.edu" freesurfer@nmr.mgh.harvard.edu Cc: Date: Sun, 5 Feb 2017 09:28:19 +0000 Subject: [Freesurfer] Problem with using tksurfer to take snap shot with .tcl
Hello: FS experts:
I am now integrating to use tksurfer to take snapshot from command line automatically, and my command is like this:
cmd = "tksurfer %s %s inflated -tcl %s" % (subject, hemi, os.path.join(os.path.dirname(sys.argv[0]), "snap_tksurfer.tcl"))so i use -tcl to define the behavior of tksurfer, but I go t a bug inside the tickle script,
##curv puts "shitaaaaa" puts stdout [pwd] puts stdout $env(SUBJECT_NAME) puts [trace vinfo lablpth] read_binary_curv puts "shittttttttt!!!, has bug here"
I debug it and found that it can not really run this command: read_binary_curv, before, it can take some snapshots and save it to be rgb format, and i will also give you the output from the terminal:
*Successfully parsed tksurfer.tcl* *shitaaaaa*
*/Users/junhao.wen/Hao/Dataset/test-data/recon-alled-result-1sub/analysis-series-default/subjects/analysis-series-default/subjects/sub-PREVDEMALS0010001BE/ses-M0/t1/freesurfer-cross-sectional* *sub-PREVDEMALS0010001BE_ses-M0*
*subject is sub-PREVDEMALS0010001BE_ses-M0* *hemi is lh* *surface is inflated* *surfer: current subjects dir: /Users/junhao.wen/Hao/Dataset/test-data/recon-alled-result-1sub/analysis-series-default/subjects/analysis-series-default/subjects/sub-PREVDEMALS0010001BE/ses-M0/t1/freesurfer-cross-sectional* *surfer: not in "scripts" dir ==> using cwd for session root* *surfer: session root data dir ($session) set to:* *surfer: /Users/junhao.wen/Hao/Dataset/test-data/recon-alled-result-1sub/analysis-series-default/subjects/analysis-series-default/subjects/sub-PREVDEMALS0010001BE/ses-M0/t1/freesurfer-cross-sectional* *checking for nofix files in 'inflated'* *Reading image info (/Users/junhao.wen/Hao/Dataset/test-data/recon-alled-result-1sub/analysis-series-default/subjects/analysis-series-default/subjects/sub-PREVDEMALS0010001BE/ses-M0/t1/freesurfer-cross-sectional/sub-PREVDEMALS0010001BE_ses-M0)* *Reading /Users/junhao.wen/Hao/Dataset/test-data/recon-alled-result-1sub/analysis-series-default/subjects/analysis-series-default/subjects/sub-PREVDEMALS0010001BE/ses-M0/t1/freesurfer-cross-sectional/sub-PREVDEMALS0010001BE_ses-M0/mri/orig.mgz* *surfer: Reading header info from /Users/junhao.wen/Hao/Dataset/test-data/recon-alled-result-1sub/analysis-series-default/subjects/analysis-series-default/subjects/sub-PREVDEMALS0010001BE/ses-M0/t1/freesurfer-cross-sectional/sub-PREVDEMALS0010001BE_ses-M0/mri/orig.mgz* *surfer: vertices=98465, faces=196926* *surfer: single buffered window* *surfer: tkoInitWindow(sub-PREVDEMALS0010001BE_ses-M0)* *setting percentile thresholds (-1.00, 0.00, 0.00)* *surfer: using interface /Applications/freesurfer/tktools/tksurfer.tcl* *tksurfer: run tcl script: /Users/junhao.wen/Hao/Project/clinica_realted/CAPS_qa_clinica/snap_tksurfer.tcl* *Reading /Applications/freesurfer/tktools/tkm_common.tcl* *Reading /Applications/freesurfer/tktools/tkm_wrappers.tcl* *Reading /Applications/freesurfer/lib/tcl/fsgdfPlot.tcl* *Reading /Applications/freesurfer/tktools/tkUtils.tcl* *Successfully parsed tksurfer.tcl* *reading white matter vertex locations...*
I will also attach you the tcl file, any suggestion will be appreciated:)
PS: I know that FS right now recommand us to use freeview, do you have the similar behavior like using tcl file to define the behavior of freeview to take the snapshots???
Good day Hao
---------- Forwarded message ---------- From: Marmaduke Woodman mmwoodman@gmail.com To: "freesurfer@nmr.mgh.harvard.edu" freesurfer@nmr.mgh.harvard.edu Cc: Date: Sun, 5 Feb 2017 14:23:25 +0100 Subject: [Freesurfer] Slim down FS6 Hi
I'm using just the standard structural recon-all pipeline, nothing else. FS6's directory totals just over 9 GiB. Is there a way to slim that down, or is it all required for the structural pipeline?
I'm using Docker containers, hence trying to slim down the image size.
Thanks, Marmaduke
Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer
The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.
On 5 Feb 2017, at 19:07, Alex Cohen alexcohen@gmail.com wrote:
Have you looked at the modifications for the BIDS App version:
https://github.com/BIDS-Apps/freesurfer https://github.com/BIDS-Apps/freesurfer
No, I admittedly didn't Google hard before asking, but this is a great example to work from. Thanks!
freesurfer@nmr.mgh.harvard.edu