Skip to content

Log book

What we did, tried, and accomplished during each day of the project.

03/09

04/09

  • Reconciled cell type, tissue and organ using the preprocessing script and associated functions, returning all matches.

05/09

  • Made a script, similarity_check.py, to better match Panglao's items to wikidata QIDs, ran the script and the results are in results/true_matches/.

06/09

  • Refactored the similarity function, to use less repetition

  • Added matching section for genes in preprocessing.py, the matching is done using a manual merge with the wikidata query.

07/09

  • Started work on manual item checking

Manual item checking

  • cells_checked:

    • Q7840744 - Trychocyte - represents the Algae cell type, not the human cell type (Q7840748), match removed.
    • Not false matched but something of note, Q7116107, Q3326185 and Q66592566 all represent the same concept, oxyphil cells.
  • tissues_checked:

    • Q5173237 refer to the outer layer of rocks, removed.
    • Q1475019 and Q18816500 (Colon) refer to the grammatical figure, both removed.
    • Q96377210 (Embryo) is a song, removed.
    • Q719458 (Brain) and Q1409015 (heart) refers to the foods, removed.
    • Q2281500 (Rib) is a deformation on a surface, removed.
    • Q67208213 (Thymus) is a spice, removed.
    • Q1615371 (stomacher) is a decorative item, removed.
    • Q1155702 (skin) is a graphical interface, removed.
    • Q97671426 (Skin) is a British TV series, removed.
    • Q5262664 (DermIS) is an information system, removed.
    • Q85782674 (Lungs) is a play, removed.
    • Plant structures removed
      • Q1120914 (Placenta)
      • Q1293511 (Cortex)
      • Q148515 (ovary)
    • Chinese medicine or religion items removed
      • Q7543099 (Small intestine)
      • Q6704252 and Q6704255 (Lung)
      • Q6140833 (Kidney)
      • Q7578442 (Spleen)
      • Q6140977 (Liver)
      • Q7618690 (Stomach)
      • Q5691852 (Heart)
  • organs_checked:

    • Q1155702 (skin) is a graphical interface, removed.
    • Q97671426 (Skin) is a British TV series, removed.
    • Q7535317 (Skin) is an aircraft component, removed.
    • Q85782674 (Lungs) is a play, removed.
    • Q67208213 (Thymus) is a spice, removed.
    • Q96377210 (Embryo) is a song, removed.
    • Q1120914 (Placenta) is a plant structure, removed.
    • Food items removed
      • Q1409015 (Heart)
      • Q494268 (blood)
    • Chinese medicine or religion items removed
      • Q6140833 (Kidney)
      • Q5691852 (Heart)
      • Q6140977 (Liver)
  • Started working on the item quality assesment - halted until manual item matching is finished

08/09

  • Started working on analysing matches:
    • Changed module name wdt to quality, since it'll contain all item quality-related functions.
    • Made summary tables for all reconciled panglaodb entities (cells, tissues and organs)
    • Made plots for item types of the reconciled items.

09/09

  • Analysed gene item matches, percentage that matched, etc. Added this in the draft. This warranted the refactoring of a quality module function, now dismembered in two functions.

  • Continued work on the item quality assessment.

16/09

17/09

  • Continued work on item quality assessment, building initial visualizations.

18/09

  • Built all initial draft visualizations, now need to refactor and test the code in item_quality.py.

20/09

  • Refactoring and testing functions associated with the item quality assessment.

21/09

  • Updating table in analyse_matches.py to print totals as well.

  • Started working primarily in the manuscript. Progress for this can be followed here

02/10

  • Created improvements/ directory, code used for improving wikidata items and creating new ones.
  • Isolated PanglaoDB's data that was missing from Wikidata.

07/10

  • Reconciled organs once more, now adding "animal organ" as one of the possible reconcilable types. This will fix most missing matches.
  • Adding false match removal as a script, to avoid manually editing intermediate files.

08/10

  • Committed what was done in 07/10.
  • Reproduced item_quality assessement, now with the new reconciled organ data.

09/10

  • Code for adding ensembl gene IDs to Wikidata items.

11/10

  • Added a Makefile for reproducibility and automation, see the Turing Way for reference.

15/10

  • Added GH actions to continuously update submodules and automatically build the documentation.

16/10

  • Fixed issues with GH actions and added documentation badge to the README

23/10

  • Refactored remove_false_matches.py to remove input_value/id duplication, simplifying the code in analyse_matches.py and item_quality.py.

29/10

  • Run reconciler and start to manually check the matches of cell types to Wikidata (Tiago). Note: I plan to do the manual matching of cell types individually, for consistency.

30/10

  • Checked cell type matches considered false and noted down in Markdown.
  • Started to manually check the cell types that were not reconciled to Wikidata.
  • Finished manual check, still left to add the cell types to Wikidata.

31/10

  • Created spreadsheet + quickstatements commands to add new cell types to Wikidata.
  • Added new cell types to Wikidata and checked dict for reconciliation to Wikidata, and saved it in improvemens/results/cell_type_reference_from_panglao_to_wikidata_31_10_2020.csv.

02/11

  • Started looking at updating and reconciling human genes.

04/11

  • I had a git problem (Tiago) and lost the 2 of november notebook.
  • Remade november 2 notebook and reconciled the human genes.

05/11

  • I had a saving problem (Tiago) and lost the end of 5 of november notebook. Notebooks on vscode are tricky, they are stored on cache even when you close the IDE, so they are saved and not saved at the same time. The main info and the reconciliation results were saved.
  • Manually fixed Paneth cells in csv (missing wikidata link)
  • Added archetypes to cell types wikibase: https://celltypes.wiki.opencura.com/ but failed to access the SPARQL endpoint via python.

08/11

  • I added species-specific cell types to Wikidata

13/11

  • I made a local RDF file that links cell types to genes on Wikidata using a property on the Open Cura wikibase: https://celltypes.wiki.opencura.com/wiki/Property:P9

  • Next step: Make a query that given a Gene Ontology ID, it brings the related cell types.

  • Path: GO ID --> Wikidata ID of GO term --> Wikidata ID of Protein --> Wikidata ID of gene that encodes that protein --> Cell Type

21/11

  • The local RDF file was incomplete, I fixed it, and now it contains all cell_type-marker relations.

  • The Wikidata query for human cell types is not capturing these types as superclasses:

  • Parietal cells Q1640093

  • Serotonergic neurons Q70220966
  • Bergmann glia Q101062516
  • Satellite glial cells Q637104
  • Foveolar cells Q66592466
  • Acinar cells Q66590269
  • Clara cells Q645712
  • Glomus cells Q4778753

I suspect issues with the update timing of the SPARQL endpoint, or some hidden cache.

These types are absent in the current .ttl and should be added later.

27/11

  • The has_positive_marker has been approved on Wikidata!
  • The PanglaoDB markers for human cell types have been uploaded to Wikidata.

22/12

25/12

  • Re-running initial reconciliation after most improvements have been made.
    • New graphs and data tables were generated.
    • These were made in a new branch, as to avoid overwriting original data and not having to rely travelling back in history to see the original dataset.