annotReciprocal: annotReciprocal

Description Usage Arguments Value Author(s) Examples

View source: R/compareAnalysis.R

Description

This function notes edges of a graph as reciprocal or not.

Usage

1
2
  annotReciprocal(dataGraph, file,
    keepOnlyReciprocal = FALSE)

Arguments

dataGraph

data.frame which contains the graph description, must have two columns n1 and n2 filled with node IDs, each row denoting there is an edge from n1 to n2.

file

file where the graph description is written

keepOnlyReciprocal

if TRUE dataGraph is restricted to reciprocal edges, else all edges are kept (default).

Value

This function returns the argument dataGraph with an additional column named 'reciprocal' which contains TRUE if the edge described by the row is reciprocal, and FALSE if it is not reciprocal.

Author(s)

Anne Biton

Examples

1
2
dg <- data.frame(n1=c("A","B","B","C","C","D","E","F"),n2=c("B","G","A","B","D","C","F","E"))
annotReciprocal(dataGraph=dg)

Bioconductor-mirror/MineICA documentation built on May 29, 2017, 8:30 a.m.