fc_neuron_type: Return metadata including NeuronType for FlyCircuit neurons

View source: R/ids.R

fc_neuron_typeR Documentation

Return metadata including NeuronType for FlyCircuit neurons

Description

fc_neuron_type depends on a more generic worker function fc_annotated_class, which may be used to construct other convenience functions.

Usage

fc_neuron_type(x = NULL, regex = NULL, ...)

fc_annotated_class(class, x = NULL, regex = NULL, ...)

Arguments

x

A neuron identifier. When missing defaults to all neurons annotated with the given annotation class.

regex

An optional regex used to filter the annotation text values of the matching neurons.

...

Additional arguments passed to grepl.

class

The annotation class to select (for codefc_annotated_class).

Details

In our schema, annotations are key-value pairs in which an annotation class, such as NeuronType, may have multiple values (e.g. gamma Kenyon cell).

Value

a character vector of annotation values, named by the neuron identifier

See Also

grepl, fc_gene_name,

Examples

# how many neurons are annotated with any type?
length(fc_neuron_type())
# how many types of neuron
length(unique(fc_neuron_type()))
# how many neurons of each type are present
table(fc_neuron_type())
# find all the Kenyon cells
table(fc_neuron_type(regex="Kenyon"))
table(fc_neuron_type(regex="gamma Kenyon"))
table(fc_neuron_type(regex="gamma.*Kenyon"))

natverse/flycircuit documentation built on Jan. 26, 2023, 6:46 p.m.