FindOverlap: Given a list of two pathway results, find the overlap between...

Description Usage Arguments Value

View source: R/stat-methods.R

Description

The result of the spatial pathway identification is a two-column matrix, where each row represents the numeric identifiers of the causal direction of the pathway, so 1 4 3 2 would indicate there is a pathway from component 1 to 4, and from 3 to 2. If we use multiple methods to find these, it is useful to find the overlap - pathways reported from both methods. This method does that, effectively taking the intersection of the two matrices and returning the results in a similar matrix.

Usage

1
FindOverlap(results, remove = c("same", "different"))

Arguments

results

A list containg two 'pathway' matrices

remove

Which results to keep: if "same" then 1 1 would be reported but 1 2 discarded, but if "different" then 1 2 would be reported but 1 1 discarded (useful for finding pathways that don't go from same component to same component)

Value

A matrix showing common pathways.


kieranrcampbell/SpatialStats documentation built on May 18, 2017, 7:44 p.m.