get_type2typePath: Builds a data frame of pathways between 2 collections of...

Description Usage Arguments Details Functions

View source: R/typesPathways.R

Description

Builds a data frame of pathways between 2 collections of types get_type2typePath returns a pathway table, whereas get_type2typePath_raw returns a list of connection tables

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
get_type2typePath(
  type.from = NULL,
  type.to = NULL,
  by.roi = TRUE,
  ROI = NULL,
  n_steps = 2,
  renaming = NULL,
  stat = NULL,
  excludeLoops = TRUE,
  addContraPaths = FALSE,
  thresholdPerROI = NULL,
  computeKnownRatio = FALSE,
  chunkPath = FALSE,
  addRecursive = FALSE,
  overruleThreshold = Inf,
  ...
)

get_type2typePath_raw(
  type.from = NULL,
  type.to = NULL,
  by.roi = TRUE,
  ROI = NULL,
  n_steps = 2,
  renaming = NULL,
  addContraPaths = FALSE,
  thresholdPerROI = NULL,
  computeKnownRatio = FALSE,
  overruleThreshold = Inf,
  ...
)

Arguments

type.from

a metadata data.frame for a set of neurons (typically generated by a search or a getTypesTable call) to start from

type.to

a metadata data.frame for a set of neurons (typically generated by a search or a getTypesTable call) to arrive to

by.roi

return results by ROI or just global weights?

ROI

which ROIs to consider. Can be a vector of ROI names, a list of vectors of ROI names, or NULL. If NULL (the default), consider all ROIs. If a character vector, restrict to those ROIs. If a list, each element of the list will be ROI that will be combined together (and named as the element name in the list) using combineRois

renaming

a renaming function to use (by default cxRetyping)

stat

which stat to use for pathway weights. Can be a vector. If NULL (the default), all the available meaningful stats are used: ("weightRelative","outputContribution","knownWeightRelative","knownOutputContribution","knownOutputContribution_perType","knownWROutputContribution_perType","knownWeightRelative_perType")

excludeLoops

Logical, whether to exclude paths containing duplicates (TRUE by default)

addContraPaths

Experimental: simulate the opposite side of the brain assuming symetry. The new ROI will be called roi_contra. Only ROIs containing "(R)" in their name will be considered

thresholdPerROI

Optional filtering of the connection tables to limit to types containing at least thresholdPerROI synapses of the right polarity in the ROI considered

computeKnownRatio

Compute total relative metrics at each step (this is slow)

chunkPath

Chunking argument to be passed to the function chaining the connection tables together. Useful for deep pathways. Can either be logical, or an integer specifying the number of connections in the starting table to process at once.

addRecursive

Whether or not to add the recursive paths (of length greater than n_steps) present in the connection tables generated.

...

: to be passed to neuronBag when building the path

n_step

an integer or vector of integers. If a vector paths of all those lenghts will be listed.

Details

Functions


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