pairsAsPropensMatr: Convert Pairs of Node-Names to Non-Oriented Propensity Matrix
Description
Numerous network query tools produce a listing of pairs of nodes (with one pair of nodes per line).
Using this function such a matrix (or data.frame) can be combined to this more comprehensive view as propensity-matrix.
(matrix) main input, matrix of interaction partners with each line as a separate pair of nodes;
the first two columns should contain identifiers of the nodes
silent
(logical) suppress messages
debug
(logical) additional messages for debugging
callFrom
(character) allow easier tracking of messages produced
Details
Note, this has been primarily developed for undirected interaction networks, the resulting propensity-matrix does not show any orientation any more.
In a number of applications (eg in protein-protein interaction networks, PPI) the resulting matrix may be rather sparse.