convertIdentifiersByVector: Convert pathway identifiers

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
convertIdentifiersByVector(pathway, conv.table)

Arguments

pathway

An object of class Pathway

conv.table

A data.frame, in which the first column contains the type and the identifiers present in the pathway separeated by : and the second column contains the new identifiers and the third columns contains the types of the new identifiers

Value

A Pathway with new identifiers of the nodes

Author(s)

Ivana Ihnatova

See Also

Pathway-class

Examples

1
2
3
4
5
g<-pathways("hsapiens","kegg")
ng<-sapply(g, function(x) length(nodes(x,"mixed")))
g<-g[[which.min(ng)]]
conv<-data.frame(orig=nodes(g,"mixed"), new=LETTERS[seq_len(min(ng))],newtype=rep("LETTERS",min(ng)))
gc<-convertIdentifiersByVector(g, conv.table = conv)@protEdges

ToPASeq documentation built on Nov. 8, 2020, 4:59 p.m.