check.path: Check if two genes belong to any common KEGG pathway.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/check.path.R

Description

Takes as arguments two vectors of IDs and test whether they have a common ID.

Usage

1
check.path(p1, p2)

Arguments

p1

Vector of pathways that gene 1 belongs to.

p2

Vector of pathways that gene 2 belongs to.

Value

Return 0 if the two genes don't belong to a common pathway, return 1 otherwise. This is an internal function used by the function target.help.

Author(s)

Monika Jelizarow and Vincent Guillemot

See Also

target.help

Examples

1
2
3
4
5
g1 <- c("path1","path2","path3","path4")
g2 <- c("path5","path6","path3","path11")
g3 <- c("path10","path5","path12","path13")
check.path(g1,g2) # 1
check.path(g1,g3) # 0

SHIP documentation built on May 1, 2019, 8:29 p.m.