Twk Lausanne Download |best| ⚡ «SAFE»
git clone https://github.com/epfl-twk/twk-lausanne.git cd twk-lausanne # Optionally check out the latest tag, e.g., v2.0.3 git checkout tags/v2.0.3 # Install in editable mode python -m pip install -e . The repository includes ; you can run the test suite with:
# Verify CUDA availability assert cuda_enabled(), "CUDA not found – install the twk-lausanne[cuda] extra."
pytest -n auto Below is a minimal example that demonstrates a typical end‑to‑end analysis: loading a BIDS dataset, preprocessing, statistical modelling, and visualising results. twk lausanne download
1. What Is TWK Lausanne? TWK Lausanne (short for “Toolkit for Working Knowledge – Lausanne edition” ) is an open‑source, research‑oriented software suite that originated at the École Polytechnique Fédérale de Lausanne (EPFL) in Switzerland. Its primary purpose is to provide a flexible, modular environment for:
import twk.io as tio import twk.preproc as tpre import twk.stats as tstat import twk.vis as tvis git clone https://github
pipeline_json = preproc.to_json() tvis.save_dashboard(pipeline_json, out="my_analysis.json") 6.1. GPU‑Accelerated Diffusion Tensor Imaging from twk.diffusion import DTI, cuda_enabled
python -m pip install "twk-lausanne[cuda]" Pre‑built images are published on Docker Hub: What Is TWK Lausanne
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 |