https://github.com/triimaging/bidstools.jl
Tools for working with Brain Imaging Data Structure from Julia
https://github.com/triimaging/bidstools.jl
bids brain-imaging julia
Last synced: 5 months ago
JSON representation
Tools for working with Brain Imaging Data Structure from Julia
- Host: GitHub
- URL: https://github.com/triimaging/bidstools.jl
- Owner: TRIImaging
- License: mit
- Created: 2019-11-29T00:29:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-16T00:44:50.000Z (about 5 years ago)
- Last Synced: 2025-06-13T02:06:08.280Z (7 months ago)
- Topics: bids, brain-imaging, julia
- Language: Julia
- Size: 458 KB
- Stars: 7
- Watchers: 2
- Forks: 7
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BIDSTools
[](https://travis-ci.com/TRIImaging/BIDSTools.jl)
[](https://codecov.io/gh/TRIImaging/BIDSTools.jl)
[](https://triimaging.github.io/BIDSTools.jl/stable)
[](https://triimaging.github.io/BIDSTools.jl/dev)
Tools for working with Brain Imaging Data Structure (BIDS) from Julia.
For more info on BIDS, read [the documentation](https://bids-specification.readthedocs.io/en/stable/)
## Features
* Working with BIDS Directory easily
* Flexible usage - initialize single object as you wish
* Query to get the desired files
* Other utility functions such as `total_sessions`, `parse_fname`, `parse_path`, etc.
## Quick start
```julia-repl
julia> using BIDSTools
julia> layout = Layout("/path/to/bids/root/")
Layout:
root = /path/to/bids/root/
total subject = 125
total session = 137
total files = 2945
julia> for sub in layout.subjects
for ses in sub.sessions
for file in ses.files
# do something
end
end
end
julia> files = get_files(layout, path="Subtest", run="002")
1-element Array{File,1}:
File("/path/to/bids/root/sub-Subtest/ses-2/mrs/sub-Subtest_ses-2_acq-96inc_loc-pcg_spec-uns_run-002_mod-cosy_fid.tsv")
```