0
4.7 years ago by
hpw90
United States
hpw90 wrote:

Hi,

I have been using DAVID for a while now, but I am totally new to the DavidWebService package for R.

I load the package and initiate the analysis in a similar way to what is used as an example in the vignette for connectivity basic work flow:

R> library("RDAVIDWebService")
R> david<-DAVIDWebService\$new(email="user@inst.org")
R> data(demoList1)
+ idType="AFFYMETRIX_3PRIME_IVT_ID",
+ listName="demoList1", listType="Gene")
R> result

The problem is the data() command. The above example uses the integrated demoList1 example dataset which contains geneids as a character vector.

I have uploaded a simple csv file containing a list of 2000 gene IDs (corresponding to OFFICIAL_GENE_SYMBOL), which of course loads as a dataframe, which I call 'genelistdavid'. However, when I run

data(genelistdavid)

Warning message:
In data(genelistdavid) : data set ‘genelistdavid’ not found

The same thing happens when I create a new character vector from genelistdavid using as.character().

Does anyone have a fix for this failure to load my genelist into the david environment? Thanks so much.

modified 4.7 years ago by Dan Tenenbaum8.2k • written 4.7 years ago by hpw90
0
4.7 years ago by
Dan Tenenbaum8.2k
United States
Dan Tenenbaum8.2k wrote:

data() reads in a serialized (saved) R object, in this case a character vector. For reading in a csv file, you want to use read.csv().

Enter

?read.csv

to get help on this function.

Dan