OrderNames {CoDiNA}R Documentation

OrderNames

Description

Sorts each link's Nodes by the smallest value. Removes links that both nodes are the same.

Usage

OrderNames(M)

Arguments

M

data.frame to have the names ordered. Node.1, Node.2 and correlation value.

Value

a data.table whith Node.1 and Node.2, sorted by the smallest value between both.

Author(s)

Deisy Morselli Gysi <deisy at bioinf.uni-leipzig.de>

Examples

Nodes = LETTERS[1:10]
Z = data.frame(Node.1 = sample(Nodes) ,
Node.2 = sample(Nodes), cor = runif(10,-1,1))
OrderNames(Z)


[Package CoDiNA version 1.1.2 Index]