Learn R Programming

aRchi (version 2.1.3)

read_QSM: Read a QSM

Description

Read a QSM file generated with treeQSM, simpletree, simpleforest or pypetree.

Usage

read_QSM(file, model)

Value

a list containing a data.table with the QSM and a character with the model name. This list can be used to build an aRchi object (see function build_aRchi)

Arguments

file

The directory to the QSM file path.

model

treeQSM, simpletree, simpleforest or pypetree depending on the algorithm used to generate the QSM

Details

For treeQSM model, .mat from treeQSM are allowed. the old format (V2.3) as well as the new format (V2.4) are allowed.

See Also

aRchi the aRchi class;build_aRchi to build an object of class aRchi

Examples

Run this code
file=system.file("extdata","Tree_1_TreeQSM.txt",package = "aRchi")
QSM=read_QSM(file,model="treeQSM")

Run the code above in your browser using DataLab