write_files_from_mats_dir: write_files_from_mats_dir

View source: R/QSM_funcs.r

write_files_from_mats_dirR Documentation

write_files_from_mats_dir

Description

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

Usage

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

## Not run: 
if(interactive()){
 #EXAMPLE1
 }

## End(Not run)

ashenkin/treestruct documentation built on June 11, 2025, 10:40 a.m.