Skip to content

WSL2 support for FSL #907

@HenkMutsaerts

Description

@HenkMutsaerts

Description

xASL_fsl_SetFSLdir finds the FSL directory and defines it, for further use in e.g., FSL BET or TopUp. This included WSL1 — which uses a path inside the WSL software — but didn't yet include WSL2 — which mounts a separate file as network shared disk. This is now added for Ubuntu18.04 and Ubuntue20.04, though this may be improved in the future for other Ubuntu distributions.

How to test

Tested with macOS, Linux, and with Windows WSL2. Needs to be tested with Windows WSL1 yet.
Can be tested by initializing ExploreASL and running xASL_fsl_SetFSLdir([],1) which should automatically detect and output the FSL dir (if installed). xASL_fsl_SetFSLdir should work if FSL is defined in the OS system.

MacOS

xASL_fsl_SetFSLdir([],1)
Running FSL from Matlab on macOS

ans =

'/usr/local/fsl'

Linux

xASL_fsl_SetFSLdir
Running FSL from Matlab on Linux

ans =

'/opt/amc/fsl-6.0.0'

xASL_fsl_SetFSLdir([],1)
Running FSL from Matlab on Linux
Found more than 1 FSL version, choosing latest

ans =

'/opt/amc/fsl-6.0.4-build'

Release notes

Feature: WSL2 compatibility added for FSL

Metadata

Metadata

Assignees

Labels

featureNew feature, enhancement or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions