fromBidsJson {divest} | R Documentation |
Conversion to and from BIDS JSON
Description
Functions to convert to and from BIDS JSON format for image metadata. They
are wrappers around functions from the jsonlite
package, with the
additional ability to convert between divest
's tag naming convention
and the BIDS equivalent. The differences are mostly in capitalisation, and
the units used for magnetic resonance echo, repetition and inversion times.
Usage
fromBidsJson(source, rename = FALSE)
toBidsJson(source, path = NULL, rename = FALSE)
Arguments
source |
A list containing metadata (see |
rename |
Logical value. If |
path |
For |
Value
fromBidsJson
returns a list of image attributes.
toBidsJson
returns a character vector if path
is
NULL
, otherwise nothing.
Author(s)
Jon Clayden <code@clayden.org>
References
More information about metadata captured by the BIDS format can be found at https://bids.neuroimaging.io or in the paper cited below.
K.J. Gorgolewski, T. Auer, V.D. Calhoun, et al. The brain imaging data structure, a format for organizing and describing outputs of neuroimaging experiments (2016). Scientific Data 3:160044. doi:10.1038/sdata.2016.44.