rename.genes: Rename Genes To A Graph

Description Usage Arguments Examples

View source: R/tools.R

Description

This function renames genes of a previously learned graph.

Usage

1
2
3
4
5
6
7
rename.genes(
  g,
  genes,
  new.names,
  to = c("igraph", "adjacency", "edges", "graph", "bnlearn"),
  from = c("auto", "adjacency", "edges", "graph", "igraph", "bnlearn")
)

Arguments

g

Graph object.

genes

Genes to be renamed (vector).

new.names

New names (vector, in the same order).

to

Output format (optional): 'adjacency', 'edges', 'graph', 'igraph', or 'bnlearn'. Default: 'igraph'

from

Input format (optional): 'auto', 'adjacency', 'edges', 'graph', 'igraph', or 'bnlearn'. Default: 'auto'

Examples

1
g <- rename.genes(g, c('A', 'B', 'C'), c('Cd74', 'Ldhc', 'Tlx3'))

rlebron-bioinfo/gnlearn documentation built on July 25, 2020, 12:38 p.m.