|
1 | | -<!-- |
| 1 | +[](https://github.com/cpp-lln-lab/spm_2_bids/actions/workflows/miss_hit_code_quality.yml) |
| 2 | +[](https://github.com/cpp-lln-lab/spm_2_bids/actions/workflows/miss_hit_code_style.yml) |
| 3 | +[](https://github.com/cpp-lln-lab/spm_2_bids/actions/workflows/run_tests.yml) |
| 4 | +[](https://codecov.io/gh/cpp-lln-lab/spm_2_bids) |
2 | 5 |
|
3 | | -When you have set up your repo |
| 6 | +# spm_2_bids |
4 | 7 |
|
5 | | -**Unit tests and coverage** |
| 8 | +Small code base to help convert the MRI spm output to a valid bids derivatives. |
6 | 9 |
|
7 | | -[](https://github.com/Remi-gau/template_matlab_analysis/actions) |
8 | | - |
| 10 | +This code only generates the plausible BIDS derivatives filename for given file |
| 11 | +that has been preprocessed with SPM. |
9 | 12 |
|
10 | | -[](https://codecov.io/gh/Remi-gau/template_matlab_analysis) |
| 13 | +Most of the renaming is based on the SPM prefixes combinations. |
11 | 14 |
|
12 | | -**Miss_hit linter** |
| 15 | +It is configurable to adapt to new set of prefixes. |
13 | 16 |
|
14 | | -[](https://travis-ci.com/Remi-gau/template_matlab_analysis) |
| 17 | +## Dependencies |
15 | 18 |
|
16 | | ---> |
| 19 | +- [BIDS-matlab](https://github.com/bids-standard/bids-matlab) |
17 | 20 |
|
18 | | -# spm_2_bids |
| 21 | +Can be installed with : |
19 | 22 |
|
20 | | -Small code base to help convert the MRI spm output to a valid bids derivatives. |
| 23 | +For MATLAB |
21 | 24 |
|
22 | | -This code only generates the plausible BIDS derivatives filename for given file that has |
23 | | -been preprocessed with SPM. |
| 25 | +```bash |
| 26 | +make install_dev |
| 27 | +``` |
24 | 28 |
|
25 | | -Most of the renaming is based on the SPM prefixes combinations. |
| 29 | +For Octave |
26 | 30 |
|
27 | | -It is configurable to adapt to new set of prefixes. |
| 31 | +```bash |
| 32 | +make install_dev_octave |
| 33 | +``` |
| 34 | + |
| 35 | +## Usage |
| 36 | + |
| 37 | +```matlab |
| 38 | +file = 'wmsub-01_desc-skullstripped_T1w.nii'; |
| 39 | +
|
| 40 | +[new_filename, pth, json] = spm_2_bids(file); |
| 41 | +
|
| 42 | +new_filename = |
| 43 | +
|
| 44 | + 'sub-01_space-IXI549Space_desc-preproc_T1w.nii'); |
| 45 | +``` |
28 | 46 |
|
29 | | -- [Dependencies](./lib/README.md) |
30 | | -- [Documentation](https://spm-2-bids.readthedocs.io/en/latest/) |
| 47 | +For more see the [documentation](https://spm-2-bids.readthedocs.io/en/latest/). |
0 commit comments