hemibrain_cbf: Return consistent cell body fiber annotation for neurons

View source: R/hemibrain_annotations.R

hemibrain_cbfR Documentation

Return consistent cell body fiber annotation for neurons

Description

Return consistent cell body fiber annotation for neurons

Usage

hemibrain_cbf(x, ..., meta = FALSE)

Arguments

x

A vector of bodyids, a query or a data.frame compatible with neuprint_ids

...

Additional arguments passed to neuprint_get_meta

meta

Whether to return just the name of the cell body fibers (when meta=FALSE, the default) or a data frame with additional metadata, as returned by neuprint_get_meta.

Details

New style cell body fiber names are of the form ADL01 and match the regular expression '([AP][DV][ML][0-9]+)'. As of hemibrain v1.0.1 these seem to be variably located in the cellBodyFiber and instance fields and in some cases are missing from both.

Value

a vector of new style cell body fiber names or a data.frame (as returned by neuprint_get_meta with an extra column cbf containing the preferred cell body fiber names).

See Also

neuprint_get_meta, neuprint_ids

Examples


# these are all one lineage but some missing tract info
table(hemibrain_cbf("adPN"), useNA = 'ifany')
# Do these come from two different hemilineages?
table(hemibrain_cbf("lPN"))


natverse/hemibrainr documentation built on Nov. 27, 2024, 9:01 p.m.