BIDSTools.jl

Tools for working with Brain Imaging Data Structure from Julia
Author TRIImaging
Popularity
3 Stars
Updated Last
7 Months Ago
Started In
November 2019

BIDSTools

Build Status CodeCoverage

Tools for working with Brain Imaging Data Structure (BIDS) from Julia.

For more info on BIDS, read the documentation

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> 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")

Used By Packages

No packages found.