Jump to content

Module talk:Infobox gene

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Boghog (talk | contribs) at 06:43, 26 April 2023 (Human UniProt search error: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconInfoboxes
WikiProject iconThis module is within the scope of WikiProject Infoboxes, a collaborative effort to improve the coverage of Infoboxes on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
WikiProject iconMolecular Biology: Genetics Template‑class
WikiProject iconThis module is within the scope of WikiProject Molecular Biology, a collaborative effort to improve the coverage of molecular biology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis module does not require a rating on Wikipedia's content assessment scale.
Taskforce icon
This module is supported by the Genetics task force.

Template-protected edit request on 21 July 2022

Change Line 2833 from

result_GOID = entity:formatPropertyValues(propertyID_child, mw.wikibase.entity.claimRanks).value

to

result_GOID = entity:formatPropertyValues(propertyID_child, {mw.wikibase.entity.claimRanks.RANK_NORMAL}).value

This should fix an issue where items with depreciated GOIDs listed in Wikidata generate non-functional links with unexpected display text, such as what is visible on Lactoferrin. WelpThatWorked (talk) 15:17, 21 July 2022 (UTC)[reply]

You say "should fix an issue..." This module is used on thousands of pages. Has this been tested? P.I. Ellsworth , ed. put'r there 22:01, 21 July 2022 (UTC)[reply]
I've tested the change with the sandbox console to generate infoboxes for several pages that currently use it, and it has generated the output I expected each time, with the only change being that entities with depreciated GOID entries display correctly, linking to the "normal" ranked GOID, rather than generating a broken link. It relies on the GOID rankings on wikidata being set properly, but they're already set correctly for every entity I've checked so far, and if there are any that aren't, the resulting output would not be more broken than it already is. Is there any other testing I should do? WelpThatWorked (talk) 23:57, 21 July 2022 (UTC)[reply]
That should do it, hopefully, and  done. P.I. Ellsworth , ed. put'r there 05:09, 22 July 2022 (UTC)[reply]

Request to uncollapse ""Orthologs" data

@Paine Ellsworth: Thanks for including the mouse gene expression and updating Bgee links. A side effect of these edits is that the "RNA expression pattern" is displayed uncollapsed and the "Orthologs" data is displayed collapsed. In my opinion, the "RNA expression pattern" data, while useful is probably of lower importance than the external links to Entrez, UniProt, etc. contained in the "Orthologs" table. Furthermore, the "Orthologs" data in the past has never been collapsed. I have been able to collapse the "RNA expression pattern" table in this edit. But I cannot figure out how to uncollapse the "Orthologs" table. (Your edits did not seem to involve this table, so I am really puzzled why this table is now collapsed). I would appreciate if you could restore the "Orthologs" data to its default uncollapsed state. Thanks. Boghog (talk) 09:24, 24 July 2022 (UTC)[reply]

Opps! Never mind. I figured it out and implemented in this edit. Boghog (talk) 09:35, 24 July 2022 (UTC)[reply]
 Acknowledged. P.I. Ellsworth , ed. put'r there 09:46, 24 July 2022 (UTC)[reply]

Initial disclaimer: I am the Lead Developer of Expression Atlas and Single Cell Expression Atlas web applications (https://www.ebi.ac.uk/people/person/alfonso-munoz-pomer-fuentes/).

A couple of years ago a proposal to add Expression Atlas to the infobox was briefly discussed. I’d like to bring the topic back, and gauge how much interest there is in the community. I’ve been hacking around the Lua code and I got to add three useful links for a given gene: bulk baseline expression (e.g. mRNA-seq experiments), bulk differential expression (e.g. microarray experiments) and single-cell expression (single cell RNA-seq).

See an example below. Feel free to offer any suggestions. I’m not very knowledgeable in Lua, but I tried to follow the conventions I saw in the module.

File:Infobox gene (sandbox) with Expression Atlas links.pngAlfonso Muñoz-Pomer Fuentes (talk) 16:44, 4 August 2022 (UTC)[reply]

Template-protected edit request on 2 March 2023

Error: [778:86] invalid escape sequence near '\:' مهدی بهرامی مطلق (talk) 16:29, 2 March 2023 (UTC)[reply]

Not sure where you saw this error, but I believe \: and \; are not required, please check diff — Martin (MSGJ · talk) 21:51, 3 March 2023 (UTC)[reply]
That was a massive and very productive edit! I didn't check all the details but it looked good and fixed the reported problem. Johnuniq (talk) 01:10, 4 March 2023 (UTC)[reply]
Had my Lua-challenged mind puzzled! Seems that the error is found in the [edit screen]. Click on the red x-box at the bottom of the edit screen to actually see the error. That does not appear in the sandbox's edit screen. P.I. Ellsworth , ed. put'er there 07:42, 4 March 2023 (UTC)[reply]
 Done * Pppery * it has begun... 22:14, 4 March 2023 (UTC)[reply]

Human UniProt search error

I am not sure if this is a problem in Infobox gene or Wikidata, but the rendering of the Human UniProt search link in Mucin-1 is not right. Does anyone have any idea how to fix this? Thanks. Boghog (talk) 06:43, 26 April 2023 (UTC)[reply]