This function takes neuron morphology files and converts them into standardised SWC files. It can take 23 different, common file types as input. The user gets a .zip file downloaded and a data frame of any errors or corrections made to the files.
A character string indicating the directory containing the source files.
A character string indicating the full path to the source file.
A character string indicating the full path and filename for the resulting .zip file.
A logical indicating whether to create a log file of any errors or corrections made to the files.
A character string indicating the URL of the Neuromorpho website.
A character string indicating the name of the folder to store the converted files on the server.
Additional arguments to pass to `neuromorpho_fetch`.
A data frame of any errors or corrections made to the files.
xyz2swc_check
for a function to validate SWC files.
if (FALSE) {
# Convert a single file
xyz2swc_convert(source_file = "path/to/source/file")
# Convert all files in a directory
xyz2swc_convert(source_dir = "path/to/source/directory")
# Specify a custom URL
xyz2swc_convert(source_file = "path/to/source/file", neuromorpho_url = "https://mycustomurl.com")
}