[Jalview-discuss] Re: linkUrl and regexp
James Procter
jimp at compbio.dundee.ac.uk
Tue Sep 9 15:19:19 BST 2008
Sebastien MORETTI wrote:
> Many thanks !
> Both strategies work, non-positional features within the tooltip & with
> linkURL.
great!
>
> I have kept linkLabel_1/linkUrl_1 only because I think it is easier for
> users and I have no feature file to create.
Understandable, and I agree. Non-positional links now serve almost the
same purpose, but they do have the advantage of offloading the
additional sequence metadata into another file, rather than stuffing it
all into the description line.
> <param name="linkLabel_1" value="Ensembl" />
> <param name="linkUrl_2"
> value="http://www.ensembl.org/Homo_sapiens/searchview?species=;idx=;q=\$SEQUENCE_ID=/GENEID=(\\w+)
> TAXID/=\$" />
>
> Maybe you have to specify in the documentation that regexp in
> $SEQUENCE_ID have to be back-slash protected following computer
> languages used to make applet parameters.
Normally, this is not necessary. Are you talking about when the applet
tag is generated within a Perl CGI script ? (then all $ within double
quoted strings must be escaped)
If you escape the '$' and set the debug flag (param name="debug"
value="true") then jalviewLite raises an error because it cannot parse
the value of the linkURL_2 as a valid sequence ID regex link (in this
case it is because the /=$ cannot be found).
> p.s.: We will send you something for Christmas ;-)
>
I'll look forward to it!
thanks for your patience, again...
Jim
More information about the Jalview-discuss
mailing list