https://github.com/cpernet/bids_minimize
One principle of BIDS is filename distinctness. Here the tool asks : what is the minimal information needed to distinguish files? this means, no ses- or run- if not needed, possibly limit acq- and dir- as well, etc
https://github.com/cpernet/bids_minimize
Last synced: about 1 month ago
JSON representation
One principle of BIDS is filename distinctness. Here the tool asks : what is the minimal information needed to distinguish files? this means, no ses- or run- if not needed, possibly limit acq- and dir- as well, etc
- Host: GitHub
- URL: https://github.com/cpernet/bids_minimize
- Owner: CPernet
- License: mit
- Created: 2026-05-18T12:05:46.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2026-05-18T12:29:11.000Z (2 months ago)
- Last Synced: 2026-05-18T14:20:46.685Z (2 months ago)
- Language: Python
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BIDS_minimize
Schema-driven BIDS filename minimizer.
This tool scans a BIDS tree recursively, loads the latest schema from `https://jsr.io/@bids/schema` (with a GitHub fallback when JSR is unavailable), and removes non-mandatory filename entities while preserving unique filenames.
## Usage
```bash
python bids_minimize.py /path/to/bids_dataset
python bids_minimize.py /path/to/bids_dataset --dry-run
```