Skip to content

Logo Logo

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.

Screen_Shot_2018-12-05_at_11.46.38_AM.png

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

Screen_Shot_2018-12-05_at_11.49.29_AM.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.

Screen_Shot_2018-12-05_at_11.51.16_AM.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.

Screen_Shot_2018-12-05_at_11.51.31_AM.png

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

Screen_Shot_2018-12-05_at_11.51.40_AM.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.

Screen_Shot_2018-12-05_at_11.51.58_AM.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_LIOCENSE"), 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