Read and write neuroglancer annotation info json files
Arguments
- anndf
A data.frame in which the first column contains ids for each neuron and additional columns contain annotations that will be joined into a single string.
- f
Path to a json file.
write_nginfo
will create the enclosing directory if necessary.- sep
The separator used to paste multiple columns of annotations together.
Details
Note that there is nothing specific to flywire about these two functions - they could be used for any data source.
Examples
# \donttest{
tf=tempfile(pattern = "info")
df=data.frame(id=c(10000,10002), type=c("DNp01"))
write_nginfo(df, tf)
# }