nsoma: Return the number of explicitly tagged somata in a (CATMAID)...

View source: R/catmaid_nat.R

nsomaR Documentation

Return the number of explicitly tagged somata in a (CATMAID) neuron

Description

Return the number of explicitly tagged somata in a (CATMAID) neuron

Usage

nsoma(x, ...)

## S3 method for class 'neuronlist'
nsoma(x, ...)

## S3 method for class 'neuron'
nsoma(x, ...)

## Default S3 method:
nsoma(x, soma_label = "soma", ...)

Arguments

x

Objects to count somata e.g. one or more neurons or a specifier passed to catmaid_skids

...

Additional arguments, eventually passed by nsoma.default to catmaid_skids, otherwise ignored.

soma_label

Character vector of one or more label names that identify somata.

Details

These functions can cope with loaded neuron objects or CATMAID skid specifications (see catmaid_skids). Note that this function will return 0 for any neuron that does not contain a tags$soma entry, including regular neuron objects .

Value

A named integer vector corresponding to the number of neurons specified by x.

See Also

soma

Examples

nsoma(Cell07PNs)
data("AV4b1")
nsoma(AV4b1)

nsoma("ORN PNs")

## Not run: 
nsoma(3486381)

## End(Not run)

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