x2y_df2list {dSimer}R Documentation

convert x-y associations

Description

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

Usage

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

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)

[Package dSimer version 1.8.0 Index]