Using wildcard with BiomaRt:getBM
1
0
Entering edit mode
Daren Tan ▴ 190
@daren-tan-3105
Last seen 10.2 years ago
Hi, I need to obtain information via biomaRt for all members of interleukin. Trying the following command failed, apparently, getBM doesn't support regexp. I could download all the gene names and filter locally, but this will stress the hosting server and prolong communication time. getBM(attributes=c("hgnc_symbol, "start_position"), filter="hgnc_symbol", values="IL.*", mart=ensembl)
biomaRt biomaRt • 1.3k views
ADD COMMENT
0
Entering edit mode
@steffenstatberkeleyedu-2907
Last seen 10.2 years ago
Hi Daren, Wildcards don't work. I would query for all genes and then subselect in R. This is not too heavy on the server as it is made for these type of batch queries (you could store the result so you don't have to do it again for a while): ensembl = useMart("ensembl", dataset="hsapiens_gene_ensembl") ids = getBM(attributes=c("hgnc_symbol","chromosome_name", "start_position"), mart=ensembl) should do it. Cheers, Steffen > > Hi, > > I need to obtain information via biomaRt for all members of interleukin. > Trying the following command failed, apparently, getBM doesn't support > regexp. I could download all the gene names and filter locally, but this > will stress the hosting server and prolong communication time. > > getBM(attributes=c("hgnc_symbol, "start_position"), filter="hgnc_symbol", > values="IL.*", mart=ensembl) > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: > http://news.gmane.org/gmane.science.biology.informatics.conductor >
ADD COMMENT
0
Entering edit mode
Thanks steffen for the assurance. I will try your suggestion. > Date: Tue, 25 Nov 2008 20:56:31 -0800> Subject: Re: [BioC] Using wildcard with BiomaRt:getBM> From: steffen@stat.Berkeley.EDU> To: daren76@hotmail.com> CC: bioconductor@stat.math.ethz.ch> > Hi Daren,> > Wildcards don't work. I would query for all genes and then subselect in R.> This is not too heavy on the server as it is made for these type of batch> queries (you could store the result so you don't have to do it again for a> while):> > ensembl = useMart("ensembl", dataset="hsapiens_gene_ensembl")> ids = getBM(attributes=c("hgnc_symbol","chromosome_name",> "start_position"), mart=ensembl)> > > should do it.> > Cheers,> Steffen> > > >> > Hi,> >> > I need to obtain information via biomaRt for all members of interleukin.> > Trying the following command failed, apparently, getBM doesn't support> > regexp. I could download all the gene names and filter locally, but this> > will stress the hosting server and prolong communication time.> >> > getBM(attributes=c("hgnc_symbol, "start_position"), filter="hgnc_symbol",> > values="IL.*", mart=ensembl)> >> > _______________________________________________> > Bioconductor mailing list> > Bioconductor@stat.math.ethz.ch> > https://stat.ethz.ch/mailman/listinfo/bioconductor> > Search the archives:> > http://news.gmane.org/gmane.science.biology.informatics.conductor> >> _________________________________________________________________ [[elided Hotmail spam]] [[alternative HTML version deleted]]
ADD REPLY

Login before adding your answer.

Traffic: 606 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