Twk Lausanne Download [work] Now
# ------------------------------------------------- # 1. Load a BIDS‑compliant dataset # ------------------------------------------------- bids_root = "/data/subject01" dataset = tio.load_bids(bids_root)
dti = DTI(gpu=True) dti.fit(dataset.dwi, bvals=dataset.bval, bvecs=dataset.bvec) fa_map = dti.fa() tvis.plot_volume(fa_map, cmap='viridis') TWK Lausanne ships a Ray‑based distributed executor . Example for scaling across a Kubernetes cluster: twk lausanne download
The suite is built around a , with optional C/C++ extensions for performance‑critical kernels. It follows the FAIR (Findable, Accessible, Interoperable, Re‑usable) principles and integrates seamlessly with other community tools such as Nilearn , MNE‑Python , FSL , SPM , and AFNI . 2. Historical Context | Year | Milestone | |------|-----------| | 2015 | Project conception at EPFL’s Laboratory for Cognitive Neuroimaging (LCN). | | 2016 | First public release (v0.1) on GitHub under the permissive BSD‑3‑Clause license. | | 2018 | Integration of a GPU‑accelerated diffusion‑tensor toolbox (via CUDA). | | 2020 | Introduction of the “Lausanne 2020 ” data‑standardisation layer, aligning with BIDS (Brain Imaging Data Structure). | | 2022 | Full support for containerised deployment (Docker, Singularity) and a cloud‑ready version for AWS/GCP. | | 2024 | Release of TWK Lausanne 2.0 , featuring a modular plugin architecture, a web‑based dashboard, and an extensive Python API. | # ------------------------------------------------- # 1
# Activate the environment conda activate twk-lausanne | | 2016 | First public release (v0
The name Lausanne reflects both the geographic origin and the project’s commitment to the . 3. Core Architecture 3.1. Modules | Module | Description | Key Dependencies | |--------|-------------|-------------------| | twk.io | Unified I/O handling (BIDS, NIfTI, DICOM, HDF5). | nibabel, pydicom | | twk.preproc | Pre‑processing pipelines (realignment, slice‑timing, denoising). | Nilearn, scikit‑image | | twk.stats | Classical (GLM) and Bayesian statistical tools. | statsmodels, pymc3 | | twk.ml | Machine‑learning wrappers (feature selection, model evaluation). | scikit‑learn, torch, tensorflow | | twk.vis | Interactive visualisation (3‑D brain surfaces, connectomes). | plotly, pyvista | | twk.sim | Neural‑network simulation (spiking, rate‑based). | Brian2, NEST | | twk.dashboard | Web‑based GUI built on Dash for workflow orchestration. | dash, flask |
docker pull epfl/twk-lausanne:2.0 docker run -it --rm -v $PWD:/data epfl/twk-lausanne:2.0 bash For HPC clusters that rely on Singularity: