{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Life Science ontologies and Knowledge Graphs, HANDS-ON\n",
    "\n",
    "At the end of this hands-on session, you will be able to\n",
    " - explore and search publicly available biomedical ontologies, combine knowledge provided by multiple ontologies,\n",
    " - exploit these ontologies: explore node neighborhood, navigate class hierarchies, retrieve synonyms\n",
    "\n",
    "BioPortal (https://bioportal.bioontology.org) is a large repository of biomedical ontologies gathering 1200+ ontologies and 12+ million classes. We will use this web resource to navigate and retrieve biomedical knowledge."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Question 1\n",
    "Search for two definitions of “mitral valve prolapse”, coming from two different ontologies."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "![data/mvp.png](data/mvp.png)\n",
    "\n",
    "Here are twow definitions of \"mitral valve prolapse\": \n",
    "\n",
    "- \"One or both of the leaflets (cusps) of the mitral valve bulges back into the left atrium upon contraction of the left ventricle. Mitral valve prolapse can be associated with mitral regurgitation.\" (from [HPO](http://purl.obolibrary.org/obo/HP_0001634))\n",
    "\n",
    "![data/mesh.png](data/mesh.png)\n",
    "\n",
    "- \"Abnormal protrusion or billowing of one or both of the leaflets of MITRAL VALVE into the LEFT ATRIUM during SYSTOLE. This allows the backflow of blood into left atrium leading to MITRAL VALVE INSUFFICIENCY; SYSTOLIC MURMURS; or CARDIAC ARRHYTHMIA.\" (from [MeSH](http://purl.bioontology.org/ontology/MESH/D008945)) "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Question 2\n",
    "\n",
    "In the human phenotype ontology, search for all sub-classes of “mitral stenosis”. You will use the “jump to” search box to directly display the corresponding class.\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "\n",
    "![data/mitral_stenosis.png](data/mitral_stenosis.png)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## Question 3\n",
    "Still from the Human Phenotype Ontology, list “mitral valve prolapse” class mappings. Based on its corresponding class in the OMIM ontology (Online Mendelian Inheritance in Man), retrieve possibly involved genes. You will need to navigate through “manifestation of” and “gene symbol” properties."
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "\n",
    "![data/omim1.png](data/omim1.png)\n",
    "\n",
    "![data/omim2.png](data/omim2.png)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "etbii",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.14"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
