find_glomeruli: Finds the glomerulus associated with a PN

Description Usage Arguments Details Value

View source: R/utils.R

Description

Given a vector of skeleton IDs, this will find the glomerului associated with PNs, based on annotations in CATMAID.

Usage

1
find_glomeruli(skids, exclude = NULL)

Arguments

skids

Required; an integer or character vector of skeleton IDs

exclude

Optional; a vector of glomeruli to exclude (in the format X for glomerulus X, or the full annotation for unknown glomerulus N)

Details

Requires the PN to be annotated with glomerulus X or unknown glomerulus N in CATMAID. Annotations of the form glomerulus X will be prioritised over unknown glomerulus N, and if there are multiples they will be joined together with a forward slash. If there are no results with either of these annotations, the string "unknown" will be returned in place of a glomerulus. Note that annotations of the form glomerulus X right|left are not considered.

Value

A character vector of glomeruli names


fmlove/tracerutils documentation built on Oct. 22, 2018, 1:09 p.m.