lateralize_types: Retype neurons in a table according to L/R

Description Usage Arguments Examples

View source: R/retyping.R

Description

Retype neurons in a table according to L/R

Usage

1
2
3
4
5
6
lateralize_types(
  connections,
  postfix = c("raw", "to", "from"),
  typeList = NULL,
  redefinePartners = TRUE
)

Arguments

connections

Connectivity table or neuronBag to modify

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

typeList

: which types to lateralize (by default all the neurons which names contains L or R)

redefinePartners

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
PFLNames <- getTypesTable(c("PFL1","PFL2","PFL3"))

## Rename only PFL2
PFLNames2 <- lateralize_types(PFLNames,postfix="raw",typeList=c("PFL2"))

##Rename all PFLs
PFLNames3 <- lateralize_types(PFLNames,postFix="raw")

## End(Not run)

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