MaRCoS Graphical Environment (MaRGE)
Project description
MaRGE (MaRCoS Graphical Environment)
🚀 Version 1.0.0 coming soon — stay tuned!
MaRGE is a Python-based graphical environment for interacting with the MaRCoS MRI research system. It provides a user-friendly GUI for running MRI sequences, configuring parameters, and managing experiments without needing to work directly with low-level control code.
MaRGE is designed for MRI researchers, developers, and students working with the MaRCoS platform.
Index
- Preview
- Features
- General requirements
- Installation with pip
- Installation from source (For developers)
- Full Installation (MaRGE + MaRCoS)
- Documentation
- Additional notes
1. Preview
2. Features
🧲 Graphical interface for MaRCoS MRI experiments
⚙️ Sequence configuration and execution
🧪 Research-oriented workflow
🧩 Extensible sequence architecture
🐍 Fully Python-based
3. General requirements
Before installing MaRGE, make sure your system meets the following minimum requirements. The software is primarily tested and supported on Ubuntu, but other platforms may work with some limitations.
- Ubuntu 22.04.5 LTS with Python 3.10
- Windows 10 with Python 3.13
- Windows 11 with Python 3.13
- Internet connection
Without a configured MaRCoS + Red Pitaya setup, MaRGE can still be launched, but only Trial Mode will be available (no hardware acquisition).
4. Installation with pip
Install MaRGE with pip if you only need to run the GUI and do not plan to modify the source code or add custom sequences.
Note: Tyger capabilities are not supported from pip installation.
- Go to your project folder.Create and activate a virtual environment:
- Ubuntu
python3 -m venv venv source venv/bin/activate
- Windows
python -m venv venv source venv/Scripts/activate
-
Install marge-mri
pip install marge-mri==1.0.0b1
-
Launch the GUI from terminal:
marge-mri
5. Installation from source (Developer mode)
Use this method if you want to modify the codebase or include your own sequences.
-
Go to the folder where you want to create the project and clone the repo
git clone https://github.com/josalggui/MaRGE.git
-
Go into the created
MaRGEfolder. Create and activate a virtual environment. Then, add the current folder (MaRGE) to Python's module search path:
- Ubuntu
cd MaRGE python3 -m venv venv source venv/bin/activate export PYTHONPATH=$(pwd)
- Windows
cd MaRGE python -m venv venv source venv/Scripts/activate export PYTHONPATH=$(pwd)
- Install requirements
pip install -r requirements.txt
- Go into
MaRGE/margefolder and run themain.py.
- Ubuntu
cd marge python main.py
- Windows
cd marge python3 main.py
Notes
When you execute main.py additional folders are created to save results, configurations, or calibrations.
These folders are created in the directory where you run main.py.
It is highly recommended to run main.py from MaRGE/marge folder.
6. Full Installation (MaRGE + MaRCoS Setup)
For a complete installation including MaRCoS configuration, hardware setup, and developer options, please follow the detailed step-by-step guide in the Wiki:
7. Documentation
📖 Wiki: https://github.com/josalggui/MaRGE/wiki (under development)
📚 Documentation site: https://josalggui.github.io/MaRGE/ (under development)
📦 PyPI package: https://pypi.org/project/marge-mri/
8. Additional notes
1. cupy-cuda12x module related error
During the installation of the requirements, the following error may appear:
ERROR: No matching distribution found for cupy-cuda12x
This usually means your Python environment is not compatible with the prebuilt CuPy CUDA 12 wheels. It is not typically caused by a missing CUDA Toolkit installation.
Common causes and fixes:
-
Unsupported Python version — CuPy wheels are only published for specific Python versions. Check your version:
python --version
If you are using Python 3.14 (or a newer unsupported version), install Python 3.13.0 and recreate your virtual environment.
2. CuPy / CUDA dependency and Tyger capability
CuPy is used in the postprocessing toolbox to accelerate the Algebraic Reconstruction Technique (ART) with GPU computation. The code attempts to import CuPy at runtime; if the import fails, ART automatically falls back to a CPU implementation.
In the current version, with the introduction of the Tyger capability, the ART-based postprocessing workflow is generally no longer needed. As a result:
- CuPy is effectively optional
- CUDA Toolkit is not required for normal Tyger-based workflows
- Failing to install
cupy-cuda12xwill not break the pipeline - The code will continue to run using CPU paths (or Tyger paths) instead
You may safely skip CuPy/CUDA installation unless you explicitly plan to use the legacy ART postprocessing toolbox.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file marge_mri-1.0.0b2.tar.gz.
File metadata
- Download URL: marge_mri-1.0.0b2.tar.gz
- Upload date:
- Size: 8.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8acd727c9068459adcf7727c0985deef07d8977a90f8b6256c07d67b8214dc9
|
|
| MD5 |
9f79f2f05f33e5ee1c4c8d10ea57b1f1
|
|
| BLAKE2b-256 |
a49300d1130e7b787c80b1e0e49743e4d9a776deccc6d633a1229333125620b5
|
File details
Details for the file marge_mri-1.0.0b2-py3-none-any.whl.
File metadata
- Download URL: marge_mri-1.0.0b2-py3-none-any.whl
- Upload date:
- Size: 8.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
22bd52a9353d73676d628bb7b287e0d2d9eb83106c0b7007de3b75c695c53978
|
|
| MD5 |
a6bc6918585f4613b775dce8edd04796
|
|
| BLAKE2b-256 |
692f67ceb0290fe8dc356bc5692f3e3ab45a66c5810d71eb9f0195d20d66022d
|