convertIdentifiersByVector {ToPASeq} | R Documentation |
This function converts identifiers of nodes in a pathway. It uses the user specified named vector for the conversion.
convertIdentifiersByVector(pathway, conv.table)
pathway |
An object of class |
conv.table |
A data.frame, in which the first column contains the type
and the identifiers present in the pathway separeated by |
A Pathway
with new identifiers of the nodes
Ivana Ihnatova
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