is.swc: Test if a file is an SWC format neuron

Description Usage Arguments Details Value See Also

View source: R/neuron-io.R

Description

Test if a file is an SWC format neuron

Usage

1
is.swc(f, TrustSuffix = TRUE)

Arguments

f

Path to one or more files

TrustSuffix

Whether to trust that a file ending in .nrrd or .nhdr is a NRRD

Details

Note that this test is somewhat expensive compared with the other file tests since SWC files do not have a consistent magic value. It therefore often has to read and parse the first few lines of the file in order to determine whether they are consistent with the SWC format.

Value

logical value

See Also

read.neuron


nat documentation built on Sept. 6, 2021, 5:09 p.m.