catmaid_get_node_count: Get the number of nodes per skeleton

View source: R/catmaid_skeleton.R

catmaid_get_node_countR Documentation

Get the number of nodes per skeleton

Description

Get the number of nodes per skeleton

Usage

catmaid_get_node_count(skids, pid = 1, conn = NULL, ...)

Arguments

skids

One or more numeric skeleton ids or a character vector defining a query (see catmaid_skids or examples for the syntax).

pid

Project id (default 1)

conn

A catmaid_connection objection returned by catmaid_login. If NULL (the default) a new connection object will be generated using the values of the catmaid.* package options as described in the help for catmaid_login.

...

Additional arguments passed to the catmaid_fetch function

Details

This is actually a thin wrapper around the catmaid_get_review_status function, which returns the number of reviewed and total nodes for one or more neurons. However this function can efficiently return the number of nodes when there are duplicates in the input list.

Value

An integer vector of node counts

Examples

## Not run: 
catmaid_get_node_count("glomerulus DA2")

# NB handles repeated input efficiently
skids=catmaid_skids("glomerulus DA2 right")
catmaid_get_node_count(rep(skids,20))

## End(Not run)

jefferis/rcatmaid documentation built on Aug. 16, 2022, 8:52 p.m.