Open Analysis
How to share reproducible FSL analysis pipelines

Purpose
The Open Analysis Working Group has worked with researchers to capture details of the magnetic resonance imaging (MRI) tools that they use in data processing. OxCIN is the developmental home of the popular FMRIB Software Library (FSL) MRI analysis package, which has been free to all users since its inception. FSL this is the tool of choice for most OxCIN researchers. The Working Group has devised a processes which researchers can slot into their normal FSL usage to ensure their analysis is reproducible and can be easily shared with others.
Data standards for interoperable code
International community data standards - specifically the Brain Imaging Data Structure (BIDS) - have been employed to ensure that shared pipelines are compatible with tools developed elsewhere. This working group is also committed to actively engaging with the future development of BIDS, to ensure lifetime compatibility between FSL and the wide data standards.
Education
Another large focus of this working group is developing programming literacy among OxCIN members, to support users in creating robust code to run their analysis. Significant efforts have been made to update the FSL training material, which is now available for free both internally and externally, and has been updated to include basic training in Unix command line access. The FSL course was run remotely and at reduced registration rates for the first time in 2020, for improved accessibility and inclusivity.
We run a series of programming workshops as part of our MRI Graduate Programme which is open to all OxCIN members at any career stage. These workshops include our intensive “python for MRI” pytreat material, which has been developed and refined by our FSL developers and users since 2018.
FSL - the FMRIB Software Library
FSL 6.1.0 (due to be released in the second half of 2022) will be based on the conda environment and package manager. Conda makes installing FSL, and reproducing a FSL installation straightforward. Conda also allows you to install only the tools you need, instead of a full FSL installation, which is useful for containerising your analysis pipeline. More details can be found https://git.fmrib.ox.ac.uk/fsl/conda/docs/.
Other software libraries
A number of open source Python-based software libraries are actively developed by OxCIN members, which aim to make it easy to script your analyses.
- The
fslpylibrary contains functionality for calling FSL routines from Python, working with linear and non-linear transformations, and loading/saving neuroimaging data files. - The
file-treelibrary allows you to de-couple the structure of your data set from your code, making it very easy to define the inputs and outputs of your data processing pipeline. - The
pipe-treelibrary is a lightweight framework for building processing pipelines in a declarative manner. FSLeyesis known as a NIFTI image viewer, but can also be scripted, and used to programmatically generate screenshots.
Coming soon
THIS TOOL IS CURRENTLY IN DEVELOPMENT. PLEASE REFER TO THE INFORMATION BELOW TO UNDERSTAND THE AIM AND AMBITION OF THIS PROJECT. THE “HOW TO” GUIDE WILL BE BUILT BY THE COMMUNITY AND TOOL DEVELOPERS IN THE COMING MONTHS.
For OxCIN members
Benefits
Version control 
OxCIN members will be encouraged to develop their analysis pipelines into standalone scripts and store these on the OxCIN GitLab instance. We will support our members in using git to version control their code, and employ best practice in ensuring their pipelines are robust and accurate. Find out more about using GitLab
Citable research output 
Versions of analysis code can be assigned a digital object identified (DOI) using Zenodo by uploading them from GitLab. Once a DOI has been created, your analysis code becomes a citable object which you can add to your list of research outputs. Find out how to create a doi for your repository.
Reproducible methods detail 
Alongside your analysis code, OxCIN members will be supported in implementing a “wrapper” script which can:
- access data stored on the OxCIN Open Data servers;
- access your GitLab code repository;
- pull a stable version of the FSL analysis package in a Singularity container;
- Run the accessed data using the supplied code and the given version of FSL via the container on a high performance cluster.
The benefit of the above comes from version control of the singularity container and that it encompasses a complete computational environment, such that it can be run on any operating system without concern over dependencies of versions of packages, making the analysis highly reproducible.
For external researchers
External users will be able to access the shared code and singularity containers, along with data when this is shared openly, and repeat the analysis to probe the results. External users will also be able to modify shared analysis code to suit there own needs, where this is shared with a permissive license.
How to use
Analysis wrapper
Coming soon
Detailed guidance on how to use the Open Analysis wrapper will be produced during one of our documentation hacks
Repository template
You are free to include whatever material you wish in your repository. We have created this guide on what to include to list some of the pages and sections which may be beneficial for readers. See also our guide on how to license your material.
Creating a doi
We recommend using zenodo to create a doi for your material. See see the creating a doi page for instructions.
Working group members (alphabetically)
We are grateful to the following OxCIN members for their contributions to developing the Open Analysis tools

