Entering edit mode
Tim Smith
★
1.1k
@tim-smith-1532
Last seen 10.2 years ago
Hi,
Given a set of entrez IDs, I wanted to know their start and end
locations on the chromosome. I am using biomaRt, but get the following
error:
-------------------------------------------
> entrezID = "7471"
> getBM(attributes =
c('hgnc_symbol','chromosome_name','start_position',
+ 'end_position'),mart = ensembl, filters = 'with_entrezgene',
+ values = entrezID)
Error in getBM(attributes = c("hgnc_symbol", "chromosome_name",
"start_position", :
biomaRt error: with_entrezgene is a boolean filter and needs a
corresponding logical value of TRUE or FALSE to indicate if the query
should retrieve all data that fulfill the boolean or alternatively
that all data that not fulfill the requirement should be retrieved.
-------------------------------------------
I read the documentation and it said that this particular filter needs
a boolean value (error statement says the same), but it didn't say how
I was actually to set it. How do I go about doing this?
thanks!
[[alternative HTML version deleted]]
Hi James,
I am having similar problem with biomRt when I want to retrieve annotation for prob IDs from Affymetrix HTA2.0.
My code is as follow;
ensembl <- useMart("ensembl", dataset = "hsapiens_gene_ensembl")
filters <- listFilters(ensembl)
attributes <- listAttributes(ensembl)
genes <- getBM(attributes = c("affy_hta_2_0", "ensembl_gene_id","ensembl_transcript_id","external_gene_name","entrezgene", "gene_biotype","transcript_biotype", "go_id","strand","chromosome_name","status","transcript_status","transcript_length","description"),
filters = "with_affy_hta_2_0",
values = '2824546_st',
mart = ensembl)
I also tried to set the filter as "affy_hta_2_0" but failed to retrieve the annotation.
what the problem can possibly be ?
thanks.
Hossein