Template talk:Gene

From Wikipedia, the free encyclopedia

[edit] Broken?

Clicking this: THRA regenerates: "Unable to open remote file". Whereas manual entering "THRA" into the "quick gene search box" on link title still works. I can't find any information on the HUGO website on how to link. So I am not sure if it is a problem with their web site or with this template. Any ideas? Boghog2 05:20, 2 August 2007 (UTC)

  • I have sent hgnc@genenames.org a bug report (http://www.genenames.org/data/get_data.php?gd_app_sym=THRA doesn't work) with a request for reply. I report here their response once I receive it. Boghog2 05:32, 2 August 2007 (UTC)
    • It isn't just THRA -- the whole site seems to be down right now. --Arcadian 10:38, 2 August 2007 (UTC)
      • Working again. Sorry for the false alarm. Boghog2 20:53, 2 August 2007 (UTC)

[edit] Exact vs substring matches

I wanted to link to the "carbonic anhydrase I" HUGO gene with CA1 but as you see, it instead retrieves the record for "ABCA1 ". So the link:

http://www.genenames.org/data/hgnc_data.php?match=CA1

doesn't return what I want, however the following link:

http://www.genenames.org/data/hgnc_data.php?hgnc_id=1368

returns what I want.

Is there any way to modify the gene link to use the "HGNC ID" (as recommended here) instead of the gene name? For example:

{{gene|1368 CA1}} would link to hgnc_id=1368 but display CA1 in the wiki article. Or alternatively is there any way to force an exact string match? I experimented with several things including regular expressions, but nothing seems to work.

Cheers. Boghog2 23:38, 24 September 2007 (UTC)

  • OK, I created a new template:gene2 (e.g., {{gene2|CA1|1368}}) which seems to work: CA1. Boghog2 00:15, 25 September 2007 (UTC)