Template:Infobox gene
Lua error in Module:Lua_banner at line 103: attempt to index field 'edit' (a nil value).
This is the Infobox gene template. The data in the infobox is sourced from wikidata. The lua implementation of this template is located at Module:Infobox_gene
Usage on a gene page[edit]
Append {{infobox_gene}} to the top of a gene page. The infobox is populated via the Wikidata item of the page it resides on. To view which wikidata item is linked to a page, follow the "Wikidata items" link from the "Tools" menu to the left of the article.
Usage on a protein page[edit]
Append {{infobox_gene}} to the top of a protein page. The infobox is populated by using the Wikidata item of the protein to find the encoded gene item and then uses the gene item to populate the infobox.
Usage on other pages[edit]
Any page can display the infobox even if it does not have a gene or protein interwiki link. The Wikidata item must be explicitly added as a parameter and the underlying module is invoked. For instance, appending
{{#invoke:Infobox_gene|getTemplateData|QID=Q414043}} to the top of any page will create an infobox for the gene RELN. QID is the wikidata gene item used to populate the infobox. Substitute the wikidata item id (QID) of interest as the QID parameter.
Error message[edit]
"An Error has occurred retrieving Wikidata item for infobox" Indicates a non gene/protein Wikidata item or an incomplete Wikidata item.
Categories[edit]
Including this template will automatically result in the addition of relevant categories based on the properties of the gene. These include Category:Human proteins and categories that correspond to the chromosome where the gene is located, such as Category:Genes on human chromosome 19. Other categories added manually to the article apart from the template will work as usual.
Data structure[edit]
Data structure of gene and protein data in Wikidata is a bit complex. Even if there is only one gene/protein article in Wikipedia, there are many data pages in Wikidata.
Basically Wikidata has distinct pages for gene and protein each, for respective species (See the table below). And pages are interconnected based on following rules.
- Wikipedia articles are connected to Wikidata's gene data page (#Case A) or protein data page (#Case B) through d:Help:Sitelinks. In most cases, articles are connected to gene data page.
- Gene and protein pages are interconnected through "encodes (d:P:P688)" and "encoded by (d:P:P702)" property claims (horizontal arrows "→", "←" in the table).
- Gene pages from different species are interconnected through "ortholog (d:P:P684)" property claims (vertical arrows "↑", "↓" in the table).
The data which infobox_gene shows to readers are collected from somewhere of this interconnected Wikidata pages.
Case A[edit]
In most cases, Wikipedia article page is connected to Human gene data page. For example, Sonic hedgehog.
| Wikipedia (Article) |
Wikidata (Gene) |
Wikidata (Protein) | |||
| Human | Wikipedia article page Sonic hedgehog |
→d:Help:Sitelinks→ ←d:Help:Sitelinks← |
Human gene data page SHH (d:Q14860072) |
→encodes (d:P:P688)→ ←encoded by (d:P:P702)← |
Human protein data page Sonic hedgehog (d:Q2477760) |
| ↑ ↓ ortholog (d:P:P684) ↑ ↓ |
|||||
| Mouse | Mouse gene data page Shh (d:Q14860079) |
→encodes (d:P:P688)→ ←encoded by (d:P:P702)← |
Mouse protein data page Sonic hedgehog (d:Q14860215) | ||
| ↑ ↓ ortholog (d:P:P684) ↑ ↓ |
|||||
| ⋮ | ⋮ | ⋮ |
Case B[edit]
In some cases, Wikipedia article page is connected to Human protein data page. For example, Reelin.
| Wikidata (Gene) |
Wikidata (Protein) |
Wikipedia (Article) | |||
| Human | Human gene data page RELN (d:Q414043) |
→encodes (d:P:P688)→ ←encoded by (d:P:P702)← |
Human protein data page Reelin (d:Q13561329) |
→d:Help:Sitelinks→ ←d:Help:Sitelinks← |
Wikipedia article page Reelin |
| ↑ ↓ ortholog (d:P:P684) ↑ ↓ |
|||||
| Mouse | Mouse gene data page Reln (d:Q14331135) |
→encodes (d:P:P688)→ ←encoded by (d:P:P702)← |
Mouse protein data page Reelin (d:Q14331165) |
||
| ↑ ↓ ortholog (d:P:P684) ↑ ↓ |
|||||
| ⋮ | ⋮ | ⋮ |
Data location[edit]
The followings are list of data which are used in this template. Showing data example and data location in the case of Sonic hedgehog.
| Data | Wikidata property |
Data example | Data location | Other | |||
|---|---|---|---|---|---|---|---|
| Human Gene Page |
Human Protein Page |
Mouse Gene Page |
Mouse Protein Page | ||||
| Q14860072 | Q2477760 | Q14860079 | Q14860215 | ||||
| Gene name | Label | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| Aliases | Aliases | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| HGNC gene symbol | P353 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ||||
| Entrez Gene ID | P351 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| Image | P18 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ||||
| Ensembl Gene ID | P594 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| UniProt ID | P352 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| EC number | P591 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| OMIM ID | P492 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ||||
| MGI ID | P671 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ||||
| HomoloGene ID | P593 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| PDB id | P638 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| Gene Atlas Image | P692 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ||||
| Gene ontology | P680 P681 P682 |
Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| RefSeq RNA ID | P639 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| RefSeq Protein ID | P637 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| Ensembl Transcript ID | P704 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| Chromosome | P1057 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| Chromosome number | P1813 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ||||
| Chromosome length | P2043 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ||||
| Chromosome category | P910 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ||||
| Cytogenetic location | P4196 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| Genomic start | P644 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| Genomic end | P645 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
| Strand orientation | P2548 | Lua error in Module:Wd at line 164: attempt to index field 'wikibase' (a nil value). | ● | ● | |||
Similar templates[edit]
- Template:Infobox protein
- Template:Infobox enzyme
- Template:Infobox protein family
- Template:Infobox nonhuman protein
- Template:GNF Protein box - historical
See also[edit]
- d:User:ProteinBoxBot - Enormous biomedical data in Wikidata are mostly posted and maintained by this bot
- Wikipedia:Gene Wiki
External links[edit]
- BioGPS, a site that allows for automated stub creation for human gene pages using this template
- Lua error in Module:Citation/CS1/Identifiers at line 1358: attempt to index field 'keywords_lists' (a nil value).
| The above documentation is transcluded from Template:Infobox gene/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |