convertIdentifiersByVector {ToPASeq} | R Documentation

## Convert pathway identifiers

### Description

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

### Usage

    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

    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

[Package ToPASeq version 1.21.1 Index]