read_QSM: Read a QSM

Description Usage Arguments Details Value See Also Examples

View source: R/read_QSM.R

Description

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

Usage

1
read_QSM(file, model)

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, please respect the format with column order provided in the last version <https://github.com/InverseTampere/TreeQSM/blob/master/README.md>

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)

See Also

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

Examples

1
2
file=system.file("extdata","Tree_1_TreeQSM.txt",package = "aRchi")
QSM=read_QSM(file,model="treeQSM")

aRchi documentation built on April 16, 2021, 5:08 p.m.