import_qsm: Import TreeQSM

View source: R/import_qsm.R

import_qsmR Documentation

Import TreeQSM

Description

Imports a QSM created by TreeQSM

Usage

import_qsm(file, version = "2.x.x")

Arguments

file

a TreeQSM .mat MATLAB file

version

TreeQSM version. Defaults to 2.x.x. The user can also specify the 2.0 format.

Value

Returns a list

References

\insertRef

TreeQSMrTwig

Examples


## Read a TreeQSM MATLAB file in the 2.3.x - 2.4.x format
file <- system.file("extdata/QSM.mat", package = "rTwig")
qsm <- import_qsm(file, version = "2.x.x")
summary(qsm)

## Read a TreeQSM MATLAB file in the 2.0 format
file <- system.file("extdata/QSM_2.mat", package = "rTwig")
qsm <- import_qsm(file, version = "2.0")
names(qsm)


rTwig documentation built on Sept. 11, 2024, 7:01 p.m.