Re: Genes2GO and suggestions to make it faster
Sean Davis <sdavis2-2loH/[email protected]>
| Newsgroups | gmane.science.biology.informatics.conductor |
|---|---|
| Message-ID | <CANeAVBnDhzPA9QJsXUb85OY2=CHjdSxszv0j9ww6TzUo8ZYvkQ@mail.gmail.com> |
On Mon, Aug 18, 2014 at 8:52 AM, Konika Chawla <[email protected]> wrote: > Hi, > I have created this webapp (http://norstore-trd-bio0.hpc. > ntnu.no:8080/Genes2GO/clearpage.do) to makes a binary matrix between user > specified genes and user selected GO term to represent the gene annotations > by either 1 or 0. Users can also specify just some query terms and the > program will find the related GO terms. > Its small and useful tool for biologists. > > The tools uses annotation data from biomaRt and GO.DB to find GO terms. > 1) The tool is bit slow sometimes. Any suggestion to make it faster would > be helpful. > A small part of code is > "ensembl = useMart("ensembl", dataset = organism) > godata<-getBM(attributes = c(list_type,"go_id","name_1006"), filters = > list_type, values = genelist[,1], mart = ensembl) > godata<-trim(as.matrix(godata))" > I'd suggest eliminating the biomaRt call in the webapp. Simply use biomaRt to get all results for all genes and then do the filtering in R. The call to biomaRt will almost certainly be the most time-consuming process. > > 2) Is it possible to show a progress bar on the webpage which could > represent how much time is remaining to finish the process. That is if we > can know how much time the process is going to take. As written above, that probably will not be possible. In general, to make a progress bar, you'll need to be able to measure progress somehow and that really isn't possible with biomaRt. Sean [[alternative HTML version deleted]] _______________________________________________ Bioconductor mailing list [email protected] https://stat.ethz.ch/mailman/listinfo/bioconductor Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor