Description Usage Arguments Details Functions
View source: R/typesPathways.R
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
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,
...
)
|
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 |
stat |
which stat to use for pathway weights. Can be a vector. If NULL (the default), all the available meaningful stats are used:
( |
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 |
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 |
... |
: 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. |
If n_steps is 3, only paths of length 3 will be listed. To get all paths of length 1 to 3, you need to pass 1:3 to n_steps. All vectors of integers are possible for n_steps.
If type.from
or type.to
are left unspecified, all pathways of the specified length to (resp. from) the specified type are listed.
Use at your own risk, as this can potentially result in very large objects.
get_type2typePath_raw
: Returns the list of connection tables (can be chained with tableChain2path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.