Learn R Programming

SHIP (version 1.0.2)

target.help: Transform a list of Pathway IDs into a binary matrix.

Description

This function is an internal function used to transform the given list of $p$ (one vector of pathway IDs per gene) groups into a binary matrix.

Usage

target.help(genes)

Arguments

genes
List of $p$ items. Each item is the vector of Pathway IDs a gene belongs to.

Value

A $p x p$ binary matrix: the coefficient (i,j) is 1 if genes i and j belong to a common pathway and 0 otherwise. This is an internal function called by for example targetG.

See Also

targetF,targetG,targetGpos, targetGstar.

Examples

Run this code
g1 <- c("path1","path2","path3","path4")
g2 <- c("path5","path6","path3","path11")
g3 <- c("path10","path5","path12","path13")
target.help(list(g1,g2,g3)) 

Run the code above in your browser using DataLab