redefine_types: Redefine types in a table/neuronBag

Description Usage Arguments Details Value See Also

View source: R/retyping.R

Description

Redefine types in a table/neuronBag

Usage

1
2
3
4
5
6
7
redefine_types(
  connections,
  retype_func,
  postfix = c("raw", "from", "to"),
  redefinePartners = TRUE,
  ...
)

Arguments

connections

A connection table or a neuronBag object

retype_func

A function taking connections and postfix as argument generating new type names from the table

postfix

One of "raw, "to" or "from". Specify if type (and name) columns in table to be modified are postfixed with to and from or nothing

redefinePartners

If table is a neuronBag, should the partners also be retyped?

...

Extra parameters to be passed to retype_func

Details

This is a low level functions. In most use cases, you can use lateralize_types or redefineTypeByName instead

Value

A data frame or neuronBag with the columns type_col updated.

See Also

lateralize_types, redefineTypeByName


jayaraman-lab/neuprintrExtra documentation built on Dec. 20, 2021, 10 p.m.