getBM error in R while retrieving IDs and missing GC values
0
0
Entering edit mode
7.5 years ago
manu.tiwari ▴ 10

Hi All

I am trying to retrieve attributes from BioMart in R and run into the following issue:

> ensAtt = getBM(attributes = "chromosome_name", "start_position", "end_position", values = eList, filters = "ensembl_gene_id", mart=ensembl, verbose = verbose)

The error message is: Error in filters[1] != "" && checkFilters : invalid 'y' type in 'x && y'

All the parameters are pre-defined and there are no missing values in my values=eList. Since the values=eList that I am using is a long list (>15000), so I have also tried breaking the it into smaller chunks values = eList[1:1000] but to no avail.

Also if I try to retrieve another attribute (GC content) using:

gc = getBM(attributes = "percentage_gene_gc_content", values = eList, filters = "ensembl_gene_id", mart=ensembl)

I don"t have any problems with the command although the returned data matrix has only 2608 values (instead of the expected >15000). Is it possible that ENSEMBL has no data for such IDs? Or I am missing something here.

Thank you for all your expected help.

Best M

R software error • 2.2k views
ADD COMMENT
0
Entering edit mode

Should it be attributes = c("chromosome_name", "start_position", ...)

ADD REPLY
0
Entering edit mode

Thanks for the hint. It works now.

ADD REPLY

Login before adding your answer.

Traffic: 2604 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6