ogr2igraph: Integrates evolutionary rooting information and graphs.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/AllSupplements.R

Description

This function adds evolutionary rooting information to an 'igraph' class object.

Usage

1
ogr2igraph(ogr, cogdata, g, idkey = "ENTREZ")

Arguments

ogr

a processed object of class 'OGR' evaluated by the groot method.

cogdata

a data.frame with COG to protein mapping, with at least one gene annotation type listed in the 'rtni' object (e.g. ENTREZ gene ID).

g

a 'igraph' object.

idkey

a single character value specifying a vertex attribute name used to map 'cogdata' annotation to 'g'.

Value

Return an updated 'igraph' object with evolutionary root information.

Author(s)

Rodrigo Dalmolin, Mauro Castro, Sheyla Trefflich

References

Dalmolin RJ and Castro, MA. Geneplast: Evolutionary rooting using orthologous groups distribution. Journal Paper (in preparation), 2016.

See Also

OGR-class

Examples

1
2
3
4
5
6
## Not run: 
#This example requires the geneplast.data.string.v91 package! (currently available under request)
library(geneplast.data.string.v91)
data(gpdata_string_v91)

## End(Not run)

geneplast documentation built on Nov. 8, 2020, 7:57 p.m.