SWANe is a software designed and developed to improve and simplify the management of a wide range of advanced neuroimaging analysis algorithms.
It consists of a library of predefinied workflows that can be managed through a user-friendly Graphical User Interface, which guides the users step by step to all the operations without any text-based command interface.
SWANe straightforward pipeline can be used to manage imaging for epileptic patients of all ages (including pediatric patients). Its structure in indipendent modules permits to be diffusely adopted overcoming the difficulties to collect advanced imaging (especially metabolic and functional) in small epileptic centers.
Each module is completely independent from the others and is dedicated to one imaging modality/analysis, starting from a 3D-T1 weighted image, which represent the “base image” for all the analysis.
A few of the analyses you can do with SWANe:
- 3D T1w: generates T13D NIFTI files to use as reference;
- 3D Flair: generates 3D Flair NIFTI files and perform linear registration to reference space;
- 2D Cor/Sag/Tra Flair: generates 2D Flair NIFTI files and perform linear registration to reference space;
- 2D 2T Coronal: generates 2D 2T Coronal NIFTI files and perform linear registration to reference space;
- Post-contrast 3D T1w: generates post-contrast 3D T1w NIFTI files and perform linear registration to T13D reference space.
- FreeSurfer: performs FreeSurfer cortical reconstruction and, if required, segmentation of the hippocampal substructures and the nuclei of the amygdala;
- FlaT1: creates a junction and extension z-score map based on 3D T1w, 3D Flair and a mean template;
- PET & Arterial Spin Analysis (ASL): analysis for registration to reference, z-score and asymmetry index maps, projection on FreeSurfer pial surface;
- Diffusion Tensor Imaging processing: performs DTI preprocessing workflow and fractinal anisotropy calculation;
- Tractography: perrforms tractography execution for chosen tract using FSL xtract protocols;
- Task fMRI: performs fMRI first level analysis for a single or double task with constant task-rest paradigm;
- Venous MRA: performs analysis of phase contrasts image (in single or two series) to obtain in-skull veins in reference space.
SWANe comes with an extensive Wiki hosted on GitHub that covers all the aspects of the project.
Ubuntu: SWANe is developed and optimized for Ubuntu > 20.XX.
macOS: SWANe is developed and optimized for macOS > 12.5.XX.
| Software | Minimum Version | Official Installation Guide |
|---|---|---|
| python | 3.10 | |
| dcm2niix | 1.0.20220720 | Link |
| fsl | 6.0.6 | Link |
Warning
The installation of some of these dependencies can be tricky. If you're not handy with Mac or Linux OS we recommend you to read our Wiki for a full installation guide of each one of these softwares.
| Software | Minimum Version | Official Installation Guide |
|---|---|---|
| FreeSurfer | 7.3.2 | Linux - macOS |
| 3D Slicer | 5.2.1 | Linux - macOS |
| graphviz | 0.2.2 | Linux - macOS |
Warning
The installation of some of these dependencies can be tricky. If you're not handy with Mac or Linux OS we recommend you read our Wiki for a full installation guide of each one of these softwares.
Below the recommend software/package installation order to make sure SWANe works properly:
- Python;
- Pip
- Dcm2niix;
- FSL;
- FreeSurfer;
- Matlab Runtime;
- 3D Slicer;
- Graphviz;
- SWANe
pip3 install swane
Note
Starting from Ubuntu 23.04 apt is the default package manager for python libraries. SWANe is published only on PyPi, therefore it's necessary to allow the pip installation command with the argument --break-system-packages. This is not necessary for previous Ubuntu versions.
python3 -m swane
pip3 install --upgrade swane
SWANe is designed and developed by LICE Neuroimaging Commission, term 2021-2024, with the main contribution by Power ICT Srls.
If you want to leave us your feedback on SWANe please fill the following Google Form.
For any advice on common problems or issues, please open an Issue on our GitHub. Pull requests are welcomed.
You can contact us at the following e-mail: dev@lice.it.
This project is licensed under the MIT License - see the LICENSE file for details This project includes subsection derived from other software, which licenses can be found in the NOTICE file
- Venous CT Workflow
- Stereo-EEG CT Workflow
- Resting State fMRI Workflow
- information window for running and completed workflow steps
- FreeSurfer Synth tools support
- Venous MRA and Task fMRI now flagged as optional analyses
- Recon-all core management improved
- Preferences window layout improved
- Result tab now correctly refreshes the file list after workflow fresh execution.
- Flat1 Workflow: outliers removal improvement.
- Python requirement: from >=3.7 to >=3.10.
- nibabel requirement: from <=5.3.0 to >=5.3.0,<6.
- fMRI Delete Start Volumes preference: from range[1,500] to range[0,500].
- DICON scan improved
- Python requirement: from >=3.7 to >=3.10.
- nibabel requirement: from <=5.3.0 to >=5.3.0,<6.
- fMRI Delete Start Volumes preference: from range[1,500] to range[0,500].
- ImageType series error shown after DICOM folder scan: the error is shown only if no valid series are found into the folder and list all the wrong ImageType found in the path.
- Shutdown SWANe at Analysis End: if enabled, it turns off the OS when SWANe ends all the started analyses without error.
- Automatic series classification: if enabled, activates a new module that automatically classifies subject series at their load in Data Load Subtab.
- SWANe Assistant GPTs link: added a button into the client footer that links to SWANe Assistant GPTs.
- UBUNTU ONLY: check xclip dependency existance.
- multiframe series reading improved
- networkx version requisites
- nipype version requisites
- using typing package to ensure SWANe compatibility with older python versions
- Minor bug in subject workflow status tracing.
- setuptools dependency for GPUtils Series
- fMRI cluster outputs with different thresholds (3.1, 5.1, 7.1)
- Threshold for 3DSlicer DTI Tract in Workflow Preferences
- Threshold (%) for 3DSlicer Vein Segment in Workflow Preferences
- Cost Function for ASL/PET in Workflow Preferences
- PySide6 QSpinBox & QDoubleSpinBox implementation in App & Workflow Preferences
- PySide6 ThreadPool handing bug on python3.10
- Multiframe Series reading function
- FLAT1 Outliers Mask restored
- DICOM Tree analyze worker improved
- fMRI Task names conflict in nypipe command
- numpy >= 2 conflict with nypipe: numpy version forced to < 2 waiting for nypipe upgrade
- Mail Settings for mail report at the workflow completion
- 2D Cor T2 workflow (in Optional Series)
- Unbetted series saved into workflow results
- New dependency checks in Home
- Various python packages dependency requirement updated
- FSL robustfov for neck cropping
- 3D Slicer setMasterVolumeNode replaced with setSourceVolumeNode
- pydicom read_file replaced with dcmread
- ASL Flirt cost function param Mutual Information replaced with Normalized Mutual Information
- SWANe compatibility with FSL ver. >= 7.0.0
- fMRI Task B name setting field unlocked for rArB block design
- Various typos