write_nginfo | R Documentation |
Read and write neuroglancer annotation info json files
write_nginfo(anndf, f, sep = "_")
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. |
sep |
The separator used to paste multiple columns of annotations together. |
Note that there is nothing specific to flywire about these two functions - they could be used for any data source.
For read_nginfo
a list containing annotations.For
write_nginfo
, the path f
invisibly.
fct2nginfo
tf=tempfile(pattern = "info")
df=data.frame(id=c(10000,10002), type=c("DNp01"))
write_nginfo(df, tf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.