Bioperl: HTML linking into blast?
Fri, 04 Dec 1998 18:50:20 -0800
Rubin Eitan <email@example.com> asked:
> I am trying to make web pages that will link to blast searches directly.
> The idea is to put a link on each sequence, so that the user (me, and
> only me) can pick a sequence and run it's blast in real time. Here is how
> my links look like:
> PROGRAM=blastn&DATALIB=nr&INPUT_TYPE=Accession or GI&SEQUENCE=X85404
Not sure if this is the answer (can't test it here), but you likely
need to escape the spaces, which for URLs is a "+" or %20 (depends
on your preference, I think). It's available automatically in
print CGI::escape("Accession or GI"), "\n";
Or in python's urllib <wink>
>>> import urllib
>>> urllib.quote("Accession or GI")
You might also be able to get away putting the whole URL in quotes,
if you haven't already, since your browser might not be seeing the
whole URL. Browsers usually will url encode nonstandard characters
if they see them in hrefs.
=========== Bioperl Project Mailing List Message Footer =======
Project URL: http://bio.perl.org/
For info about how to (un)subscribe, where messages are archived, etc: