The FreeSurfer license comes in the form of a text file typically named `license.txt`.
How do I include a FreeSurfer license when I run fMRIPrep in Flywheel?
There are 3 ways:
Upload license.txt as an attachment to your Project page.
After it's been uploaded it will appear in the attachment list as shown.
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`.
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.
You should then see your license file and be able to select it.
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.
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":
then scroll down to find "FREESURFER_LICENSE" (here the configuration option is called "gear-FREESURFER_LIOCENSE"), and paste in the text as shown:
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.
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":
Select "String" to add a key-value pair where the value is a string:
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:
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:
- Input file
- Configuration option
- Project context