read_ng_raw: Read raw neuroglancer data - currently only supports mesh...

View source: R/ng-raw-io.R

read_ng_rawR Documentation

Read raw neuroglancer data - currently only supports mesh format

Description

Read raw neuroglancer data - currently only supports mesh format

Usage

read_ng_raw(x, read_data = TRUE, Verbose = FALSE)

Arguments

x

Path to one or more files OR a directory (in which case all files are read).

read_data

Whether to read the data (default when TRUE) or just the header

Verbose

Whether to print some status messages (default FALSE)

Value

An object of class 'ng_raw_list' containing one or more chunks of data of class 'ng_raw'. When x contains multiple files, all the chunks are merged into a single list.

References

See https://github.com/google/neuroglancer

Examples

## Not run: 
res <- read_ng_raw("meshdata/chunk00789.raw")
resh <- read_ng_raw("meshdata/chunk00789.raw", read_data=FALSE)
resl <- read_ng_raw(dir("meshdata", full.names = TRUE))

## End(Not run)

natverse/fafbseg documentation built on Nov. 11, 2024, 9:50 p.m.