write_fascicles: Export fascicles from R

View source: R/write-fascicles.R

write_fasciclesR Documentation

Export fascicles from R

Description

Export fascicles from R

Usage

write_fascicles(x, file)

Arguments

x

An object of class maf_df storing tractography data.

file

Path to a file into which the tractography data should be saved. Currently supported files are .vtk, .vtp and medInria .fds file formats.

Value

The input tractography data (invisibly) so that the function can be used in pipes.

Examples

uf_left  <- read_fascicles(system.file("extdata", "UF_left.vtp",  package = "riot"))
## Not run: 
out <- fs::file_temp(ext = ".vtp")
write_fascicles(uf_left, file = out)

## End(Not run)

riot documentation built on Jan. 7, 2023, 1:12 a.m.