模板:Infobox gene/doc
| 此頁面是Template:Infobox gene的模板文件。 此頁面可能包含了模板的使用說明、分類和其他內容。 |
| 此模板文件被引用於許多頁面。 為了避免造成大規模的影響,所有對此模板文件的編輯應先於沙盒、測試樣例或您的沙盒上測試。 測試後無誤的版本可以一次性地加入此模板文件中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
| 此模板使用Lua語言: |
這是基因資訊框(Infobox gene)模板。資訊框中的資料來源於維基數據。該模板的Lua語言的實現位於模塊:Infobox gene。
在基因文章頁面的使用
[編輯]在基因文章頁面頂部添加{{infobox gene}}。該資訊框通過其所在頁面的維基數據項填充。要查看連結到頁面的維基數據項,請點擊文章左側「工具」菜單中的「維基數據項」連結。
在蛋白質文章頁面的使用
[編輯]在蛋白質頁面頂部添加{{infobox gene}}。資訊框的填充方式是:使用蛋白質的維基數據項查找編碼的基因項,然後使用該基因項填充資訊框。
在其它頁面的使用
[編輯]即使沒有基因或蛋白質的跨維基連結,任何頁面都可以顯示資訊框。必須將維基數據項明確添加為參數,並調用底層模塊。例如,附加代碼
{{#invoke:Infobox_gene|getTemplateData|QID=Q414043}}在任何頁面頂部都會為基因絡絲蛋白基因(RELN)創建一個資訊框。QID是用於填充資訊框的維基數據基因項。請將您感興趣的維基數據項ID (QID) 替換為QID參數。
錯誤資訊
[編輯]「檢索資訊框的維基數據項時發生錯誤」(「An Error has occurred retrieving Wikidata item for infobox」)表示非基因/蛋白質維基數據項或不完整的維基數據項。
分類
[編輯]包含此模板將自動根據基因的屬性添加相關分類。這些類別包括「分類:人類蛋白質」以及與基因所在染色體對應的類別,例如「分類:(位於)人類第19號染色體上的基因」。除模板外,手動添加到文章的其他類別將照常運行。
資料結構
[編輯]
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 (#情況一) or protein data page (#情況二) 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.
情況一
[編輯]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) ↑ ↓ |
|||||
| ⋮ | ⋮ | ⋮ |
情況二
[編輯]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) ↑ ↓ |
|||||
| ⋮ | ⋮ | ⋮ |
資料位置
[編輯]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 | ● | ● | ||||
| Aliases | Aliases | ● | ● | ||||
| HGNC gene symbol | P353 | ● | |||||
| Entrez Gene ID | P351 | ● | ● | ||||
| Image | P18 | ● | |||||
| Ensembl Gene ID | P594 | ● | ● | ||||
| UniProt ID | P352 | ● | ● | ||||
| EC number | P591 | ● | ● | ||||
| OMIM ID | P492 | ● | |||||
| MGI ID | P671 | ● | |||||
| HomoloGene ID | P593 | ● | ● | ||||
| PDB id | P638 | ● | ● | ||||
| Gene Atlas Image | P692 | ● | |||||
| Gene ontology | P680 P681 P682 |
● | ● | ||||
| RefSeq RNA ID | P639 | ● | ● | ||||
| RefSeq Protein ID | P637 | ● | ● | ||||
| Ensembl Transcript ID | P704 | ● | ● | ||||
| Chromosome | P1057 | ● | ● | ||||
| Chromosome number | P1813 | ● | |||||
| Chromosome length | P2043 | ● | |||||
| Chromosome category | P910 | ● | |||||
| Cytogenetic location | P4196 | ● | ● | ||||
| Genomic start | P644 | ● | ● | ||||
| Genomic end | P645 | ● | ● | ||||
| Strand orientation | P2548 | ● | ● | ||||
相似模板
[編輯]- Template:Infobox protein
- Template:Infobox enzyme
- Template:Infobox protein family
- Template:Infobox nonhuman protein
- Template:GNF Protein box — 歷史
參閱
[編輯]- d:User:ProteinBoxBot — 維基數據中的大量生物醫學資料大部分由該機器人發布和維護
- 維基百科:基因維基
外部連結
[編輯]- BioGPS,一個允許使用此模板自動創建人類基因頁面存根的網站
- Huss, Jon W; Orozco, Camilo; Goodale, James; Wu, Chunlei; Batalov, Serge; Vickers, Tim J; Valafar, Faramarz; Su, Andrew I. A Gene Wiki for Community Annotation of Gene Function. PLoS Biology. 8 July 2008, 6 (7): e175. PMID 18613750. doi:10.1371/journal.pbio.0060175
.