selectRoiSet: Select a set of ROIs from a ROI hierarchy as the one...

Description Usage Arguments Value See Also

View source: R/rois.R

Description

Select a set of ROIs from a ROI hierarchy as the one generated by getRoiTree

Usage

1
2
3
4
5
6
selectRoiSet(
  roiTree = getRoiTree(),
  default_level = 2,
  exceptions = NULL,
  exceptionLevelMatch = default_level
)

Arguments

roiTree

A ROI hierarchy table as returned by getRoiTree

default_level

An integer specifying which ROI level to use by default

exceptions

A list of the form list(nameOfRoi = level) where nameOfRoi is the name of ROIs at level exceptionLevelMatch for which one want to use a different level of description

exceptionLevelMatch

What level to use in the exceptions list. Can be either a scalar or a vector the same length as exceptions

Value

a data.frame with the same columns as those returned by getRoiTree with an extra roi column containing the desired set

See Also

getRoiTree


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