This function sends SWC files to NeuroMorpho.org so that it can check if those SWC files are in the standard format using its xyz2swc tool. The user gets a data frame describing, for each file, any errors it contains.

xyz2swc_check(
  source_dir = NULL,
  source_file = NULL,
  neuromorpho_url = "https://neuromorpho.org",
  ...
)

Arguments

source_dir

A character string specifying the directory where the source SWC files are located.

source_file

A character string specifying the full path to a single source SWC file.

neuromorpho_url

A character string specifying the URL for the NeuroMorpho.org website (default is "https://neuromorpho.org").

...

Additional arguments.

Value

A data frame containing a description of any errors in the SWC files.

See also

xyz2swc_convert for a function to convert into standard SWC files.

Examples

if (FALSE) {
# check a single file
xyz2swc_check(source_file = "path/to/file.swc")

# check all files in a directory
xyz2swc_check(source_dir = "path/to/directory/")
}