x2y_df2list: convert x-y associations

Description Usage Arguments Value Author(s) Examples

Description

concert x-y associations (e.g. disease-gene associations) from data.frame to list

Usage

1
x2y_df2list(x2ydf, xcol = 1, ycol = 2)

Arguments

x2ydf

data.frame of x-y associations

xcol

col of x in x2ydf

ycol

col of y in x2ydf

Value

a list of x-y associations

Author(s)

Peng Ni, Min Li

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
options(stringsAsFactors = FALSE)

d2g_fundo_sample<-read.table(text = "DOID:5218    IL6
DOID:8649  EGFR
DOID:8649	PTGS2
DOID:8649	VHL
DOID:8649	ERBB2
DOID:8649	PDCD1
DOID:8649	KLRC1
DOID:5214	MPZ
DOID:5214	EGR2
DOID:5210	AMH")

d2g_fundo_list<-x2y_df2list(d2g_fundo_sample)

PengNi/dSimer documentation built on May 8, 2019, 1:28 a.m.