Skip to content

Including a FreeSurfer License File to Run a FreeSurfer or fMRIPrep Gear

Introduction

In order to run the FreeSurfer gear or the fMRIPrep gear (which uses FreeSurfer in it's pipeline), you will need to obtain a license. Obtaining a license is free on the FreeSurfer website.

The FreeSurfer license comes in the form of a text file typically named license.txt.

Instruction Steps

How do I include a FreeSurfer license when I run fMRIPrep in Flywheel?

There are 3 ways:

  1. Input file
  2. Configuration option
  3. Project context

Input File

Upload license.txt as an attachment to your Project page.

ScreenShot2018-12-05at11.46.38AM.png

After it's been uploaded it will appear in the attachment list as shown.

ScreenShot2018-12-05at11.49.29AM.png

Now when you want to run the fMRIPrep gear, you will be able to select the license file. On the Run Gear modal, you will be asked to select a FreeSurfer license as an input. Click on Choose Input.

ScreenShot2018-12-05at11.51.16AM.png

This will bring you to the file selector. Since we uploaded the license file as a project attachment, we'll need to go up to that level in the hierarchy by clicking on the project name as shown in the screenshot.

ScreenShot2018-12-05at11.51.31AM.png

You should then see your license file and be able to select it.

ScreenShot2018-12-05at11.51.40AM.png

Once selected, the file name will show up as the selected input of the gear, and you should be able to start your fMRIPrep job.

ScreenShot2018-12-05at11.51.58AM.png

Configuration Option

In recent gears you can copy the text from the license.txt file and paste it into configuration as shown here for BIDS fMRIPrep. After choosing which gear to run, click on "Configuration":

Screen_Shot_2019-12-18_at_3.39.57_PM.png then scroll down to find "FREESURFER_LICENSE" (here the configuration option is called "gear-FREESURFER_LICENSE"), and paste in the text as shown:

Screen_Shot_2019-12-18_at_2.56.00_PM.png You can select and copy all of the text from the license.txt file at once and when you paste it, it will be space separated. Then set other configuration options, inputs, etc., and run the gear.

Project Context

If neither of the above options are used to provide the FreeSurfer license, the gear will look for it in the project "info" metadata. To include a FreeSurfer license this way, click on the project's "Information" tab and then on the + to add "Custom Information":

Screen_Shot_2019-12-18_at_3.16.56_PM.png Select "String" to add a key-value pair where the value is a string:

Screen_Shot_2019-12-18_at_3.17.49_PM.png then 1) type exactly, "FREESURFER_LICENSE" in all caps and with an underscore between the words in the "key" field and 2) copy the text from your license.txt file and paste it into the "value" field:

Screen_Shot_2019-12-18_at_3.36.05_PM.png

Like this:

Screen_Shot_2019-12-18_at_3.20.46_PM.png

Finally, press "Save".

Note that if license information is provided in more than one of the ways described above, the gear will choose the license in this order:

  1. Input file
  2. Configuration option
  3. Project context