write_files_from_mats_dir: write_files_from_mats_dir

Description Usage Arguments Details Value Examples

View source: R/QSM_funcs.r

Description

extracts cyl and branch data from .mat files made by treeQSM and writes txt files used by this package.

Usage

1
write_files_from_mats_dir(qsm_path = ".", recursive = F, qsmver = 2.3)

Arguments

qsm_path

path to directory containing treeQSM .mat files

recursive

process sub-directories recursively? Default: FALSE

qsmver

version of treeQSM used to make the .mat file, Default: 2.3

Details

If you get an error about names not being the same length as the vector, try a different qsm version. This is probably slower than the equivalent server function, but also more reliable. This functions does not use matlab at all. Warning: this will overwrite existing files.

Value

vector of .mat filenames processed

Examples

1
2
3
4
5
6
## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

ashenkin/treestruct documentation built on Oct. 14, 2021, 1:54 a.m.