Question: RDAVIDWebService Package - Uploading a gene list using data()
0
gravatar for hpw9
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)
R> result<-addList(david, 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)

I receive the following error:

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.

 

ADD COMMENTlink modified 4.7 years ago by Dan Tenenbaum8.2k • written 4.7 years ago by hpw90
Answer: RDAVIDWebService Package - Uploading a gene list using data()
0
gravatar for Dan Tenenbaum
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

 

ADD COMMENTlink written 4.7 years ago by Dan Tenenbaum8.2k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 330 users visited in the last hour