View source: R/traits_from_qsm.R
| load_qsm | R Documentation |
Reads a Quantitative Structure Model (QSM) file from disk and checks that it includes all required columns. If any expected columns are missing, the function stops with an informative error message.
load_qsm(path)
path |
Character string giving the path to a QSM text file. |
A tibble containing the QSM data.
A tibble containing the QSM data with validated required columns: 'startX', 'startY', 'startZ', 'endX', 'endY', 'endZ', 'cyl_ID', 'parent_ID', 'extension_ID', 'radius_cyl', 'length', 'volume', and 'branching_order'. An error is thrown if any required columns are missing.
qsm_path = system.file('extdata', 'tree_0744_qsm.txt', package='tReeTraits')
qsm <- load_qsm(qsm_path)
plot_qsm2d(qsm, scale=50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.