adj2graphml: Export an Adjacency Matrix to a graphml file

Description Usage Arguments Value References

View source: R/adj2graphml.R

Description

Saves a weighted adjacency matrix to a graphML using a specified minimum threshold. The resulting graphml file can be visualized with programs such as Cytoscape

Usage

1
2
adj2graphml(adjMat, filename = "network.graphml", nodeAttributes,
  threshold = 0.5)

Arguments

adjMat

A weighted adjacency matrix

filename

Filename for the saved network.

nodeAttributes

Data frame containing additional node information.

threshold

Minimum threshold needed to create an edge.

Value

An igraph object of the input adjecency network.

References

https://github.com/iscb-dc-rsg/2016-summer-workshop/blob/master/3B-Hughitt-RNASeq-Coex-Network-Analysis/tutorial/README.Rmd


wfondrie/fondrie documentation built on May 4, 2019, 5:22 a.m.