User:ProteinBoxBot/201409 sprint

From Wikidata
Jump to navigation Jump to search

Overall summary[edit]

Our goal is to make Wikidata the canonical resource for referencing and translating these identifiers. The goal of this sprint is to:

  1. continue adding all identifiers for human genes and proteins from User:ProteinBoxBot/201408 sprint.
  2. Create a generic workflow for additional resources
  3. Create an update bot

Participants[edit]

Background info[edit]

Links[edit]

  • Search for a property ID: www.wikidata.org/w/api.php?action=wbsearchentities&search=<property>&language=en&type=property (e.g. Entrez)

Original source data files[edit]

(all information coming in via http://mygene.info )

Game plan[edit]

Overview[edit]

  1. Separate two bot functions: 1) creating stubs, 2) adding additional properties and updating; confirm that both can use the Wikidata API on the Entrez Gene property
  2. Add the remain entrez genes as stubs in WikiData
  3. create infrastructure for continuously-running update bot

Separate two bot functions[edit]

In this sprint three bots have been developed:

  1. EntrezGeneStubBot.py
  2. addMyGeneInfoProteinBoxBot.py
  3. geneProteinCorrectionBot.py

EntreGeneStubBot[edit]

This bot takes a text file containing Entrez Gene Identifiers and their labels as input. Subsequently the label of each Entrez gene identifier is added to WikiData if it doesn't exist already. Three properties are added:

  1. The Entrez Gene Identifier (Property:P351)
  2. Subclass of Gene (Property:P279 and Q7187)
  3. Found in Taxonomy Human (Property:P703 and Q5)

It took about a week for the StubBot to process all of Entrez Gene. A log file is kept registering Entrez Gene Ids and their respective WikiData ID: Entrez2WikiData_Success.log

addMyGeneInfoProteinBoxBot[edit]

Once the stubs are created for the Entrez Gene entries, a second bot takes over to enrich with content provided by http://mygene.info. When writing this update this bot is still running and covered 34% in one week.

geneProteinCorrectionBot[edit]

The third bot written during this bot, was to correct an error that was made in last months sprint. In the first development stages the bot did not check whether or not an entry for the entry gene label already existed in WikiDatam, but annotated as another subclass of ...., than Gene. This error made around 200 erroneous additions. The geneProteinCorrectionBot fixed this. This bot is a bot that is only needed once, since in the latest ProteinBoxBot code, the bug responsible is fixed.