Learn R Programming

ToPASeq (version 1.6.0)

convertIdentifiersByVector: Function to convert identifiers in pathways by user specified vector

Description

The function converts identifiers of nodes in a pathway. It uses the user specified named vector for the conversion.

Usage

convertIdentifiersByVector(pathway, conv.table, id.type="unknown")

Arguments

pathway
An object of class Pathway
conv.table
A named vector in which names correspond to the identifiers present in the pathway and values are the new identifiers to which conversion happens
id.type
A character, the type of the identifiers provided e.g "TAIR" for TAIR numbers. This is for informative purposes only.

Value

A Pathway in which identifiers have been converted

See Also

convertIdentifiers

Examples

Run this code
g<-kegg[["Asthma"]]
conv<-setNames(paste("gene", 1:length(nodes(g)), sep=""), nodes(g))
gc<-convertIdentifiersByVector(g, conv, "dummy")
nodes(gc)
edges(gc)

Run the code above in your browser using DataLab