Find the location of tags in a CATMAID neuron, either as URLs to the location of a TODO tag in CATMAID or as a data.frame reporting the location and skeleton treenode locations of specified tags.
catmaid_get_tag(x, tag = "TODO", url = FALSE, only.leaves = TRUE, conn = NULL, pid = 1)
x | a neuron or neuronlist object |
---|---|
tag | a single character specifying which tag to look for. Defaults to TODO |
url | if TRUE (default) a list of URLs pertaining to specified tag locations are returned. If FALSE, a data.frame subsetted from x$d is returned, reporting treenode ID and X,Y,Z positions for specified tags |
only.leaves | whether or not to only return leaf nodes with the specified tag |
conn | CATMAID connection object, see ?catmaid::catmaid_login for details. For making the URL. |
pid | project id. Defaults to 1. For making the URL. |