I have built UI, its like a search engine for BioProcess/Disease–> Genes. e.g., User can query: “Stem Cells” or “brain tumor”and in result it will give 50 to 5000 GeneIDs (essentially those are Numbers representing a uniqe Gene at NCBI database) .
Its free, you can try at : http://proteogenomics.musc.edu/genemesh/
Now, the problem is I am liking those GeneIDs to a NCBI site at once. For upto 200 or 400 GeneIDs I can get result fine. But for more than 500 GeneIDs I can get “URI TOO LARGE” error or somehow NCBI website can not accept huge query. I am trying to resolve this problem.
Can Javascript, OnClick write a file in UNIX /tmp file? or is there any better solution to this?
Any help/guidelines are great at this point…
thank you so much in advance,
Saurin
URL too LONG:
If you cannot use a cookie, the url is too long. Write the data to a temp table in a database. Once the data is saved out, send back an ID, pass that via the URL. You can do this via a web service call without too much of an issue.
Also, put a timestamp on the table, prune out old data after a set period of time.