Declarative pipelines based on Filetrees. A pipeline is defined by:
- A file-tree, which defines the directory structure of the inputs and outputs of the pipeline. A tutorial on these file-trees is available here.
- A set of recipes describing how all the pipeline outputs are produced. A tutorial on writing these recipes is available here. Fsl-pipe will stitch these recipes together to produce any user-selected output files. Resulting jobs will either run locally, run distributed using dask, or be submitted to a cluster using fsl-sub.
An example diffusion MRI pipeline using fsl-pipe with detailed comments is available here.
Installation
pip install fsl-pipe
Any bug reports and feature requests are very welcome (see issue tracker).
Setting up local test environment
This package uses uv for project management. You will need to install uv to develop this package.
First clone the repository:
git clone https://git.fmrib.ox.ac.uk/fsl/fsl-pipe.git
Then we can ask uv to set up the local envoriment.
cd fsl-pipe
uv sync
Running tests
Tests are run using the pytest framework.
This will already be available in the uv virtual environment.
uv run pytest src/tests
Compiling documentation
The documentation is build using sphinx.
cd doc
uv run sphinx-build source build
open build/index.html
Contributing
Merge requests with any bug fixes or documentation updates are always welcome.
For new features, please raise an issue to allow for discussion before you spend the time implementing them.
Releasing new versions
- Ensure CHANGELOG.md is up to date.
- Edit the version number on
pyproject.toml - Create a new tag for the version number
- Push to gitlab (including tags).
- The pipeline from the tag will automatically publish fsl-pipe to pypi.
- Upload code on conda-forge using their automated release detection.
Metadata
Release files for fsl-pipe 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fsl_pipe-1.3.1.tar.gz | 23.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fsl_pipe-1.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.8 kB
Release files / fsl_pipe-1.3.1.tar.gz
| Download URL | fsl_pipe-1.3.1.tar.gz |
|---|---|
| Size | 23.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cdc7456f4bfcff89b0b3a86bab647dc286fb7497b70c95b9fafde14af152db09
|
|
BLAKE2b-256 checksum How to use checksums |
afa22bb315e617f8524e1ed7e7c059f47a671910eca8f69d54d5c9f4dd654853
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.30
|
Release files / fsl_pipe-1.3.1-py3-none-any.whl
| Download URL | fsl_pipe-1.3.1-py3-none-any.whl |
|---|---|
| Size | 26.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d032d8df0aa6bcf494a17a23b2fece0e334c60416c52eaab1acc9c781cdcc7b
|
|
BLAKE2b-256 checksum How to use checksums |
681445bd6b2cec0a465fd0afd5b7e958e6772ff592da840aaa51a553a1a1be05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.4.30
|