diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 00000000..e69de29b diff --git a/404.html b/404.html new file mode 100644 index 00000000..1d8d73e3 --- /dev/null +++ b/404.html @@ -0,0 +1,1573 @@ + + + + + + + + + + + + + + + + + + Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ +

404 - Not found

+ +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/about/index.html b/about/index.html new file mode 100644 index 00000000..d81c3f44 --- /dev/null +++ b/about/index.html @@ -0,0 +1,1621 @@ + + + + + + + + + + + + + + + + + + + + + + + + About uPheno - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + Skip to content + + +
+
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

About uPheno

+

The uPheno project aims to unify the annotation of phenotypes across species in a manner analogous to unification of gene function annotation by the Gene Ontology. +uPheno 2.0 builds on earlier efforts with a strategy that directly leverages the work of the phenotype ontology development community and incorporates phenotypes from a much wider range of species. +We have organised a collaborative community effort, including representatives of all major model organism databases, to document and align formal design patterns for representing phenotypes and further develop reference ontologies, such as PATO, which are used in these patterns. +A common development infrastructure makes it easy to use these design patterns to generate both species-specific ontologies and a species-independent layer that subsumes them. +The resulting community-curated ontology for the representation and integration of phenotypes across species serves two general purposes:
+- Providing a community-developed framework for ontology editors to bootstrap, maintain and extend their phenotype ontologies in a scalable and standardised manner.
+- Facilitating the retrieval and comparative analysis of species-specific phenotypes through a deep layer of species-independent phenotypes.

+

Currently, the development of uPheno is organized by a group that meets biweekly. See the meetings page for more info, including how to participate.

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/assets/images/favicon.png b/assets/images/favicon.png new file mode 100644 index 00000000..1cf13b9f Binary files /dev/null and b/assets/images/favicon.png differ diff --git a/assets/javascripts/bundle.51d95adb.min.js b/assets/javascripts/bundle.51d95adb.min.js new file mode 100644 index 00000000..b20ec683 --- /dev/null +++ b/assets/javascripts/bundle.51d95adb.min.js @@ -0,0 +1,29 @@ +"use strict";(()=>{var Hi=Object.create;var xr=Object.defineProperty;var Pi=Object.getOwnPropertyDescriptor;var $i=Object.getOwnPropertyNames,kt=Object.getOwnPropertySymbols,Ii=Object.getPrototypeOf,Er=Object.prototype.hasOwnProperty,an=Object.prototype.propertyIsEnumerable;var on=(e,t,r)=>t in e?xr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))Er.call(t,r)&&on(e,r,t[r]);if(kt)for(var r of kt(t))an.call(t,r)&&on(e,r,t[r]);return e};var sn=(e,t)=>{var r={};for(var n in e)Er.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&kt)for(var n of kt(e))t.indexOf(n)<0&&an.call(e,n)&&(r[n]=e[n]);return r};var Ht=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Fi=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $i(t))!Er.call(e,o)&&o!==r&&xr(e,o,{get:()=>t[o],enumerable:!(n=Pi(t,o))||n.enumerable});return e};var yt=(e,t,r)=>(r=e!=null?Hi(Ii(e)):{},Fi(t||!e||!e.__esModule?xr(r,"default",{value:e,enumerable:!0}):r,e));var fn=Ht((wr,cn)=>{(function(e,t){typeof wr=="object"&&typeof cn!="undefined"?t():typeof define=="function"&&define.amd?define(t):t()})(wr,function(){"use strict";function e(r){var n=!0,o=!1,i=null,a={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function s(T){return!!(T&&T!==document&&T.nodeName!=="HTML"&&T.nodeName!=="BODY"&&"classList"in T&&"contains"in T.classList)}function f(T){var Ke=T.type,We=T.tagName;return!!(We==="INPUT"&&a[Ke]&&!T.readOnly||We==="TEXTAREA"&&!T.readOnly||T.isContentEditable)}function c(T){T.classList.contains("focus-visible")||(T.classList.add("focus-visible"),T.setAttribute("data-focus-visible-added",""))}function u(T){T.hasAttribute("data-focus-visible-added")&&(T.classList.remove("focus-visible"),T.removeAttribute("data-focus-visible-added"))}function p(T){T.metaKey||T.altKey||T.ctrlKey||(s(r.activeElement)&&c(r.activeElement),n=!0)}function m(T){n=!1}function d(T){s(T.target)&&(n||f(T.target))&&c(T.target)}function h(T){s(T.target)&&(T.target.classList.contains("focus-visible")||T.target.hasAttribute("data-focus-visible-added"))&&(o=!0,window.clearTimeout(i),i=window.setTimeout(function(){o=!1},100),u(T.target))}function v(T){document.visibilityState==="hidden"&&(o&&(n=!0),B())}function B(){document.addEventListener("mousemove",z),document.addEventListener("mousedown",z),document.addEventListener("mouseup",z),document.addEventListener("pointermove",z),document.addEventListener("pointerdown",z),document.addEventListener("pointerup",z),document.addEventListener("touchmove",z),document.addEventListener("touchstart",z),document.addEventListener("touchend",z)}function re(){document.removeEventListener("mousemove",z),document.removeEventListener("mousedown",z),document.removeEventListener("mouseup",z),document.removeEventListener("pointermove",z),document.removeEventListener("pointerdown",z),document.removeEventListener("pointerup",z),document.removeEventListener("touchmove",z),document.removeEventListener("touchstart",z),document.removeEventListener("touchend",z)}function z(T){T.target.nodeName&&T.target.nodeName.toLowerCase()==="html"||(n=!1,re())}document.addEventListener("keydown",p,!0),document.addEventListener("mousedown",m,!0),document.addEventListener("pointerdown",m,!0),document.addEventListener("touchstart",m,!0),document.addEventListener("visibilitychange",v,!0),B(),r.addEventListener("focus",d,!0),r.addEventListener("blur",h,!0),r.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&r.host?r.host.setAttribute("data-js-focus-visible",""):r.nodeType===Node.DOCUMENT_NODE&&(document.documentElement.classList.add("js-focus-visible"),document.documentElement.setAttribute("data-js-focus-visible",""))}if(typeof window!="undefined"&&typeof document!="undefined"){window.applyFocusVisiblePolyfill=e;var t;try{t=new CustomEvent("focus-visible-polyfill-ready")}catch(r){t=document.createEvent("CustomEvent"),t.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(t)}typeof document!="undefined"&&e(document)})});var un=Ht(Sr=>{(function(e){var t=function(){try{return!!Symbol.iterator}catch(c){return!1}},r=t(),n=function(c){var u={next:function(){var p=c.shift();return{done:p===void 0,value:p}}};return r&&(u[Symbol.iterator]=function(){return u}),u},o=function(c){return encodeURIComponent(c).replace(/%20/g,"+")},i=function(c){return decodeURIComponent(String(c).replace(/\+/g," "))},a=function(){var c=function(p){Object.defineProperty(this,"_entries",{writable:!0,value:{}});var m=typeof p;if(m!=="undefined")if(m==="string")p!==""&&this._fromString(p);else if(p instanceof c){var d=this;p.forEach(function(re,z){d.append(z,re)})}else if(p!==null&&m==="object")if(Object.prototype.toString.call(p)==="[object Array]")for(var h=0;hd[0]?1:0}),c._entries&&(c._entries={});for(var p=0;p1?i(d[1]):"")}})})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Sr);(function(e){var t=function(){try{var o=new e.URL("b","http://a");return o.pathname="c d",o.href==="http://a/c%20d"&&o.searchParams}catch(i){return!1}},r=function(){var o=e.URL,i=function(f,c){typeof f!="string"&&(f=String(f)),c&&typeof c!="string"&&(c=String(c));var u=document,p;if(c&&(e.location===void 0||c!==e.location.href)){c=c.toLowerCase(),u=document.implementation.createHTMLDocument(""),p=u.createElement("base"),p.href=c,u.head.appendChild(p);try{if(p.href.indexOf(c)!==0)throw new Error(p.href)}catch(T){throw new Error("URL unable to set base "+c+" due to "+T)}}var m=u.createElement("a");m.href=f,p&&(u.body.appendChild(m),m.href=m.href);var d=u.createElement("input");if(d.type="url",d.value=f,m.protocol===":"||!/:/.test(m.href)||!d.checkValidity()&&!c)throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:m});var h=new e.URLSearchParams(this.search),v=!0,B=!0,re=this;["append","delete","set"].forEach(function(T){var Ke=h[T];h[T]=function(){Ke.apply(h,arguments),v&&(B=!1,re.search=h.toString(),B=!0)}}),Object.defineProperty(this,"searchParams",{value:h,enumerable:!0});var z=void 0;Object.defineProperty(this,"_updateSearchParams",{enumerable:!1,configurable:!1,writable:!1,value:function(){this.search!==z&&(z=this.search,B&&(v=!1,this.searchParams._fromString(this.search),v=!0))}})},a=i.prototype,s=function(f){Object.defineProperty(a,f,{get:function(){return this._anchorElement[f]},set:function(c){this._anchorElement[f]=c},enumerable:!0})};["hash","host","hostname","port","protocol"].forEach(function(f){s(f)}),Object.defineProperty(a,"search",{get:function(){return this._anchorElement.search},set:function(f){this._anchorElement.search=f,this._updateSearchParams()},enumerable:!0}),Object.defineProperties(a,{toString:{get:function(){var f=this;return function(){return f.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(f){this._anchorElement.href=f,this._updateSearchParams()},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(f){this._anchorElement.pathname=f},enumerable:!0},origin:{get:function(){var f={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],c=this._anchorElement.port!=f&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(c?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(f){},enumerable:!0},username:{get:function(){return""},set:function(f){},enumerable:!0}}),i.createObjectURL=function(f){return o.createObjectURL.apply(o,arguments)},i.revokeObjectURL=function(f){return o.revokeObjectURL.apply(o,arguments)},e.URL=i};if(t()||r(),e.location!==void 0&&!("origin"in e.location)){var n=function(){return e.location.protocol+"//"+e.location.hostname+(e.location.port?":"+e.location.port:"")};try{Object.defineProperty(e.location,"origin",{get:n,enumerable:!0})}catch(o){setInterval(function(){e.location.origin=n()},100)}}})(typeof global!="undefined"?global:typeof window!="undefined"?window:typeof self!="undefined"?self:Sr)});var Qr=Ht((Lt,Kr)=>{/*! + * clipboard.js v2.0.11 + * https://clipboardjs.com/ + * + * Licensed MIT © Zeno Rocha + */(function(t,r){typeof Lt=="object"&&typeof Kr=="object"?Kr.exports=r():typeof define=="function"&&define.amd?define([],r):typeof Lt=="object"?Lt.ClipboardJS=r():t.ClipboardJS=r()})(Lt,function(){return function(){var e={686:function(n,o,i){"use strict";i.d(o,{default:function(){return ki}});var a=i(279),s=i.n(a),f=i(370),c=i.n(f),u=i(817),p=i.n(u);function m(j){try{return document.execCommand(j)}catch(O){return!1}}var d=function(O){var w=p()(O);return m("cut"),w},h=d;function v(j){var O=document.documentElement.getAttribute("dir")==="rtl",w=document.createElement("textarea");w.style.fontSize="12pt",w.style.border="0",w.style.padding="0",w.style.margin="0",w.style.position="absolute",w.style[O?"right":"left"]="-9999px";var k=window.pageYOffset||document.documentElement.scrollTop;return w.style.top="".concat(k,"px"),w.setAttribute("readonly",""),w.value=j,w}var B=function(O,w){var k=v(O);w.container.appendChild(k);var F=p()(k);return m("copy"),k.remove(),F},re=function(O){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},k="";return typeof O=="string"?k=B(O,w):O instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(O==null?void 0:O.type)?k=B(O.value,w):(k=p()(O),m("copy")),k},z=re;function T(j){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?T=function(w){return typeof w}:T=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},T(j)}var Ke=function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},w=O.action,k=w===void 0?"copy":w,F=O.container,q=O.target,Le=O.text;if(k!=="copy"&&k!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(q!==void 0)if(q&&T(q)==="object"&&q.nodeType===1){if(k==="copy"&&q.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(k==="cut"&&(q.hasAttribute("readonly")||q.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(Le)return z(Le,{container:F});if(q)return k==="cut"?h(q):z(q,{container:F})},We=Ke;function Ie(j){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ie=function(w){return typeof w}:Ie=function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},Ie(j)}function Ti(j,O){if(!(j instanceof O))throw new TypeError("Cannot call a class as a function")}function nn(j,O){for(var w=0;w0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof F.action=="function"?F.action:this.defaultAction,this.target=typeof F.target=="function"?F.target:this.defaultTarget,this.text=typeof F.text=="function"?F.text:this.defaultText,this.container=Ie(F.container)==="object"?F.container:document.body}},{key:"listenClick",value:function(F){var q=this;this.listener=c()(F,"click",function(Le){return q.onClick(Le)})}},{key:"onClick",value:function(F){var q=F.delegateTarget||F.currentTarget,Le=this.action(q)||"copy",Rt=We({action:Le,container:this.container,target:this.target(q),text:this.text(q)});this.emit(Rt?"success":"error",{action:Le,text:Rt,trigger:q,clearSelection:function(){q&&q.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(F){return yr("action",F)}},{key:"defaultTarget",value:function(F){var q=yr("target",F);if(q)return document.querySelector(q)}},{key:"defaultText",value:function(F){return yr("text",F)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(F){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return z(F,q)}},{key:"cut",value:function(F){return h(F)}},{key:"isSupported",value:function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],q=typeof F=="string"?[F]:F,Le=!!document.queryCommandSupported;return q.forEach(function(Rt){Le=Le&&!!document.queryCommandSupported(Rt)}),Le}}]),w}(s()),ki=Ri},828:function(n){var o=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function a(s,f){for(;s&&s.nodeType!==o;){if(typeof s.matches=="function"&&s.matches(f))return s;s=s.parentNode}}n.exports=a},438:function(n,o,i){var a=i(828);function s(u,p,m,d,h){var v=c.apply(this,arguments);return u.addEventListener(m,v,h),{destroy:function(){u.removeEventListener(m,v,h)}}}function f(u,p,m,d,h){return typeof u.addEventListener=="function"?s.apply(null,arguments):typeof m=="function"?s.bind(null,document).apply(null,arguments):(typeof u=="string"&&(u=document.querySelectorAll(u)),Array.prototype.map.call(u,function(v){return s(v,p,m,d,h)}))}function c(u,p,m,d){return function(h){h.delegateTarget=a(h.target,p),h.delegateTarget&&d.call(u,h)}}n.exports=f},879:function(n,o){o.node=function(i){return i!==void 0&&i instanceof HTMLElement&&i.nodeType===1},o.nodeList=function(i){var a=Object.prototype.toString.call(i);return i!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in i&&(i.length===0||o.node(i[0]))},o.string=function(i){return typeof i=="string"||i instanceof String},o.fn=function(i){var a=Object.prototype.toString.call(i);return a==="[object Function]"}},370:function(n,o,i){var a=i(879),s=i(438);function f(m,d,h){if(!m&&!d&&!h)throw new Error("Missing required arguments");if(!a.string(d))throw new TypeError("Second argument must be a String");if(!a.fn(h))throw new TypeError("Third argument must be a Function");if(a.node(m))return c(m,d,h);if(a.nodeList(m))return u(m,d,h);if(a.string(m))return p(m,d,h);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function c(m,d,h){return m.addEventListener(d,h),{destroy:function(){m.removeEventListener(d,h)}}}function u(m,d,h){return Array.prototype.forEach.call(m,function(v){v.addEventListener(d,h)}),{destroy:function(){Array.prototype.forEach.call(m,function(v){v.removeEventListener(d,h)})}}}function p(m,d,h){return s(document.body,m,d,h)}n.exports=f},817:function(n){function o(i){var a;if(i.nodeName==="SELECT")i.focus(),a=i.value;else if(i.nodeName==="INPUT"||i.nodeName==="TEXTAREA"){var s=i.hasAttribute("readonly");s||i.setAttribute("readonly",""),i.select(),i.setSelectionRange(0,i.value.length),s||i.removeAttribute("readonly"),a=i.value}else{i.hasAttribute("contenteditable")&&i.focus();var f=window.getSelection(),c=document.createRange();c.selectNodeContents(i),f.removeAllRanges(),f.addRange(c),a=f.toString()}return a}n.exports=o},279:function(n){function o(){}o.prototype={on:function(i,a,s){var f=this.e||(this.e={});return(f[i]||(f[i]=[])).push({fn:a,ctx:s}),this},once:function(i,a,s){var f=this;function c(){f.off(i,c),a.apply(s,arguments)}return c._=a,this.on(i,c,s)},emit:function(i){var a=[].slice.call(arguments,1),s=((this.e||(this.e={}))[i]||[]).slice(),f=0,c=s.length;for(f;f{"use strict";/*! + * escape-html + * Copyright(c) 2012-2013 TJ Holowaychuk + * Copyright(c) 2015 Andreas Lubbe + * Copyright(c) 2015 Tiancheng "Timothy" Gu + * MIT Licensed + */var is=/["'&<>]/;Jo.exports=as;function as(e){var t=""+e,r=is.exec(t);if(!r)return t;var n,o="",i=0,a=0;for(i=r.index;i0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function W(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],a;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function D(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n1||s(m,d)})})}function s(m,d){try{f(n[m](d))}catch(h){p(i[0][3],h)}}function f(m){m.value instanceof Xe?Promise.resolve(m.value.v).then(c,u):p(i[0][2],m)}function c(m){s("next",m)}function u(m){s("throw",m)}function p(m,d){m(d),i.shift(),i.length&&s(i[0][0],i[0][1])}}function mn(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof xe=="function"?xe(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(a){return new Promise(function(s,f){a=e[i](a),o(s,f,a.done,a.value)})}}function o(i,a,s,f){Promise.resolve(f).then(function(c){i({value:c,done:s})},a)}}function A(e){return typeof e=="function"}function at(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var $t=at(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription: +`+r.map(function(n,o){return o+1+") "+n.toString()}).join(` + `):"",this.name="UnsubscriptionError",this.errors=r}});function De(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Fe=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var s=xe(a),f=s.next();!f.done;f=s.next()){var c=f.value;c.remove(this)}}catch(v){t={error:v}}finally{try{f&&!f.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}else a.remove(this);var u=this.initialTeardown;if(A(u))try{u()}catch(v){i=v instanceof $t?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var m=xe(p),d=m.next();!d.done;d=m.next()){var h=d.value;try{dn(h)}catch(v){i=i!=null?i:[],v instanceof $t?i=D(D([],W(i)),W(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{d&&!d.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}}if(i)throw new $t(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)dn(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&De(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&De(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();var Or=Fe.EMPTY;function It(e){return e instanceof Fe||e&&"closed"in e&&A(e.remove)&&A(e.add)&&A(e.unsubscribe)}function dn(e){A(e)?e():e.unsubscribe()}var Ae={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var st={setTimeout:function(e,t){for(var r=[],n=2;n0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Or:(this.currentObservers=null,s.push(r),new Fe(function(){n.currentObservers=null,De(s,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new U;return r.source=this,r},t.create=function(r,n){return new wn(r,n)},t}(U);var wn=function(e){ne(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Or},t}(E);var Et={now:function(){return(Et.delegate||Date).now()},delegate:void 0};var wt=function(e){ne(t,e);function t(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Et);var i=e.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return t.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,f=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+f)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),f=0;f0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=ut.requestAnimationFrame(function(){return r.flush(void 0)})))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var a=r.actions;n!=null&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==n&&(ut.cancelAnimationFrame(n),r._scheduled=void 0)},t}(Ut);var On=function(e){ne(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.flush=function(r){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var o=this.actions,i;r=r||o.shift();do if(i=r.execute(r.state,r.delay))break;while((r=o[0])&&r.id===n&&o.shift());if(this._active=!1,i){for(;(r=o[0])&&r.id===n&&o.shift();)r.unsubscribe();throw i}},t}(Wt);var we=new On(Tn);var R=new U(function(e){return e.complete()});function Dt(e){return e&&A(e.schedule)}function kr(e){return e[e.length-1]}function Qe(e){return A(kr(e))?e.pop():void 0}function Se(e){return Dt(kr(e))?e.pop():void 0}function Vt(e,t){return typeof kr(e)=="number"?e.pop():t}var pt=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function zt(e){return A(e==null?void 0:e.then)}function Nt(e){return A(e[ft])}function qt(e){return Symbol.asyncIterator&&A(e==null?void 0:e[Symbol.asyncIterator])}function Kt(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function Ki(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Qt=Ki();function Yt(e){return A(e==null?void 0:e[Qt])}function Gt(e){return ln(this,arguments,function(){var r,n,o,i;return Pt(this,function(a){switch(a.label){case 0:r=e.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,Xe(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,Xe(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,Xe(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function Bt(e){return A(e==null?void 0:e.getReader)}function $(e){if(e instanceof U)return e;if(e!=null){if(Nt(e))return Qi(e);if(pt(e))return Yi(e);if(zt(e))return Gi(e);if(qt(e))return _n(e);if(Yt(e))return Bi(e);if(Bt(e))return Ji(e)}throw Kt(e)}function Qi(e){return new U(function(t){var r=e[ft]();if(A(r.subscribe))return r.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function Yi(e){return new U(function(t){for(var r=0;r=2;return function(n){return n.pipe(e?_(function(o,i){return e(o,i,n)}):me,Oe(1),r?He(t):zn(function(){return new Xt}))}}function Nn(){for(var e=[],t=0;t=2,!0))}function fe(e){e===void 0&&(e={});var t=e.connector,r=t===void 0?function(){return new E}:t,n=e.resetOnError,o=n===void 0?!0:n,i=e.resetOnComplete,a=i===void 0?!0:i,s=e.resetOnRefCountZero,f=s===void 0?!0:s;return function(c){var u,p,m,d=0,h=!1,v=!1,B=function(){p==null||p.unsubscribe(),p=void 0},re=function(){B(),u=m=void 0,h=v=!1},z=function(){var T=u;re(),T==null||T.unsubscribe()};return g(function(T,Ke){d++,!v&&!h&&B();var We=m=m!=null?m:r();Ke.add(function(){d--,d===0&&!v&&!h&&(p=jr(z,f))}),We.subscribe(Ke),!u&&d>0&&(u=new et({next:function(Ie){return We.next(Ie)},error:function(Ie){v=!0,B(),p=jr(re,o,Ie),We.error(Ie)},complete:function(){h=!0,B(),p=jr(re,a),We.complete()}}),$(T).subscribe(u))})(c)}}function jr(e,t){for(var r=[],n=2;ne.next(document)),e}function K(e,t=document){return Array.from(t.querySelectorAll(e))}function V(e,t=document){let r=se(e,t);if(typeof r=="undefined")throw new ReferenceError(`Missing element: expected "${e}" to be present`);return r}function se(e,t=document){return t.querySelector(e)||void 0}function _e(){return document.activeElement instanceof HTMLElement&&document.activeElement||void 0}function tr(e){return L(b(document.body,"focusin"),b(document.body,"focusout")).pipe(ke(1),l(()=>{let t=_e();return typeof t!="undefined"?e.contains(t):!1}),N(e===_e()),Y())}function Be(e){return{x:e.offsetLeft,y:e.offsetTop}}function Yn(e){return L(b(window,"load"),b(window,"resize")).pipe(Ce(0,we),l(()=>Be(e)),N(Be(e)))}function rr(e){return{x:e.scrollLeft,y:e.scrollTop}}function dt(e){return L(b(e,"scroll"),b(window,"resize")).pipe(Ce(0,we),l(()=>rr(e)),N(rr(e)))}var Bn=function(){if(typeof Map!="undefined")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,i=this.__entries__;o0},e.prototype.connect_=function(){!zr||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),xa?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!zr||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=ya.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Jn=function(e,t){for(var r=0,n=Object.keys(t);r0},e}(),Zn=typeof WeakMap!="undefined"?new WeakMap:new Bn,eo=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=Ea.getInstance(),n=new Ra(t,r,this);Zn.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){eo.prototype[e]=function(){var t;return(t=Zn.get(this))[e].apply(t,arguments)}});var ka=function(){return typeof nr.ResizeObserver!="undefined"?nr.ResizeObserver:eo}(),to=ka;var ro=new E,Ha=I(()=>H(new to(e=>{for(let t of e)ro.next(t)}))).pipe(x(e=>L(Te,H(e)).pipe(C(()=>e.disconnect()))),J(1));function de(e){return{width:e.offsetWidth,height:e.offsetHeight}}function ge(e){return Ha.pipe(S(t=>t.observe(e)),x(t=>ro.pipe(_(({target:r})=>r===e),C(()=>t.unobserve(e)),l(()=>de(e)))),N(de(e)))}function bt(e){return{width:e.scrollWidth,height:e.scrollHeight}}function ar(e){let t=e.parentElement;for(;t&&(e.scrollWidth<=t.scrollWidth&&e.scrollHeight<=t.scrollHeight);)t=(e=t).parentElement;return t?e:void 0}var no=new E,Pa=I(()=>H(new IntersectionObserver(e=>{for(let t of e)no.next(t)},{threshold:0}))).pipe(x(e=>L(Te,H(e)).pipe(C(()=>e.disconnect()))),J(1));function sr(e){return Pa.pipe(S(t=>t.observe(e)),x(t=>no.pipe(_(({target:r})=>r===e),C(()=>t.unobserve(e)),l(({isIntersecting:r})=>r))))}function oo(e,t=16){return dt(e).pipe(l(({y:r})=>{let n=de(e),o=bt(e);return r>=o.height-n.height-t}),Y())}var cr={drawer:V("[data-md-toggle=drawer]"),search:V("[data-md-toggle=search]")};function io(e){return cr[e].checked}function qe(e,t){cr[e].checked!==t&&cr[e].click()}function je(e){let t=cr[e];return b(t,"change").pipe(l(()=>t.checked),N(t.checked))}function $a(e,t){switch(e.constructor){case HTMLInputElement:return e.type==="radio"?/^Arrow/.test(t):!0;case HTMLSelectElement:case HTMLTextAreaElement:return!0;default:return e.isContentEditable}}function Ia(){return L(b(window,"compositionstart").pipe(l(()=>!0)),b(window,"compositionend").pipe(l(()=>!1))).pipe(N(!1))}function ao(){let e=b(window,"keydown").pipe(_(t=>!(t.metaKey||t.ctrlKey)),l(t=>({mode:io("search")?"search":"global",type:t.key,claim(){t.preventDefault(),t.stopPropagation()}})),_(({mode:t,type:r})=>{if(t==="global"){let n=_e();if(typeof n!="undefined")return!$a(n,r)}return!0}),fe());return Ia().pipe(x(t=>t?R:e))}function Me(){return new URL(location.href)}function ot(e){location.href=e.href}function so(){return new E}function co(e,t){if(typeof t=="string"||typeof t=="number")e.innerHTML+=t.toString();else if(t instanceof Node)e.appendChild(t);else if(Array.isArray(t))for(let r of t)co(e,r)}function M(e,t,...r){let n=document.createElement(e);if(t)for(let o of Object.keys(t))typeof t[o]!="undefined"&&(typeof t[o]!="boolean"?n.setAttribute(o,t[o]):n.setAttribute(o,""));for(let o of r)co(n,o);return n}function fr(e){if(e>999){let t=+((e-950)%1e3>99);return`${((e+1e-6)/1e3).toFixed(t)}k`}else return e.toString()}function fo(){return location.hash.substring(1)}function uo(e){let t=M("a",{href:e});t.addEventListener("click",r=>r.stopPropagation()),t.click()}function Fa(){return b(window,"hashchange").pipe(l(fo),N(fo()),_(e=>e.length>0),J(1))}function po(){return Fa().pipe(l(e=>se(`[id="${e}"]`)),_(e=>typeof e!="undefined"))}function Nr(e){let t=matchMedia(e);return Zt(r=>t.addListener(()=>r(t.matches))).pipe(N(t.matches))}function lo(){let e=matchMedia("print");return L(b(window,"beforeprint").pipe(l(()=>!0)),b(window,"afterprint").pipe(l(()=>!1))).pipe(N(e.matches))}function qr(e,t){return e.pipe(x(r=>r?t():R))}function ur(e,t={credentials:"same-origin"}){return ve(fetch(`${e}`,t)).pipe(ce(()=>R),x(r=>r.status!==200?Tt(()=>new Error(r.statusText)):H(r)))}function Ue(e,t){return ur(e,t).pipe(x(r=>r.json()),J(1))}function mo(e,t){let r=new DOMParser;return ur(e,t).pipe(x(n=>n.text()),l(n=>r.parseFromString(n,"text/xml")),J(1))}function pr(e){let t=M("script",{src:e});return I(()=>(document.head.appendChild(t),L(b(t,"load"),b(t,"error").pipe(x(()=>Tt(()=>new ReferenceError(`Invalid script: ${e}`))))).pipe(l(()=>{}),C(()=>document.head.removeChild(t)),Oe(1))))}function ho(){return{x:Math.max(0,scrollX),y:Math.max(0,scrollY)}}function bo(){return L(b(window,"scroll",{passive:!0}),b(window,"resize",{passive:!0})).pipe(l(ho),N(ho()))}function vo(){return{width:innerWidth,height:innerHeight}}function go(){return b(window,"resize",{passive:!0}).pipe(l(vo),N(vo()))}function yo(){return Q([bo(),go()]).pipe(l(([e,t])=>({offset:e,size:t})),J(1))}function lr(e,{viewport$:t,header$:r}){let n=t.pipe(X("size")),o=Q([n,r]).pipe(l(()=>Be(e)));return Q([r,t,o]).pipe(l(([{height:i},{offset:a,size:s},{x:f,y:c}])=>({offset:{x:a.x-f,y:a.y-c+i},size:s})))}(()=>{function e(n,o){parent.postMessage(n,o||"*")}function t(...n){return n.reduce((o,i)=>o.then(()=>new Promise(a=>{let s=document.createElement("script");s.src=i,s.onload=a,document.body.appendChild(s)})),Promise.resolve())}var r=class{constructor(n){this.url=n,this.onerror=null,this.onmessage=null,this.onmessageerror=null,this.m=a=>{a.source===this.w&&(a.stopImmediatePropagation(),this.dispatchEvent(new MessageEvent("message",{data:a.data})),this.onmessage&&this.onmessage(a))},this.e=(a,s,f,c,u)=>{if(s===this.url.toString()){let p=new ErrorEvent("error",{message:a,filename:s,lineno:f,colno:c,error:u});this.dispatchEvent(p),this.onerror&&this.onerror(p)}};let o=new EventTarget;this.addEventListener=o.addEventListener.bind(o),this.removeEventListener=o.removeEventListener.bind(o),this.dispatchEvent=o.dispatchEvent.bind(o);let i=document.createElement("iframe");i.width=i.height=i.frameBorder="0",document.body.appendChild(this.iframe=i),this.w.document.open(),this.w.document.write(` + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

How to cite uPheno

+

Papers

+

uPheno 2

+
    +
  • Matentzoglu N, Osumi-Sutherland D, Balhoff JP, Bello S, Bradford Y, Cardmody L, Grove C, Harris MA, Harris N, Köhler S, McMurry J, Mungall C, Munoz-Torres M, Pilgrim C, Robb S, Robinson PN, Segerdell E, Vasilevsky N, Haendel M. uPheno 2: Framework for standardised representation of phenotypes across species. 2019 Apr 8. http://dx.doi.org/10.7490/f1000research.1116540.1
  • +
+

Original uPheno

+ +

Entity-Quality definitions and phenotype modelling

+ + + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/contributing/index.html b/contributing/index.html new file mode 100644 index 00000000..8b977c77 --- /dev/null +++ b/contributing/index.html @@ -0,0 +1,1615 @@ + + + + + + + + + + + + + + + + + + + + + + + + Contributing - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

How to contribute to UPHENO

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/howto/add-relation-extension/index.html b/howto/add-relation-extension/index.html new file mode 100644 index 00000000..b1f53cc3 --- /dev/null +++ b/howto/add-relation-extension/index.html @@ -0,0 +1,1632 @@ + + + + + + + + + + + + + + + + + + + + + + + + Add the uPheno direct relation extension - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

How to add the uPheno direct relation extension

+

EQ definitions are powerful tools for reconciling phenotypes across species and driving reasoning. However, they are not all that useful for many "normal" users of our ontologies.

+

We have developed a little workflow extension to take care of that.

+
    +
  1. As usual please follow the steps to install the custom uPheno Makefile extension first.
  2. +
  3. Now add a new component to your ont-odk.yaml file (e.g. src/ontology/mp-odk.yaml): +
    components:
    +  products:
    +    - filename: eq-relations.owl
    +
  4. +
  5. We can now choose if we want to add the component to your edit file as well. To do that, follow the instructions on adding an import (i.e. adding the component to the edit file and catalog file). The IRI of the component is http://purl.obolibrary.org/obo/YOURONTOLOGY/components/eq-relations.owl. For example, for MP, the IRI is http://purl.obolibrary.org/obo/mp/components/eq-relations.owl.
  6. +
  7. Now we can generate the component: +
    sh run.sh make components/eq-relations.owl
    +
    +This command will be run automatically during a release (prepare_release).
  8. +
+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/howto/custom-upheno-makefile/index.html b/howto/custom-upheno-makefile/index.html new file mode 100644 index 00000000..4b1bf893 --- /dev/null +++ b/howto/custom-upheno-makefile/index.html @@ -0,0 +1,1634 @@ + + + + + + + + + + + + + + + + + + + + + + + + Add custom uPheno Makefile - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Add custom uPheno Makefile

+

The custom uPheno Makefile is an extension to your normal custom Makefile (for example, hp.Makefile, mp.Makefile, etc), located in the src/ontology directory of your ODK set up.

+

To install it:

+

(1) Open your normal custom Makefile and add a line in the very end:

+
include pheno.Makefile
+
+

(2) Now download the custom Makefile:

+

https://raw.githubusercontent.com/obophenotype/upheno/master/src/ontology/config/pheno.Makefile

+

and save it in your src/ontology directory.

+

Feel free to use, for example, wget:

+
cd src/ontology
+wget https://raw.githubusercontent.com/obophenotype/upheno/master/src/ontology/config/pheno.Makefile -O pheno.Makefile
+
+

From now on you can simply run

+
sh run.sh make update_pheno_makefile
+
+

whenever you wish to synchronise the Makefile with the uPheno repo.

+

(Note: it would probably be good to add a GitHub action that does that automatically.)

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/howto/editors_workflow/index.html b/howto/editors_workflow/index.html new file mode 100644 index 00000000..091b9636 --- /dev/null +++ b/howto/editors_workflow/index.html @@ -0,0 +1,1823 @@ + + + + + + + + + + + + + + + + + + + + + + + + Phenotype Ontology Editors' Workflow - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Phenotype Ontology Editors' Workflow

+ + +

Patternisation is the process of ensuring that all entity quality (EQ) descriptions from textual phenotype term definitions have a logical definition pattern. A pattern is a standard format for describing a phenotype that includes a quality and an entity. For example, "increased body size" is a pattern that includes the quality "increased" and the entity "body size." The goal of patternisation is to make the EQ descriptions more uniform and machine-readable, which facilitates downstream analysis.

+ +

The first step in the Phenotype Ontology Editors' Workflow is to identify a group of related phenotypes from diverse organisms. This can be done by considering proposals from phenotype editors or by using the pattern suggestion pipeline. +The phenotype editors may propose a group of related phenotypes based on their domain knowledge, while the pattern suggestion pipeline uses semantic similarity and shared Phenotype And Trait Ontology (PATO) quality terms to identify patterns in phenotype terms from different organism-specific ontologies.

+

2. Propose a phenotype pattern

+

Once a group of related phenotypes is identified, the editors propose a phenotype pattern. To do this, they create a Github issue to request the phenotype pattern template in the uPheno repository. +Alternatively, a new template can be proposed at a phenotype editors' meeting which can lead to the creation of a new term request as a Github issue. +Ideally, the proposed phenotype pattern should include an appropriate PATO quality term for logical definition, use cases, term examples, and a textual definition pattern for the phenotype terms.

+

3. Discuss the new phenotype pattern draft at the regular uPheno phenotype editors meeting

+

The next step is to discuss the new phenotype pattern draft at the regular uPheno phenotype editors meeting. During the meeting, the editors' comments and suggestions for improvements are collected as comments on the DOS-DP yaml template in the corresponding Github pull request. Based on the feedback and discussions, a consensus on improvements should be achieved. +The DOS-DP yaml template is named should start with a lower case letter, should be informative, and must include the PATO quality term. +A Github pull request is created for the DOS-DP yaml template.

+
    +
  • A DOS-DP phenotype pattern template example:
  • +
+
---
+pattern_name: ??pattern_and_file_name
+
+pattern_iri: http://purl.obolibrary.org/obo/upheno/patterns-dev/??pattern_and_file_name.yaml
+
+description: 'A description that helps people chose this pattern for the appropriate scenario.'
+
+#  examples:
+#    - example_IRI-1  # term name
+#    - example_IRI-2  # term name
+#    - example_IRI-3  # term name
+#    - http://purl.obolibrary.org/obo/XXXXXXXXXX  # XXXXXXXX
+
+contributors:
+  - https://orcid.org/XXXX-XXXX-XXXX-XXXX  # Yyy Yyyyyyyyy
+
+classes:
+  process_quality: PATO:0001236
+  abnormal: PATO:0000460
+  anatomical_entity: UBERON:0001062
+
+relations:
+  characteristic_of: RO:0000052
+  has_modifier: RO:0002573
+  has_part: BFO:0000051
+
+annotationProperties:
+  exact_synonym: oio:hasExactSynonym
+  related_synonym: oio:hasRelatedSynonym
+  xref: oio:hasDbXref
+
+vars:
+  var??: "'anatomical_entity'"  # "'variable_range'"
+
+name:
+  text: "trait ?? %s"
+  vars:
+    - var??
+
+annotations:
+  - annotationProperty: exact_synonym
+    text: "? of %s"
+    vars:
+      - var??
+
+  - annotationProperty: related_synonym
+    text: "? %s"
+    vars:
+      - var??
+
+  - annotationProperty: xref
+    text: "AUTO:patterns/patterns/chemical_role_attribute"
+
+def:
+  text: "A trait that ?? %s."
+  vars:
+    - var??
+
+equivalentTo:
+  text: "'has_part' some (
+    'XXXXXXXXXXXXXXXXX' and
+    ('characteristic_of' some %s) and
+    ('has_modifier' some 'abnormal')
+    )"
+  vars:
+    - var??
+...
+
+

4. Review the candidate phenotype pattern

+

Once a consensus on the improvements for a particular template is achieved, they are incorporated into the DOS-DP yaml file. Typically, the improvements are applied to the template some time before a subsequent ontology editor's meeting. There should be enough time for off-line review of the proposed pattern to allow community feedback. +The improved phenotype pattern candidate draft should get approval from the community at one of the regular ontology editors' call or in a Github comment. +The ontology editors who approve the pattern provide their ORCIDs and they are credited as contributors in an appropriate field of the DOS-DP pattern template.

+

5. Add the community-approved phenotype pattern template to uPheno

+

Once the community-approved phenotype pattern template is created, it is added to the uPheno Github repository. +The approved DOS-DP yaml phenotype pattern template should pass quality control (QC) steps. +1. Validate yaml syntax: yamllint +2. Validate DOS-DP +Use DOSDP Validator. +* To validate a template using the command line interface, execute: +```sh +yamllint +dosdp validate -i

+

After successfully passing QC, the responsible editor merges the approved pull request, and the phenotype pattern becomes part of the uPheno phenotype pattern template collection.

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/howto/pattern-merge-replace-workflow/index.html b/howto/pattern-merge-replace-workflow/index.html new file mode 100644 index 00000000..9f976760 --- /dev/null +++ b/howto/pattern-merge-replace-workflow/index.html @@ -0,0 +1,1709 @@ + + + + + + + + + + + + + + + + + + + + + + + + Pattern merge - replace workflow - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Pattern merge - replace workflow

+

This document is on how to merge new DOSDP design patterns into an ODK ontology and then how to replace the old classes with the new ones.

+

1. You need the tables in tsv format with the DOSDP filler data. Download the tsv tables to

+
$ODK-ONTOLOGY/src/patterns/data/default/
+
+

Make sure that the tsv filenames match that of the relevant yaml DOSDP pattern files.

+

2. Add the new matching pattern yaml filename to

+
$ODK-ONTOLOGY/src/patterns/dosdp-patterns/external.txt
+
+

3. Import the new pattern templates that you have just added to the external.txt list from external sources into the current working repository

+
cd ODK-ONTOLOGY/src/ontology
+sh run.sh make update_patterns
+
+

4. make definitions.owl

+
cd ODK-ONTOLOGY/src/ontology
+sh run.sh make ../patterns/definitions.owl IMP=false
+
+

5. Remove old classes and replace them with the equivalent and patternised new classes

+
cd ODK-ONTOLOGY/src/ontology
+sh run.sh make remove_patternised_classes
+
+

6. Announce the pattern migration in an appropriate channel, for example on the phenotype-ontologies Slack channel.

+

For example:

+
+

I have migrated the ... table and changed the tab colour to blue. +You can delete the tab if you wish.

+
+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/howto/run-upheno2-release/index.html b/howto/run-upheno2-release/index.html new file mode 100644 index 00000000..8a2eb352 --- /dev/null +++ b/howto/run-upheno2-release/index.html @@ -0,0 +1,1626 @@ + + + + + + + + + + + + + + + + + + + + + + + + How to run a uPheno 2 release - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

How to run a uPheno 2 release

+

In order to run a release you will have to have completed the steps to set up s3.

+
    +
  1. Clone https://github.com/obophenotype/upheno-dev
  2. +
  3. cd src/scripts
  4. +
  5. sh upheno_pipeline.sh
  6. +
  7. cd ../ontology
  8. +
  9. make prepare_upload S3_VERSION=2022-06-19
  10. +
  11. make deploy S3_VERSION=2022-06-19
  12. +
+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/howto/set-up-s3/index.html b/howto/set-up-s3/index.html new file mode 100644 index 00000000..8f909a29 --- /dev/null +++ b/howto/set-up-s3/index.html @@ -0,0 +1,1653 @@ + + + + + + + + + + + + + + + + + + + + + + + + How to set up s3 for uploading upheno data files - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

How to set yourself up for S3

+

To be able to upload new uPheno release to the uPheno S3 bucket, you need to set yourself up for S3 first.

+
    +
  1. Download and install AWS CLI
  2. +
  3. Obtain secrets from BBOP
  4. +
  5. Add configuration for secrets
  6. +
+

1. Download and install AWS CLI

+

The most convenient way to interact with S3 is the AWS Command Line Interface (CLI). You can find the installers and install instructions on that page (different depending on your Operation System): +- For Mac +- For Windows

+

2. Obtain secrets from BBOP

+

Next, you need to ask someone at BBOP (such as Chris Mungall or Seth Carbon) to provide you with an account that gives you access to the BBOP s3 buckets. You will have to provide a username. You will receive: +- User name +- Access key ID- +- Secret access key +- Console link to sign into bucket

+

3. Add configuration for secrets

+

You will now have to set up your local system. You will create two files:

+
$ less ~/.aws/config 
+[default]
+region = us-east-1
+
+

and

+
$ less ~/.aws/credentials
+[default]
+aws_access_key_id = ***
+aws_secret_access_key = ***
+
+

in ~/.aws/credentials make sure you add the correct keys as provided above.

+

4. Write to your bucket

+

Now, you should be set up to write to your s3 bucket. Note that in order for your data to be accessible through https after your upload, you need to add --acl public read.

+
aws s3 sync --exclude "*.DS_Store*" my/data-dir s3://bbop-ontologies/myproject/data-dir --acl public-read
+
+

If you have previously pushed data to the same location, you wont be able to set it to "publicly readable" by simply rerunning the sync command. If you want to publish previously private data, follow the instructions here, e.g.:

+
aws s3api put-object-acl --bucket s3://bbop-ontologies/myproject/data-dir --key exampleobject --acl public-read
+
+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/images/core_concepts.png b/images/core_concepts.png new file mode 100644 index 00000000..45c989ee Binary files /dev/null and b/images/core_concepts.png differ diff --git a/index.html b/index.html new file mode 100644 index 00000000..39f3c52b --- /dev/null +++ b/index.html @@ -0,0 +1,1614 @@ + + + + + + + + + + + + + + + + + + + + + + Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

UPHENO Ontology Documentation

+

Welcome to the UPHENO documentation!

+

It is entirely empty at the moment so look no further!

+

You can find descriptions of the standard ontology engineering workflows here.

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/odk-workflows/ContinuousIntegration/index.html b/odk-workflows/ContinuousIntegration/index.html new file mode 100644 index 00000000..5414ec21 --- /dev/null +++ b/odk-workflows/ContinuousIntegration/index.html @@ -0,0 +1,1631 @@ + + + + + + + + + + + + + + + + + + + + + + + + Manage Continuous Integration - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Introduction to Continuous Integration Workflows with ODK

+

Historically, most repos have been using Travis CI for continuous integration testing and building, but due to +runtime restrictions, we recently switched a lot of our repos to GitHub actions. You can set up your repo with CI by adding +this to your configuration file (src/ontology/upheno-odk.yaml):

+
ci:
+  - github_actions
+
+

When updateing your repo, you will notice a new file being added: .github/workflows/qc.yml.

+

This file contains your CI logic, so if you need to change, or add anything, this is the place!

+

Alternatively, if your repo is in GitLab instead of GitHub, you can set up your repo with GitLab CI by adding +this to your configuration file (src/ontology/upheno-odk.yaml):

+
ci:
+  - gitlab-ci
+
+

This will add a file called .gitlab-ci.yml in the root of your repo.

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/odk-workflows/EditorsWorkflow/index.html b/odk-workflows/EditorsWorkflow/index.html new file mode 100644 index 00000000..f1c64e0b --- /dev/null +++ b/odk-workflows/EditorsWorkflow/index.html @@ -0,0 +1,1832 @@ + + + + + + + + + + + + + + + + + + + + + + + + Editors Workflow - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Editors Workflow

+

The editors workflow is one of the formal workflows to ensure that the ontology is developed correctly according to ontology engineering principles. There are a few different editors workflows:

+
    +
  1. Local editing workflow: Editing the ontology in your local environment by hand, using tools such as Protégé, ROBOT templates or DOSDP patterns.
  2. +
  3. Completely automated data pipeline (GitHub Actions)
  4. +
  5. DROID workflow
  6. +
+

This document only covers the first editing workflow, but more will be added in the future

+

Local editing workflow

+

Workflow requirements:

+
    +
  • git
  • +
  • github
  • +
  • docker
  • +
  • editing tool of choice, e.g. Protégé, your favourite text editor, etc
  • +
+

1. Create issue

+

Ensure that there is a ticket on your issue tracker that describes the change you are about to make. While this seems optional, this is a very important part of the social contract of building an ontology - no change to the ontology should be performed without a good ticket, describing the motivation and nature of the intended change.

+

2. Update main branch

+

In your local environment (e.g. your laptop), make sure you are on the main (prev. master) branch and ensure that you have all the upstream changes, for example:

+
git checkout master
+git pull
+
+

3. Create feature branch

+

Create a new branch. Per convention, we try to use meaningful branch names such as: +- issue23removeprocess (where issue 23 is the related issue on GitHub) +- issue26addcontributor +- release20210101 (for releases)

+

On your command line, this looks like this:

+
git checkout -b issue23removeprocess
+
+

4. Perform edit

+

Using your editor of choice, perform the intended edit. For example:

+

Protégé

+
    +
  1. Open src/ontology/upheno-edit.owl in Protégé
  2. +
  3. Make the change
  4. +
  5. Save the file
  6. +
+

TextEdit

+
    +
  1. Open src/ontology/upheno-edit.owl in TextEdit (or Sublime, Atom, Vim, Nano)
  2. +
  3. Make the change
  4. +
  5. Save the file
  6. +
+

Consider the following when making the edit.

+
    +
  1. According to our development philosophy, the only places that should be manually edited are:
      +
    • src/ontology/upheno-edit.owl
    • +
    • Any ROBOT templates you chose to use (the TSV files only)
    • +
    • Any DOSDP data tables you chose to use (the TSV files, and potentially the associated patterns)
    • +
    • components (anything in src/ontology/components), see here.
    • +
    +
  2. +
  3. Imports should not be edited (any edits will be flushed out with the next update). However, refreshing imports is a potentially breaking change - and is discussed elsewhere.
  4. +
  5. Changes should usually be small. Adding or changing 1 term is great. Adding or changing 10 related terms is ok. Adding or changing 100 or more terms at once should be considered very carefully.
  6. +
+

4. Check the Git diff

+

This step is very important. Rather than simply trusting your change had the intended effect, we should always use a git diff as a first pass for sanity checking.

+

In our experience, having a visual git client like GitHub Desktop or sourcetree is really helpful for this part. In case you prefer the command line:

+
git status
+git diff
+
+

5. Quality control

+

Now it's time to run your quality control checks. This can either happen locally (5a) or through your continuous integration system (7/5b).

+

5a. Local testing

+

If you chose to run your test locally:

+

sh run.sh make IMP=false test
+
+This will run the whole set of configured ODK tests on including your change. If you have a complex DOSDP pattern pipeline you may want to add PAT=false to skip the potentially lengthy process of rebuilding the patterns.

+
sh run.sh make IMP=false PAT=false test
+
+

6. Pull request

+

When you are happy with the changes, you commit your changes to your feature branch, push them upstream (to GitHub) and create a pull request. For example:

+
git add NAMEOFCHANGEDFILES
+git commit -m "Added biological process term #12"
+git push -u origin issue23removeprocess
+
+

Then you go to your project on GitHub, and create a new pull request from the branch, for example: https://github.com/INCATools/ontology-development-kit/pulls

+

There is a lot of great advise on how to write pull requests, but at the very least you should: +- mention the tickets affected: see #23 to link to a related ticket, or fixes #23 if, by merging this pull request, the ticket is fixed. Tickets in the latter case will be closed automatically by GitHub when the pull request is merged. +- summarise the changes in a few sentences. Consider the reviewer: what would they want to know right away. +- If the diff is large, provide instructions on how to review the pull request best (sometimes, there are many changed files, but only one important change).

+

7/5b. Continuous Integration Testing

+

If you didn't run and local quality control checks (see 5a), you should have Continuous Integration (CI) set up, for example: +- Travis +- GitHub Actions

+

More on how to set this up here. Once the pull request is created, the CI will automatically trigger. If all is fine, it will show up green, otherwise red.

+

8. Community review

+

Once all the automatic tests have passed, it is important to put a second set of eyes on the pull request. Ontologies are inherently social - as in that they represent some kind of community consensus on how a domain is organised conceptually. This seems high brow talk, but it is very important that as an ontology editor, you have your work validated by the community you are trying to serve (e.g. your colleagues, other contributors etc.). In our experience, it is hard to get more than one review on a pull request - two is great. You can set up GitHub branch protection to actually require a review before a pull request can be merged! We recommend this.

+

This step seems daunting to some hopefully under-resourced ontologies, but we recommend to put this high up on your list of priorities - train a colleague, reach out!

+

9. Merge and cleanup

+

When the QC is green and the reviews are in (approvals), it is time to merge the pull request. After the pull request is merged, remember to delete the branch as well (this option will show up as a big button right after you have merged the pull request). If you have not done so, close all the associated tickets fixed by the pull request.

+

10. Changelog (Optional)

+

It is sometimes difficult to keep track of changes made to an ontology. Some ontology teams opt to document changes in a changelog (simply a text file in your repository) so that when release day comes, you know everything you have changed. This is advisable at least for major changes (such as a new release system, a new pattern or template etc.).

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/odk-workflows/ManageAutomatedTest/index.html b/odk-workflows/ManageAutomatedTest/index.html new file mode 100644 index 00000000..e5973f1e --- /dev/null +++ b/odk-workflows/ManageAutomatedTest/index.html @@ -0,0 +1,1684 @@ + + + + + + + + + + + + + + + + + + + + + + + + Manage automated tests - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Manage automated tests

+ +

Constraint violation checks

+

We can define custom checks using SPARQL. SPARQL queries define bad modelling patterns (missing labels, misspelt URIs, and many more) in the ontology. If these queries return any results, then the build will fail. Custom checks are designed to be run as part of GitHub Actions Continuous Integration testing, but they can also run locally.

+

Steps to add a constraint violation check:

+
    +
  1. Add the SPARQL query in src/sparql. The name of the file should end with -violation.sparql. Please give a name that helps to understand which violation the query wants to check.
  2. +
  3. Add the name of the new file to odk configuration file src/ontology/uberon-odk.yaml:
      +
    1. Include the name of the file (without the -violation.sparql part) to the list inside the key custom_sparql_checks that is inside robot_report key.
    2. +
    3. +

      If the robot_report or custom_sparql_checks keys are not available, please add this code block to the end of the file.

      +

        robot_report:
      +    release_reports: False
      +    fail_on: ERROR
      +    use_labels: False
      +    custom_profile: True
      +    report_on:
      +      - edit
      +    custom_sparql_checks:
      +      - name-of-the-file-check
      +
      +3. Update the repository so your new SPARQL check will be included in the QC.

      +
    4. +
    +
  4. +
+
sh run.sh make update_repo
+
+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/odk-workflows/ManageDocumentation/index.html b/odk-workflows/ManageDocumentation/index.html new file mode 100644 index 00000000..3a3142ee --- /dev/null +++ b/odk-workflows/ManageDocumentation/index.html @@ -0,0 +1,1705 @@ + + + + + + + + + + + + + + + + + + + + + + + + Manage documentation - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Updating the Documentation

+

The documentation for UPHENO is managed in two places (relative to the repository root):

+
    +
  1. The docs directory contains all the files that pertain to the content of the documentation (more below)
  2. +
  3. the mkdocs.yaml file contains the documentation config, in particular its navigation bar and theme.
  4. +
+

The documentation is hosted using GitHub pages, on a special branch of the repository (called gh-pages). It is important that this branch is never deleted - it contains all the files GitHub pages needs to render and deploy the site. It is also important to note that the gh-pages branch should never be edited manually. All changes to the docs happen inside the docs directory on the main branch.

+

Editing the docs

+

Changing content

+

All the documentation is contained in the docs directory, and is managed in Markdown. Markdown is a very simple and convenient way to produce text documents with formatting instructions, and is very easy to learn - it is also used, for example, in GitHub issues. This is a normal editing workflow:

+
    +
  1. Open the .md file you want to change in an editor of choice (a simple text editor is often best). IMPORTANT: Do not edit any files in the docs/odk-workflows/ directory. These files are managed by the ODK system and will be overwritten when the repository is upgraded! If you wish to change these files, make an issue on the ODK issue tracker.
  2. +
  3. Perform the edit and save the file
  4. +
  5. Commit the file to a branch, and create a pull request as usual.
  6. +
  7. If your development team likes your changes, merge the docs into master branch.
  8. +
  9. Deploy the documentation (see below)
  10. +
+

Deploy the documentation

+

The documentation is not automatically updated from the Markdown, and needs to be deployed deliberately. To do this, perform the following steps:

+
    +
  1. In your terminal, navigate to the edit directory of your ontology, e.g.: +
    cd upheno/src/ontology
    +
  2. +
  3. Now you are ready to build the docs as follows: +
    sh run.sh make update_docs
    +
    + Mkdocs now sets off to build the site from the markdown pages. You will be asked to
      +
    • Enter your username
    • +
    • Enter your password (see here for using GitHub access tokens instead) + IMPORTANT: Using password based authentication will be deprecated this year (2021). Make sure you read up on personal access tokens if that happens!
    • +
    +
  4. +
+

If everything was successful, you will see a message similar to this one:

+

INFO    -  Your documentation should shortly be available at: https://obophenotype.github.io/upheno/ 
+
+3. Just to double check, you can now navigate to your documentation pages (usually https://obophenotype.github.io/upheno/). + Just make sure you give GitHub 2-5 minutes to build the pages!

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/odk-workflows/ReleaseWorkflow/index.html b/odk-workflows/ReleaseWorkflow/index.html new file mode 100644 index 00000000..0f683ea9 --- /dev/null +++ b/odk-workflows/ReleaseWorkflow/index.html @@ -0,0 +1,1760 @@ + + + + + + + + + + + + + + + + + + + + + + + + Release Workflow - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

The release workflow

+

The release workflow recommended by the ODK is based on GitHub releases and works as follows:

+
    +
  1. Run a release with the ODK
  2. +
  3. Review the release
  4. +
  5. Merge to main branch
  6. +
  7. Create a GitHub release
  8. +
+

These steps are outlined in detail in the following.

+

Run a release with the ODK

+

Preparation:

+
    +
  1. Ensure that all your pull requests are merged into your main (master) branch
  2. +
  3. Make sure that all changes to master are committed to GitHub (git status should say that there are no modified files)
  4. +
  5. Locally make sure you have the latest changes from master (git pull)
  6. +
  7. Checkout a new branch (e.g. git checkout -b release-2021-01-01)
  8. +
  9. You may or may not want to refresh your imports as part of your release strategy (see here)
  10. +
  11. Make sure you have the latest ODK installed by running docker pull obolibrary/odkfull
  12. +
+

To actually run the release, you:

+
    +
  1. Open a command line terminal window and navigate to the src/ontology directory (cd upheno/src/ontology)
  2. +
  3. Run release pipeline:sh run.sh make prepare_release -B. Note that for some ontologies, this process can take up to 90 minutes - especially if there are large ontologies you depend on, like PRO or CHEBI.
  4. +
  5. If everything went well, you should see the following output on your machine: Release files are now in ../.. - now you should commit, push and make a release on your git hosting site such as GitHub or GitLab.
  6. +
+

This will create all the specified release targets (OBO, OWL, JSON, and the variants, ont-full and ont-base) and copy them into your release directory (the top level of your repo).

+

Review the release

+
    +
  1. (Optional) Rough check. This step is frequently skipped, but for the more paranoid among us (like the author of this doc), this is a 3 minute additional effort for some peace of mind. Open the main release (upheno.owl) in you favourite development environment (i.e. Protégé) and eyeball the hierarchy. We recommend two simple checks:
      +
    1. Does the very top level of the hierarchy look ok? This means that all new terms have been imported/updated correctly.
    2. +
    3. Does at least one change that you know should be in this release appear? For example, a new class. This means that the release was actually based on the recent edit file.
    4. +
    +
  2. +
  3. Commit your changes to the branch and make a pull request
  4. +
  5. In your GitHub pull request, review the following three files in detail (based on our experience):
      +
    1. upheno.obo - this reflects a useful subset of the whole ontology (everything that can be covered by OBO format). OBO format has that speaking for it: it is very easy to review!
    2. +
    3. upheno-base.owl - this reflects the asserted axioms in your ontology that you have actually edited.
    4. +
    5. Ideally also take a look at upheno-full.owl, which may reveal interesting new inferences you did not know about. Note that the diff of this file is sometimes quite large.
    6. +
    +
  6. +
  7. Like with every pull request, we recommend to always employ a second set of eyes when reviewing a PR!
  8. +
+

Merge the main branch

+

Once your CI checks have passed, and your reviews are completed, you can now merge the branch into your main branch (don't forget to delete the branch afterwards - a big button will appear after the merge is finished).

+

Create a GitHub release

+
    +
  1. Go to your releases page on GitHub by navigating to your repository, and then clicking on releases (usually on the right, for example: https://github.com/obophenotype/upheno/releases). Then click "Draft new release"
  2. +
  3. As the tag version you need to choose the date on which your ontologies were build. You can find this, for example, by looking at the upheno.obo file and check the data-version: property. The date needs to be prefixed with a v, so, for example v2020-02-06.
  4. +
  5. You can write whatever you want in the release title, but we typically write the date again. The description underneath should contain a concise list of changes or term additions.
  6. +
  7. Click "Publish release". Done.
  8. +
+

Debugging typical ontology release problems

+

Problems with memory

+

When you are dealing with large ontologies, you need a lot of memory. When you see error messages relating to large ontologies such as CHEBI, PRO, NCBITAXON, or Uberon, you should think of memory first, see here.

+

Problems when using OBO format based tools

+

Sometimes you will get cryptic error messages when using legacy tools using OBO format, such as the ontology release tool (OORT), which is also available as part of the ODK docker container. In these cases, you need to track down what axiom or annotation actually caused the breakdown. In our experience (in about 60% of the cases) the problem lies with duplicate annotations (def, comment) which are illegal in OBO. Here is an example recipe of how to deal with such a problem:

+
    +
  1. If you get a message like make: *** [cl.Makefile:84: oort] Error 255 you might have a OORT error.
  2. +
  3. To debug this, in your terminal enter sh run.sh make IMP=false PAT=false oort -B (assuming you are already in the ontology folder in your directory)
  4. +
  5. This should show you where the error is in the log (eg multiple different definitions) +WARNING: THE FIX BELOW IS NOT IDEAL, YOU SHOULD ALWAYS TRY TO FIX UPSTREAM IF POSSIBLE
  6. +
  7. Open upheno-edit.owl in Protégé and find the offending term and delete all offending issue (e.g. delete ALL definition, if the problem was "multiple def tags not allowed") and save. +*While this is not idea, as it will remove all definitions from that term, it will be added back again when the term is fixed in the ontology it was imported from and added back in.
  8. +
  9. Rerun sh run.sh make IMP=false PAT=false oort -B and if it all passes, commit your changes to a branch and make a pull request as usual.
  10. +
+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/odk-workflows/RepoManagement/index.html b/odk-workflows/RepoManagement/index.html new file mode 100644 index 00000000..23620e27 --- /dev/null +++ b/odk-workflows/RepoManagement/index.html @@ -0,0 +1,1866 @@ + + + + + + + + + + + + + + + + + + + + + + + + Manage your ODK Repository - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Managing your ODK repository

+

Updating your ODK repository

+

Your ODK repositories configuration is managed in src/ontology/upheno-odk.yaml. Once you have made your changes, you can run the following to apply your changes to the repository:

+
sh run.sh make update_repo
+
+

There are a large number of options that can be set to configure your ODK, but we will only discuss a few of them here.

+

NOTE for Windows users:

+

You may get a cryptic failure such as Set Illegal Option - if the update script located in src/scripts/update_repo.sh +was saved using Windows Line endings. These need to change to unix line endings. In Notepad++, for example, you can +click on Edit->EOL Conversion->Unix LF to change this.

+

Managing imports

+

You can use the update repository workflow described on this page to perform the following operations to your imports:

+
    +
  1. Add a new import
  2. +
  3. Modify an existing import
  4. +
  5. Remove an import you no longer want
  6. +
  7. Customise an import
  8. +
+

We will discuss all these workflows in the following.

+

Add new import

+

To add a new import, you first edit your odk config as described above, adding an id to the product list in the import_group section (for the sake of this example, we assume you already import RO, and your goal is to also import GO):

+
import_group:
+  products:
+    - id: ro
+    - id: go
+
+

Note: our ODK file should only have one import_group which can contain multiple imports (in the products section). Next, you run the update repo workflow to apply these changes. Note that by default, this module is going to be a SLME Bottom module, see here. To change that or customise your module, see section "Customise an import". To finalise the addition of your import, perform the following steps:

+
    +
  1. Add an import statement to your src/ontology/upheno-edit.owl file. We suggest to do this using a text editor, by simply copying an existing import declaration and renaming it to the new ontology import, for example as follows: +
    ...
    +Ontology(<http://purl.obolibrary.org/obo/upheno.owl>
    +Import(<http://purl.obolibrary.org/obo/upheno/imports/ro_import.owl>)
    +Import(<http://purl.obolibrary.org/obo/upheno/imports/go_import.owl>)
    +...
    +
  2. +
  3. Add your imports redirect to your catalog file src/ontology/catalog-v001.xml, for example: +
    <uri name="http://purl.obolibrary.org/obo/upheno/imports/go_import.owl" uri="imports/go_import.owl"/>
    +
  4. +
  5. Test whether everything is in order:
      +
    1. Refresh your import
    2. +
    3. Open in your Ontology Editor of choice (Protege) and ensure that the expected terms are imported.
    4. +
    +
  6. +
+

Note: The catalog file src/ontology/catalog-v001.xml has one purpose: redirecting +imports from URLs to local files. For example, if you have

+
Import(<http://purl.obolibrary.org/obo/upheno/imports/go_import.owl>)
+
+

in your editors file (the ontology) and

+
<uri name="http://purl.obolibrary.org/obo/upheno/imports/go_import.owl" uri="imports/go_import.owl"/>
+
+

in your catalog, tools like robot or Protégé will recognize the statement +in the catalog file to redirect the URL http://purl.obolibrary.org/obo/upheno/imports/go_import.owl +to the local file imports/go_import.owl (which is in your src/ontology directory).

+

Modify an existing import

+

If you simply wish to refresh your import in light of new terms, see here. If you wish to change the type of your module see section "Customise an import".

+

Remove an existing import

+

To remove an existing import, perform the following steps:

+
    +
  1. remove the import declaration from your src/ontology/upheno-edit.owl.
  2. +
  3. remove the id from your src/ontology/upheno-odk.yaml, eg. - id: go from the list of products in the import_group.
  4. +
  5. run update repo workflow
  6. +
  7. delete the associated files manually:
      +
    • src/imports/go_import.owl
    • +
    • src/imports/go_terms.txt
    • +
    +
  8. +
  9. Remove the respective entry from the src/ontology/catalog-v001.xml file.
  10. +
+

Customise an import

+

By default, an import module extracted from a source ontology will be a SLME module, see here. There are various options to change the default.

+

The following change to your repo config (src/ontology/upheno-odk.yaml) will switch the go import from an SLME module to a simple ROBOT filter module:

+
import_group:
+  products:
+    - id: ro
+    - id: go
+      module_type: filter
+
+

A ROBOT filter module is, essentially, importing all external terms declared by your ontology (see here on how to declare external terms to be imported). Note that the filter module does +not consider terms/annotations from namespaces other than the base-namespace of the ontology itself. For example, in the +example of GO above, only annotations / axioms related to the GO base IRI (http://purl.obolibrary.org/obo/GO_) would be considered. This +behaviour can be changed by adding additional base IRIs as follows:

+
import_group:
+  products:
+    - id: go
+      module_type: filter
+      base_iris:
+        - http://purl.obolibrary.org/obo/GO_
+        - http://purl.obolibrary.org/obo/CL_
+        - http://purl.obolibrary.org/obo/BFO
+
+

If you wish to customise your import entirely, you can specify your own ROBOT command to do so. To do that, add the following to your repo config (src/ontology/upheno-odk.yaml):

+
import_group:
+  products:
+    - id: ro
+    - id: go
+      module_type: custom
+
+

Now add a new goal in your custom Makefile (src/ontology/upheno.Makefile, not src/ontology/Makefile).

+
imports/go_import.owl: mirror/ro.owl imports/ro_terms_combined.txt
+    if [ $(IMP) = true ]; then $(ROBOT) query  -i $< --update ../sparql/preprocess-module.ru \
+        extract -T imports/ro_terms_combined.txt --force true --individuals exclude --method BOT \
+        query --update ../sparql/inject-subset-declaration.ru --update ../sparql/postprocess-module.ru \
+        annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) --output $@.tmp.owl && mv $@.tmp.owl $@; fi
+
+

Now feel free to change this goal to do whatever you wish it to do! It probably makes some sense (albeit not being a strict necessity), to leave most of the goal instead and replace only:

+
extract -T imports/ro_terms_combined.txt --force true --individuals exclude --method BOT \
+
+

to another ROBOT pipeline.

+

Add a component

+

A component is an import which belongs to your ontology, e.g. is managed by +you and your team.

+
    +
  1. Open src/ontology/upheno-odk.yaml
  2. +
  3. If you dont have it yet, add a new top level section components
  4. +
  5. Under the components section, add a new section called products. +This is where all your components are specified
  6. +
  7. Under the products section, add a new component, e.g. - filename: mycomp.owl
  8. +
+

Example

+
components:
+  products:
+    - filename: mycomp.owl
+
+

When running sh run.sh make update_repo, a new file src/ontology/components/mycomp.owl will +be created which you can edit as you see fit. Typical ways to edit:

+
    +
  1. Using a ROBOT template to generate the component (see below)
  2. +
  3. Manually curating the component separately with Protégé or any other editor
  4. +
  5. Providing a components/mycomp.owl: make target in src/ontology/upheno.Makefile +and provide a custom command to generate the component
      +
    • WARNING: Note that the custom rule to generate the component MUST NOT depend on any other ODK-generated file such as seed files and the like (see issue).
    • +
    +
  6. +
  7. Providing an additional attribute for the component in src/ontology/upheno-odk.yaml, source, +to specify that this component should simply be downloaded from somewhere on the web.
  8. +
+

Adding a new component based on a ROBOT template

+

Since ODK 1.3.2, it is possible to simply link a ROBOT template to a component without having to specify any of the import logic. In order to add a new component that is connected to one or more template files, follow these steps:

+
    +
  1. Open src/ontology/upheno-odk.yaml.
  2. +
  3. Make sure that use_templates: TRUE is set in the global project options. You should also make sure that use_context: TRUE is set in case you are using prefixes in your templates that are not known to robot, such as OMOP:, CPONT: and more. All non-standard prefixes you are using should be added to config/context.json.
  4. +
  5. Add another component to the products section.
  6. +
  7. To activate this component to be template-driven, simply say: use_template: TRUE. This will create an empty template for you in the templates directory, which will automatically be processed when recreating the component (e.g. run.bat make recreate-mycomp).
  8. +
  9. If you want to use more than one component, use the templates field to add as many template names as you wish. ODK will look for them in the src/templates directory.
  10. +
  11. Advanced: If you want to provide additional processing options, you can use the template_options field. This should be a string with option from robot template. One typical example for additional options you may want to provide is --add-prefixes config/context.json to ensure the prefix map of your context is provided to robot, see above.
  12. +
+

Example:

+
components:
+  products:
+    - filename: mycomp.owl
+      use_template: TRUE
+      template_options: --add-prefixes config/context.json
+      templates:
+        - template1.tsv
+        - template2.tsv
+
+

Note: if your mirror is particularly large and complex, read this ODK recommendation.

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/odk-workflows/RepositoryFileStructure/index.html b/odk-workflows/RepositoryFileStructure/index.html new file mode 100644 index 00000000..bf20e3fc --- /dev/null +++ b/odk-workflows/RepositoryFileStructure/index.html @@ -0,0 +1,1874 @@ + + + + + + + + + + + + + + + + + + + + + + + + Your ODK Repository Overview - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Repository structure

+

The main kinds of files in the repository:

+
    +
  1. Release files
  2. +
  3. Imports
  4. +
  5. Components
  6. +
+

Release files

+

Release file are the file that are considered part of the official ontology release and to be used by the community. A detailed description of the release artefacts can be found here.

+

Imports

+

Imports are subsets of external ontologies that contain terms and axioms you would like to re-use in your ontology. These are considered "external", like dependencies in software development, and are not included in your "base" product, which is the release artefact which contains only those axioms that you personally maintain.

+

These are the current imports in UPHENO

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ImportURLType
gohttps://raw.githubusercontent.com/obophenotype/pro_obo_slim/master/pr_slim.owlNone
nbohttp://purl.obolibrary.org/obo/nbo.owlNone
uberonhttp://purl.obolibrary.org/obo/uberon.owlNone
clhttp://purl.obolibrary.org/obo/cl.owlNone
patohttp://purl.obolibrary.org/obo/pato.owlNone
mpathhttp://purl.obolibrary.org/obo/mpath.owlNone
rohttp://purl.obolibrary.org/obo/ro.owlNone
omohttp://purl.obolibrary.org/obo/omo.owlNone
chebihttps://raw.githubusercontent.com/obophenotype/chebi_obo_slim/main/chebi_slim.owlNone
obahttp://purl.obolibrary.org/obo/oba.owlNone
ncbitaxonhttp://purl.obolibrary.org/obo/ncbitaxon/subsets/taxslim.owlNone
prhttps://raw.githubusercontent.com/obophenotype/pro_obo_slim/master/pr_slim.owlNone
bspohttp://purl.obolibrary.org/obo/bspo.owlNone
ncithttp://purl.obolibrary.org/obo/ncit.owlNone
fbbthttp://purl.obolibrary.org/obo/fbbt.owlNone
fbdvhttp://purl.obolibrary.org/obo/fbdv.owlNone
hsapdvhttp://purl.obolibrary.org/obo/hsapdv.owlNone
wblshttp://purl.obolibrary.org/obo/wbls.owlNone
wbbthttp://purl.obolibrary.org/obo/wbbt.owlNone
planahttp://purl.obolibrary.org/obo/plana.owlNone
zfahttp://purl.obolibrary.org/obo/zfa.owlNone
xaohttp://purl.obolibrary.org/obo/xao.owlNone
hsapdv-uberonhttp://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-hsapdv.owlcustom
zfa-uberonhttp://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-zfa.owlcustom
zfs-uberonhttp://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-zfs.owlcustom
xao-uberonhttp://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-xao.owlcustom
wbbt-uberonhttp://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-wbbt.owlcustom
wbls-uberonhttp://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-wbls.owlcustom
fbbt-uberonhttp://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-fbbt.owlcustom
xao-clhttp://purl.obolibrary.org/obo/uberon/bridge/cl-bridge-to-xao.owlcustom
wbbt-clhttp://purl.obolibrary.org/obo/uberon/bridge/cl-bridge-to-wbbt.owlcustom
fbbt-clhttp://purl.obolibrary.org/obo/uberon/bridge/cl-bridge-to-fbbt.owlcustom
+

Components

+

Components, in contrast to imports, are considered full members of the ontology. This means that any axiom in a component is also included in the ontology base - which means it is considered native to the ontology. While this sounds complicated, consider this: conceptually, no component should be part of more than one ontology. If that seems to be the case, we are most likely talking about an import. Components are often not needed for ontologies, but there are some use cases:

+
    +
  1. There is an automated process that generates and re-generates a part of the ontology
  2. +
  3. A part of the ontology is managed in ROBOT templates
  4. +
  5. The expressivity of the component is higher than the format of the edit file. For example, people still choose to manage their ontology in OBO format (they should not) missing out on a lot of owl features. They may choose to manage logic that is beyond OBO in a specific OWL component.
  6. +
+

These are the components in UPHENO

+ + + + + + + + + + + + + + + + + + + + + +
FilenameURL
phenotypes_manual.owlNone
upheno-mappings.owlNone
cross-species-mappings.owlNone
+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/odk-workflows/SettingUpDockerForODK/index.html b/odk-workflows/SettingUpDockerForODK/index.html new file mode 100644 index 00000000..a4c33bba --- /dev/null +++ b/odk-workflows/SettingUpDockerForODK/index.html @@ -0,0 +1,1626 @@ + + + + + + + + + + + + + + + + + + + + + + + + Setting up Docker for ODK - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Setting up your Docker environment for ODK use

+

One of the most frequent problems with running the ODK for the first time is failure because of lack of memory. This can look like a Java OutOfMemory exception, +but more often than not it will appear as something like an Error 137. There are two places you need to consider to set your memory:

+
    +
  1. Your src/ontology/run.sh (or run.bat) file. You can set the memory in there by adding +robot_java_args: '-Xmx8G' to your src/ontology/upheno-odk.yaml file, see for example here.
  2. +
  3. Set your docker memory. By default, it should be about 10-20% more than your robot_java_args variable. You can manage your memory settings +by right-clicking on the docker whale in your system bar-->Preferences-->Resources-->Advanced, see picture below.
  4. +
+

dockermemory

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/odk-workflows/UpdateImports/index.html b/odk-workflows/UpdateImports/index.html new file mode 100644 index 00000000..86b2c062 --- /dev/null +++ b/odk-workflows/UpdateImports/index.html @@ -0,0 +1,1811 @@ + + + + + + + + + + + + + + + + + + + + + + + + Manage imports - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Update Imports Workflow

+

This page discusses how to update the contents of your imports, like adding or removing terms. If you are looking to customise imports, like changing the module type, see here.

+

Importing a new term

+

Note: some ontologies now use a merged-import system to manage dynamic imports, for these please follow instructions in the section title "Using the Base Module approach".

+

Importing a new term is split into two sub-phases:

+
    +
  1. Declaring the terms to be imported
  2. +
  3. Refreshing imports dynamically
  4. +
+

Declaring terms to be imported

+

There are three ways to declare terms that are to be imported from an external ontology. Choose the appropriate one for your particular scenario (all three can be used in parallel if need be):

+
    +
  1. Protégé-based declaration
  2. +
  3. Using term files
  4. +
  5. Using the custom import template
  6. +
+

Protégé-based declaration

+

This workflow is to be avoided, but may be appropriate if the editor does not have access to the ODK docker container. +This approach also applies to ontologies that use base module import approach.

+
    +
  1. Open your ontology (edit file) in Protégé (5.5+).
  2. +
  3. Select 'owl:Thing'
  4. +
  5. Add a new class as usual.
  6. +
  7. Paste the full iri in the 'Name:' field, for example, http://purl.obolibrary.org/obo/CHEBI_50906.
  8. +
  9. Click 'OK'
  10. +
+

Adding Classes

+

Now you can use this term for example to construct logical definitions. The next time the imports are refreshed (see how to refresh here), the metadata (labels, definitions, etc.) for this term are imported from the respective external source ontology and becomes visible in your ontology.

+

Using term files

+

Every import has, by default a term file associated with it, which can be found in the imports directory. For example, if you have a GO import in src/ontology/go_import.owl, you will also have an associated term file src/ontology/go_terms.txt. You can add terms in there simply as a list:

+
GO:0008150
+GO:0008151
+
+

Now you can run the refresh imports workflow) and the two terms will be imported.

+

Using the custom import template

+

This workflow is appropriate if:

+
    +
  1. You prefer to manage all your imported terms in a single file (rather than multiple files like in the "Using term files" workflow above).
  2. +
  3. You wish to augment your imported ontologies with additional information. This requires a cautionary discussion.
  4. +
+

To enable this workflow, you add the following to your ODK config file (src/ontology/upheno-odk.yaml), and update the repository:

+
use_custom_import_module: TRUE
+
+

Now you can manage your imported terms directly in the custom external terms template, which is located at src/templates/external_import.owl. Note that this file is a ROBOT template, and can, in principle, be extended to include any axioms you like. Before extending the template, however, read the following carefully.

+

The main purpose of the custom import template is to enable the management off all terms to be imported in a centralised place. To enable that, you do not have to do anything other than maintaining the template. So if you, say currently import APOLLO_SV:00000480, and you wish to import APOLLO_SV:00000532, you simply add a row like this:

+
ID  Entity Type
+ID  TYPE
+APOLLO_SV:00000480  owl:Class
+APOLLO_SV:00000532  owl:Class
+
+

When the imports are refreshed see imports refresh workflow, the term(s) will simply be imported from the configured ontologies.

+

Now, if you wish to extend the Makefile (which is beyond these instructions) and add, say, synonyms to the imported terms, you can do that, but you need to (a) preserve the ID and ENTITY columns and (b) ensure that the ROBOT template is valid otherwise, see here.

+

WARNING. Note that doing this is a widespread antipattern (see related issue). You should not change the axioms of terms that do not belong into your ontology unless necessary - such changes should always be pushed into the ontology where they belong. However, since people are doing it, whether the OBO Foundry likes it or not, at least using the custom imports module as described here localises the changes to a single simple template and ensures that none of the annotations added this way are merged into the base file.

+

Refresh imports

+

If you want to refresh the import yourself (this may be necessary to pass the travis tests), and you have the ODK installed, you can do the following (using go as an example):

+

First, you navigate in your terminal to the ontology directory (underneath src in your hpo root directory). +

cd src/ontology
+

+

Then, you regenerate the import that will now include any new terms you have added. Note: You must have docker installed.

+
sh run.sh make PAT=false imports/go_import.owl -B
+
+

Since ODK 1.2.27, it is also possible to simply run the following, which is the same as the above:

+
sh run.sh make refresh-go
+
+

Note that in case you changed the defaults, you need to add IMP=true and/or MIR=true to the command below:

+
sh run.sh make IMP=true MIR=true PAT=false imports/go_import.owl -B
+
+

If you wish to skip refreshing the mirror, i.e. skip downloading the latest version of the source ontology for your import (e.g. go.owl for your go import) you can set MIR=false instead, which will do the exact same thing as the above, but is easier to remember:

+
sh run.sh make IMP=true MIR=false PAT=false imports/go_import.owl -B
+
+

Using the Base Module approach

+

Since ODK 1.2.31, we support an entirely new approach to generate modules: Using base files. +The idea is to only import axioms from ontologies that actually belong to it. +A base file is a subset of the ontology that only contains those axioms that nominally +belong there. In other words, the base file does not contain any axioms that belong +to another ontology. An example would be this:

+

Imagine this being the full Uberon ontology:

+
Axiom 1: BFO:123 SubClassOf BFO:124
+Axiom 1: UBERON:123 SubClassOf BFO:123
+Axiom 1: UBERON:124 SubClassOf UBERON 123
+
+

The base file is the set of all axioms that are about UBERON terms:

+
Axiom 1: UBERON:123 SubClassOf BFO:123
+Axiom 1: UBERON:124 SubClassOf UBERON 123
+
+

I.e.

+
Axiom 1: BFO:123 SubClassOf BFO:124
+
+

Gets removed.

+

The base file pipeline is a bit more complex than the normal pipelines, because +of the logical interactions between the imported ontologies. This is solved by _first +merging all mirrors into one huge file and then extracting one mega module from it.

+

Example: Let's say we are importing terms from Uberon, GO and RO in our ontologies. +When we use the base pipelines, we

+

1) First obtain the base (usually by simply downloading it, but there is also an option now to create it with ROBOT) +2) We merge all base files into one big pile +3) Then we extract a single module imports/merged_import.owl

+

The first implementation of this pipeline is PATO, see https://github.com/pato-ontology/pato/blob/master/src/ontology/pato-odk.yaml.

+

To check if your ontology uses this method, check src/ontology/upheno-odk.yaml to see if use_base_merging: TRUE is declared under import_group

+

If your ontology uses Base Module approach, please use the following steps:

+

First, add the term to be imported to the term file associated with it (see above "Using term files" section if this is not clear to you)

+

Next, you navigate in your terminal to the ontology directory (underneath src in your hpo root directory). +

cd src/ontology
+

+

Then refresh imports by running

+

sh run.sh make imports/merged_import.owl
+
+Note: if your mirrors are updated, you can run sh run.sh make no-mirror-refresh-merged

+

This requires quite a bit of memory on your local machine, so if you encounter an error, it might be a lack of memory on your computer. A solution would be to create a ticket in an issue tracker requesting for the term to be imported, and one of the local devs should pick this up and run the import for you.

+

Lastly, restart Protégé, and the term should be imported in ready to be used.

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/odk-workflows/components/index.html b/odk-workflows/components/index.html new file mode 100644 index 00000000..2a987a5a --- /dev/null +++ b/odk-workflows/components/index.html @@ -0,0 +1,1643 @@ + + + + + + + + + + + + + + + + + + + + + + + + Overview of components - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Adding components to an ODK repo

+

For details on what components are, please see component section of repository file structure document.

+

To add custom components to an ODK repo, please follow the following steps:

+

1) Locate your odk yaml file and open it with your favourite text editor (src/ontology/upheno-odk.yaml) +2) Search if there is already a component section to the yaml file, if not add it accordingly, adding the name of your component:

+
components:
+  products:
+    - filename: your-component-name.owl
+
+

3) Add the component to your catalog file (src/ontology/catalog-v001.xml)

+
  <uri name="http://purl.obolibrary.org/obo/upheno/components/your-component-name.owl" uri="components/your-component-name.owl"/>
+
+

4) Add the component to the edit file (src/ontology/upheno-edit.obo) +for .obo formats:

+
import: http://purl.obolibrary.org/obo/upheno/components/your-component-name.owl
+
+

for .owl formats:

+
Import(<http://purl.obolibrary.org/obo/upheno/components/your-component-name.owl>)
+
+

5) Refresh your repo by running sh run.sh make update_repo - this should create a new file in src/ontology/components. +6) In your custom makefile (src/ontology/upheno.Makefile) add a goal for your custom make file. In this example, the goal is a ROBOT template.

+
$(COMPONENTSDIR)/your-component-name.owl: $(SRC) ../templates/your-component-template.tsv 
+    $(ROBOT) template --template ../templates/your-component-template.tsv \
+  annotate --ontology-iri $(ONTBASE)/$@ --output $(COMPONENTSDIR)/your-component-name.owl
+
+

(If using a ROBOT template, do not forget to add your template tsv in src/templates/)

+

7) Make the file by running sh run.sh make components/your-component-name.owl

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/odk-workflows/index.html b/odk-workflows/index.html new file mode 100644 index 00000000..6d6fa4b3 --- /dev/null +++ b/odk-workflows/index.html @@ -0,0 +1,1626 @@ + + + + + + + + + + + + + + + + + + + + + + + + Overview - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + + + + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/organization/meetings/index.html b/organization/meetings/index.html new file mode 100644 index 00000000..ab9da30b --- /dev/null +++ b/organization/meetings/index.html @@ -0,0 +1,1692 @@ + + + + + + + + + + + + + + + + + + + + + + + + Meetings - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

The Unified Phenotype Ontology (uPheno) meeting series

+

The uPheno editors call is held every second Thursday (bi-weekly) on Zoom, provided by members of the Monarch Initiative and co-organised by members of the Alliance and Genome Resources. If you wish to join the meeting, you can open an issue on https://github.com/obophenotype/upheno/issues with the request to be added, or send an email to phenotype-ontologies-editors@googlegroups.com.

+

The meeting coordinator (MC) is the person charged with organising the meeting. The current MC is Ray, @rays22.

+

Meeting preparation

+
    +
  • The MC prepares the agenda in advance: everyone on the call is very busy and our time is precious.
  • +
  • Every agenda item has an associated ticket on GitHub, and a clear set of action items should be added in GitHub Tasklist syntax to the first comment on the issue.
  • +
  • If there are issues for any subtasks (e.g. PATO or Uberon edits), the list should be edited to link these.
  • +
  • Any items that do not have a subissue but do involve changes to patterns) should be edited to link to implementing PR.
  • +
  • It does not matter who wrote the first issue comment, the uPheno team can simply add a tasklist underneath the original comment and refine it over time.
  • +
  • Tag all issues which need discussion with "upheno call"
  • +
  • It must be clear from the task list what the uPheno team should be doing during the call (discuss, decide, review). For example, one item on the task list may read: "uPheno team to decide on appropriate label for template".
  • +
  • Conversely, no issue should be added to the agenda that does not have a clear set of action items associated with it that should be addressed during the call. These actions may include making and documenting modelling decisions.
  • +
  • Go through up to 10 issues on the uPheno issue tracker before each meeting to determine how to progress on them, and add action items. Only if they need to be discussed, add the "upheno call" label.
  • +
+

Meeting

+
    +
  • Every meeting should start with a quick (max 5 min, ideally 3 min) overview of all the goals and how they processed. The MC should mention all blockers and goals, even the ones we did not make any progress on, to keep the focus on the priorities:
  • +
  • uPheno releases
  • +
  • uPheno documentation
  • +
  • Pattern creation
  • +
  • Patternisation: The process of ensuring that phenotype ontologies are using uPheno conformant templates to define their phenotypes.
  • +
  • Harmonisation: The process of ensuring that phenotype patterns are applied consistently across ontologies.
  • +
  • For new pattern discussions:
  • +
  • Every new pattern proposal should come with a new GitHub issue, appropriately tagged.
  • +
  • The issue text should detail the use cases for the pattern well, and these use cases should also be documented in the "description" part of the DOSDP YAML file. Uses cases should include expected classifications and why we want them (and potentially classifications to avoid). e.g. axis-specific dimension traits should classify under more abstractly defined dimension traits which in term should classify under Morphology. Add some examples of contexts where grouping along these classifications is useful.
  • +
  • Agenda items may include discussion and decisions about more general modelling issues that affect more than one pattern, but these should also be documented as tickets as described above.
  • +
+

After the meeting

+
    +
  • After every meeting, update all issues discussed on GitHub and, in particular, clarify the remaining action items.
  • +
  • Ensure that the highest priority issues are discussed first.
  • +
+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/organization/outreach/index.html b/organization/outreach/index.html new file mode 100644 index 00000000..7972320e --- /dev/null +++ b/organization/outreach/index.html @@ -0,0 +1,1705 @@ + + + + + + + + + + + + + + + + + + + + + + + + Outreach - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

The Outreach Programme of the Unified Phenotype Ontology (uPheno) development team

+

Outreach-calls

+

The uPheno organises an outreach call every four weeks to listen to external stakeholders describing their need for cross-species phenotype integration.

+

Schedule

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
DateLessonNotesRecordings
2024/04/05TBDTBD
2024/3/08Computational identification of disease models through cross-species phenotype comparisonDiego A. Pava, Pilar Cacheiro, Damian Smedley (IMPC)Recording
2024/02/09Use cases for uPheno in the Alliance of Genome Resources and MGISue Bello (Alliance of Genome Resources, MGI)Recording
+

Possible topics

+
    +
  • Cross-species inference in Variant and Gene Prioritisation algorithms (Exomiser).
  • +
  • Cross-species comparison of phenotypic profiles (Monarch Initiative Knowledge Graph)
  • +
  • Cross-species data in biomedical knowledge graphs (Kids First)
  • +
+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/components/dpo/index.html b/reference/components/dpo/index.html new file mode 100644 index 00000000..1b015a58 --- /dev/null +++ b/reference/components/dpo/index.html @@ -0,0 +1,1682 @@ + + + + + + + + + + + + + + + + + + + + + + + + Drosophila Phenotype Ontology - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Drosophila Phenotype Ontology

+ +
    +
  1. summary Drosophila Phenotype Ontology
  2. +
+

*The Drosophila phenotype +ontologyOsumi-Sutherland et al, J Biomed Sem.

+

The DPO is formally a subset of FBcv, made available from +http://purl.obolibrary.org/obo/fbcv/dpo.owl

+

Phenotypes in FlyBase may either by assigned to FBcv (dpo) classes, or +they may have a phenotype_manifest_in to FBbt (anatomy).

+

For integration we generate the following ontologies:

+

*http://purl.obolibrary.org/obo/upheno/imports/fbbt_phenotype.owl\ +*http://purl.obolibrary.org/obo/upheno/imports/uberon_phenotype.owl\ +*http://purl.obolibrary.org/obo/upheno/imports/go_phenotype.owl\ +*http://purl.obolibrary.org/obo/upheno/imports/cl_phenotype.owl

+

(see Makefile)

+

This includes a phenotype class for every anatomy class - the IRI is +suffixed with "PHENOTYPE". Using these ontologies, Uberon and CL +phenotypes make the groupings.

+

We include

+

*http://purl.obolibrary.org/obo/upheno/dpo/dpo-importer.owl

+

Which imports dpo plus auto-generated fbbt phenotypes.

+

The dpo-importer is included in the [MetazoanImporter]

+

Additional Notes

+

We create a local copy of fbbt that has "Drosophila " prefixed to all +labels. This gives us a hierarchy:

+

* eye phenotype (defined using Uberon)\ +* compound eye phenotype  (defined using Uberon)\ +* drosophila eye phenotype (defined using FBbt)

+

TODO

+

*http://code.google.com/p/cell-ontology/issues/detail?id=115ensure all CL to FBbt equiv axioms are present (we have good coverage for Uberon)

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/components/fypo/index.html b/reference/components/fypo/index.html new file mode 100644 index 00000000..6386510a --- /dev/null +++ b/reference/components/fypo/index.html @@ -0,0 +1,1616 @@ + + + + + + + + + + + + + + + + + + + + + + + + Fission Yeast Phenotype Ontology - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+ +
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/components/hp/index.html b/reference/components/hp/index.html new file mode 100644 index 00000000..58ed662b --- /dev/null +++ b/reference/components/hp/index.html @@ -0,0 +1,1640 @@ + + + + + + + + + + + + + + + + + + + + + + + + Human Phenotype Ontology - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +
    +
  1. summary Human Phenotype Ontology
  2. +
  3. labels Featured
  4. +
+

Links

+

*http://www.human-phenotype-ontology.org/\ +* Köhler S, Doelken SC, Mungall CJ, Bauer S, Firth HV, Bailleul-Forestier I, Black GC, Brown DL, Brudno M, Campbell J, FitzPatrick DR, Eppig JT, Jackson AP, Freson K, Girdea M, Helbig I, Hurst JA, Jähn J, Jackson LG, Kelly AM, Ledbetter DH, Mansour S, Martin CL, Moss C, Mumford A, Ouwehand WH, Park SM, Riggs ER, Scott RH, Sisodiya S, Van Vooren S, Wapner RJ, Wilkie AO, Wright CF, Vulto-van Silfhout AT, de Leeuw N, de Vries BB, Washingthon NL, Smith CL, Westerfield M, Schofield P, Ruef BJ, Gkoutos GV, Haendel M, Smedley D, Lewis SE, Robinson PN. The Human Phenotype Ontology project: linking molecular biology and disease through phenotype data.Nucleic Acids Res.2014 Jan;42(Database issue):D966-74 [pubmed]

+

*HPO +browser\ +*HP in +OntoBee\ +*HP in OLSVis

+

OWL Axiomatization

+

The OWL axioms for HP are in the +src/ontology/hp +directory on this site.

+

The structure is analagous to that of the [MP].

+

Status

+

The OWL axiomatization is updated frequently to stay in sync with +changes in the MP

+

Editing the axioms

+

The edit file is currently:

+

*http://purl.obolibrary.org/obo/hp/hp-equivalence-axioms-subq-ubr.owl

+

Edit this in protege.

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/components/index.html b/reference/components/index.html new file mode 100644 index 00000000..69019c28 --- /dev/null +++ b/reference/components/index.html @@ -0,0 +1,1610 @@ + + + + + + + + + + + + + + + + + + + + + + + + Overview - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/components/mp/index.html b/reference/components/mp/index.html new file mode 100644 index 00000000..816bdd2f --- /dev/null +++ b/reference/components/mp/index.html @@ -0,0 +1,1654 @@ + + + + + + + + + + + + + + + + + + + + + + + + Mammalian Phenotype Ontology - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +
    +
  1. summary Mouse Phenotype Ontology
  2. +
  3. labels Featured
  4. +
+

Links

+

*The Mammalian Phenotype Ontology: enabling robust +annotation and comparative +analysisSmith CL, Eppig JT\ +*MP browser at +MGI\ +*MP in +OntoBee\ +*MP in OLSVis

+

OWL Axiomatization

+

The OWL axioms for MP are in the +src/ontology/mp +directory on this site.

+

*http://purl.obolibrary.org/obo/mp.owl- direct conversion of MGI-supplied obo file\ +*http://purl.obolibrary.org/obo/mp/mp-importer.owl- imports additional axioms, including the following ones below:\ +*http://purl.obolibrary.org/obo/mp.owl\ +*http://purl.obolibrary.org/obo/upheno/imports/chebi_import.owl\ +*http://purl.obolibrary.org/obo/upheno/imports/uberon_import.owl\ +*http://purl.obolibrary.org/obo/upheno/imports/pato_import.owl\ +*http://purl.obolibrary.org/obo/upheno/imports/go_import.owl\ +*http://purl.obolibrary.org/obo/upheno/imports/mpath_import.owl\ +*http://purl.obolibrary.org/obo/mp/mp-equivalence-axioms-subq-ubr.owl\ +\

+

Status

+

The OWL axiomatization is updated frequently to stay in sync with +changes in the MP

+

Editing the axioms

+

The edit file is currently:

+

*http://purl.obolibrary.org/obo/mp/mp-equivalence-axioms-edit.owl

+

Edit this in protege.

+

The file mp-equivalence-axioms.obo is DEPRECATED!

+

TermGenie

+

*http://mp.termgenie.org/\ +*http://mp.termgenie.org/TermGenieFreeForm

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/components/wbphenotype/index.html b/reference/components/wbphenotype/index.html new file mode 100644 index 00000000..0b1aef8f --- /dev/null +++ b/reference/components/wbphenotype/index.html @@ -0,0 +1,1641 @@ + + + + + + + + + + + + + + + + + + + + + + + + C. elegans Phenotype Ontology - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +
    +
  1. summary Worm Phenotype Ontology
  2. +
  3. labels Featured
  4. +
+

Links

+

* Schindelman, Gary, et al.Worm Phenotype Ontology: +integrating phenotype data within and beyond the C. +elegans +community.BMC bioinformatics 12.1 (2011): 32.\ +*WBPhenotype in +OntoBee\ +*WBPhenotype in +OLSVis

+

OWL Axiomatization

+

The OWL axioms for WBPhenotype are in the +src/ontology/wbphenotype +directory on this site.

+

*http://purl.obolibrary.org/obo/wbphenotype.owl- direct conversion of WormBase-supplied obo file\ +*http://purl.obolibrary.org/obo/wbphenotype/wbphenotype-importer.owl- imports additional axioms.

+

The structure roughly follows that of the [MP]. The worm anatomy is +used.

+

Editing the axioms

+

Currently the source is wbphenotype/wbphenotype-equivalence-axioms.obo, +the OWL is generated from here. We are considering switching this +around, so the OWL is edited, using Protege.

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/components/zp/index.html b/reference/components/zp/index.html new file mode 100644 index 00000000..666ecdf6 --- /dev/null +++ b/reference/components/zp/index.html @@ -0,0 +1,1649 @@ + + + + + + + + + + + + + + + + + + + + + + + + Zebrafish Phenotype Ontology - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Introduction

+

This page describes the generation of the zebrafish phenotype ontology

+

Details

+

The ZP differs considerably from [HP], [MP] and others. ZFIN do not +annotate with a pre-composed phenotype ontology - all annotations +compose phenotypes on-the-fly using a combination of PATO, ZFA, GO and +other ontologies.

+

We use these combinations to construct ZP on the fly, by naming each +distinct combination, assigning it an ID, and placing it in the +hierarchy.

+

The process is described here:

+ +

The OWL formalism for ZFIN annotations is described here:

+ +

The java implementation is here:

+
    +
  • https://github.com/sba1/bio-ontology-zp
  • +
+

OWL Axiomatization

+

The OWL axioms for ZP are in +zp.owl +that is build on our hudson server.

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/core-concepts/index.html b/reference/core-concepts/index.html new file mode 100644 index 00000000..9bf6981f --- /dev/null +++ b/reference/core-concepts/index.html @@ -0,0 +1,1982 @@ + + + + + + + + + + + + + + + + + + + + + + + + Core concepts - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Core concepts

+ +

Traits and phenotypes - the Conceptual model

+

Overview

+

Here, we discuss the core concepts of the computational phenotype model underpinning the uPheno effort.

+

Table of contents

+ +

+

General characteristics

+

"Characteristics" or "qualities" refer to an inherent or distinguishing characteristic or attribute of something or someone. +It represents a feature that defines the nature of an object, organism, or entity and can be used to describe, compare, and categorize different things. +Characteristics can be either qualitative (such as color, texture, or taste) or quantitative (such as height, weight, or age).

+

The Phenotype And Trait Ontology (PATO) is the reference ontology for general characteristics in the OBO world.

+

Some of the most widely use characteristics can be seen in the following tables

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
qualitydescriptionexample
Length (PATO:0000122)A 1-D extent quality which is equal to the distance between two points.
Mass (PATO:0000128)A physical quality that inheres in a bearer by virtue of the proportion of the bearer's amount of matter.
Amount (PATO:0000070)The number of entities of a type that are part of the whole organism.
Morphology (PATO:0000051)A quality of a single physical entity inhering in the bearer by virtue of the bearer's size or shape or structure.
+

Note from the authors: The descriptions above have been taken from PATO, but they are not very.. user friendly.

+

+

Biological Trait/Characteristics/Attribute

+

Characteristics such as the one above can be used to describe a variety of entities such as biological, environmental and social. +We are specifically concerned with biological traits, which are characteristics that refer to an inherent characteristic of a biological entity, such as an organ (the heart), a process (cell division), a chemical entity (lysine) in the blood.

+

The Ontology of Biological Attributes (OBA) is the reference ontology for biological characteristics in the OBO world. +There are a few other ontologies that describe biological traits, such as the Vertebrate Phenotype Ontology and the Ascomycete Phenotype Ontology (APO), but these are more species specific, and, more importantly, are not integrated in the wider EQ modelling framework.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PropertyExample termDefinition
LengthOBA:VT0002544The length of a digit.
MassOBA:VT0001259The mass of a multicellular organism.
LevelOBA:2020005The amount of lysine in blood.
MorphologyOBA:VT0005406The size of a heart.
+

+

Bearer of Biological Characteristics

+

In biological contexts, the term "bearer" refers to the entity that possesses or carries a particular characteristic or quality. +The bearer can be any biological entity, such as an organism, an organ, a cell, or even a molecular structure, that exhibits a specific trait or feature. +Some examples:

+
    +
  1. Organism as a Bearer:
      +
    • Example: A specific tree (such as an oak tree) is the bearer of the characteristic 'height'.
    • +
    • Explanation: The tree as an organism carries or has the property of height, making it the bearer of this characteristic.
    • +
    +
  2. +
  3. Organ as a Bearer:
      +
    • Example: The heart of a mammal can be the bearer of the characteristic 'heart size'.
    • +
    • Explanation: Here, the heart is the organ that possesses the 'heart size' charactertistic. The characteristic ('heart size') is a quality of the heart itself.
    • +
    +
  4. +
  5. Cell as a Bearer:
      +
    • Example: A red blood cell is the bearer of the characteristic 'cell diameter'.
    • +
    • Explanation: The diameter is a property of the individual cell. Thus, each red blood cell is the bearer of its diameter measurement.
    • +
    +
  6. +
  7. Molecular Structure as a Bearer:
      +
    • Example: A DNA molecule can be the bearer of the characteristic 'sequence length'.
    • +
    • Explanation: The length of the DNA sequence is a property of the DNA molecule itself, making the molecule the bearer of this characteristic.
    • +
    +
  8. +
  9. Genetic Trait as a Bearer:
      +
    • Example: A fruit fly (Drosophila melanogaster) can be the bearer of a genetic trait like eye color.
    • +
    • Explanation: The organism (fruit fly) carries the genetic information that determines eye color, making it the bearer of this specific trait.
    • +
    +
  10. +
+

In each example, the "bearer" is the entity that has, carries, or exhibits a particular biological characteristic. This concept is fundamental in biology and bioinformatics for linking specific traits, qualities, or features to the entities that possess them, thereby enabling a clearer understanding and categorization of biological diversity and functions.

+

+

Phenotypic change

+

A phenotypic change refers to some deviation from reference morphology, physiology, or behavior. +This is the most widely used, and most complicated category of phenotype terms for data specialists to understand.

+

Conceptually, a phenotypic change comprises:

+
    +
  • a biological attribute (which includes a biological bearer)
  • +
  • an "change" modifier
  • +
  • (optionally) a directional modifier (increased / decreased)
  • +
  • a comparator
  • +
+

Biological attributes such as blood lysine amount (OBA:2020005) have been discussed earlier in this document. +The most widely used change modifier used in practice is abnormal (PATO:0000460). +This modifier signifies that the phenotypic change term describes a deviation that is abnormal, such as "Hyperlysinemia" (HP:0002161), which describes and increased concentration of lysine in the blood. +Other modifiers include normal (PATO:0000461), which describes a change within in the normal range (sometimes interpreted as "no change"). +A directional modifier like increased (PATO:0040043) or decreased (PATO:0040042). In practice, most of our "characteristic" terms have specialised directional variants such as decreased amount (PATO:0001997) which can be used to describe phenotypes.

+

The nuissance of "implicit comparators"

+

Comparators are the most confusing aspects of phenotypic change. +The first question someone has to ask when they see a concept describing is change like increased blood lysine levels is "compared to what?". +Depending on biological context, the assumed comparators vary widely. +For example, in clinical phenotyping, it is mostly assumed that +a phenotypic feature corresponds to a deviation from the normal range, see HPO docs. +However, it is just just as easily imaginable that HPO terms are used to describe change compared to a previous state of the same individual (increased tumor size compared to last time we checked). +In research settings such as GWAS study annotations, HPO terms are used to annotate variants where a statistically significant change was observed compared to the general population. +The same is true for many model phenotyping efforts such as MGI, where the situation is even further complicated that the comparator is not "the general population", but a control group. In summary, comparators can be:

+
    +
  • The general population ("wild type" in research)
  • +
  • A non-representative sample of the general population (blood glucose values of all diabetes patients, a control group from the same mouse strain)
  • +
  • A previous state of a study subject (e.g. SNOMED).
  • +
+

And the compared charactertistics could be

+
    +
  • Deviating from some notion of normality (abnormal)
  • +
  • A statistically significant change (including within normal)
  • +
+

No matter how much we want it - concepts describing phenotypic change will be used in many creative ways, and unfortunately, once the data hits your data analysis pipeline, you will likely not know for sure the nature of the comparator. +Where you can, you should try to figure it out from the metata.

+

This sounds like bad news. However, keep one thing in mind: +Phenotype associations (to anything, including genes) are rarely strictly causal. +Even if a change is observed "compared to some non-representative control" there is likely to be some signal useful for downstream inference - somehow, the "gene has something to do with the phenotype".

+

The chaotic terminology around "phenotype"

+

In the clinical domain, many ontologies exist that define concepts that are very strongly related to our notion of "phenotype". +In SNOMED, for example, "clinical findings" are defined as normal/abnormal observations, judgments, or assessments of patients (e.g. Abnormal urinalysis (finding)). +For most analytic purposes, we think of SNOMEDs (and other medical terminologies) notion of clinical finding of something ortologous to our notion of "phenotype" (and their "observale entity" as a trait/biological attribute). +However, if one gets into the weeds, many discrepencies in judgement can be observed, in particular when it comes to the separation from disease.

+

"Phenotype" is typically used in its "singular" form to describe the set of all observable characteristics of a subject. +However, because we have over time gotten used to talking about "cardiovascular phenotype" and "increased blood glucose level", we have started using the plural form more, i.e. "phenotypes". +We now tend to use the term "phenotypic profile" to describe the set of phenotypes that an organism exhibits at some point in time.

+

"Phenotypic feature" is a commonly used term that refers to the same idea, but mostly in the context of disease to describe an observable characteristic commonly associated with a disease.

+

"Phenotypic abnormality" is the formal term to describe a concept in the HPO, and is sometimes used to refer to the same idea in HPO-related papers. +There is a bit of an assumption here, compared to the more general concepts described in this section, which is that the term should refer to a "deviation from the normal range", but, as described in the section of "implicit comparators", this assumption does not always hold in practice.

+

"Phenotypic change" is a recent invention by David Osumi-Sutherland in an attempt to subsume the ideas above, in particular to explicitly step back from the concept of "deviation from normal" to "statistically significant deviation" (which includes the normal range).

+

Examples

+

The Unified Phenotype Ontology (uPheno) is the reference ontology for biological abnormalities in the OBO world. +There are a many species-specific ontologies in the OBO world, such as the Mammalian Phenotype Ontology (MP), the Human Phenotype Ontology (HPO) and the Drosophila Phenotype Ontology (DPO), see here.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PropertyExample termDefinition
LengthUPHENO:0072215Increased length of the digit.
MassUPHENO:0054299Decreased multicellular organism mass.
LevelUPHENO:0034327Decreased level of lysine in blood.
MorphologyUPHENO:0001471Increased size of the heart.
+

+

Diseases

+

Diseases are among the most important concepts in the phenotype data space. Phenotypes relate +One big source of confusion in our community is the seperation of "phenotypic features" or changes from diseases. +The HPO docs provide an explanation geared at clinicians to help them distinguish between the two. +The quest on developing an operational definition is still ongoing, but for now, we recommend to go with the following basic assumptions:

+
    +
  1. There is a difference between disease and phenotype.
  2. +
  3. Phenotypes are features of diseases. Diseases can be associated with 1 or more phenotypic features. In the case of 1, we sometimes talk about "isolated X", for example "Isolated Growth Hormone Deficiency (IGHD)". IGHD is a condition where the pituitary gland produces insufficient growth hormone, leading to stunted growth.
  4. +
  5. Diseases, despite their grounding in biological reality, should be perceived mostly as social constructs that (adjusted from HPO docs):
      +
    • Are used to capture a diagnosis (not just an observation - a judgement).
    • +
    • Are associated with a defined etiology (whether identified or as yet unknown, idiopathic). This is not about have some cause. This is about having a specific cause, even if it is unknown.
    • +
    • Have a defined time course (more or less well understood).
    • +
    • If treatments exist, there is a characteristic response to them. +The key point is that the above are part of the disease definition.
    • +
    +
  6. +
+

+

Measurements

+

In biological data curation, it’s essential to differentiate between traits (observable characteristics such as "blood glucose level") and measurements (a process to observe such characteristics, e.g. "blood glucose level assay", "BMI"). +Just from the term itself this is often difficult. +"Blood glucose level" can refer both a measurement and a trait when taken out of context, but the ontologies they appear in should differenciate cleanly between the two. +Here are some ways to distinguish them: +- traits are + - observable characteritics of an organism + - can be qualitative ("red eye colour") or quantitative ("35 cm tail length") +- measurements are + - activties performed by an agent (such as a researcher) + - involve the quantification or qualification of a specific trait + - correspond to measurement instruments / techniques (such as assays, BMIs)

+

In practice, it is true that a lot of data records a wild mix of the two. +It is the job of (semantic) data modeling specialists to clearly distinguish the two when integrating annotate data from sources with divergent curation practices.

+

Putting it all together

+

Core concepts

+

Characteristics (A) and bearers of characteristics (B) are the core constituents of traits/biological attributes (C). Phenotypes are comprised of trait terms (C) combined with a modifier (D). Species-specific phenotypes (F), including phenotypic abnormalities defined in the Human Phenotype Ontology (HPO) are feature of diseases (G). Measurements (H), such as assays, quantify or qualify (measure) traits (C).

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/data-integration/index.html b/reference/data-integration/index.html new file mode 100644 index 00000000..14e08859 --- /dev/null +++ b/reference/data-integration/index.html @@ -0,0 +1,1700 @@ + + + + + + + + + + + + + + + + + + + + + + + + Integrating phenotype data with the uPheno framework - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Integrating phenotype data with the uPheno framework

+ +

Integrating phenotype data using the uPheno framework

+

Prerequisites

+ +

Level 1 integration: Data

+

Before we get started, let's remind ourselves of the basic structure of phenotype data.

+

Core concepts

+

Characteristics (A) and bearers of characteristics (B) are the core constituents of traits/biological attributes (C). Phenotypes are comprised of trait terms (C) combined with a modifier (D). Species-specific phenotypes (F), including phenotypic abnormalities defined in the Human Phenotype Ontology (HPO) are feature of diseases (G). Measurements (H), such as assays, quantify or qualify (measure) traits (C).

+

Integrating all kinds of phenotype data into the "uPheno framework" is a complex process which we will break down in the following.

+

Level 2 integration: Knowledge

+

Important relationships wrt to phenotype data

+
    +
  • inheres in / characteristic of
  • +
  • bearer of
  • +
+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/eq/index.html b/reference/eq/index.html new file mode 100644 index 00000000..2385c09c --- /dev/null +++ b/reference/eq/index.html @@ -0,0 +1,1610 @@ + + + + + + + + + + + + + + + + + + + + + + + + Overview of EQ modelling - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/imports/go/index.html b/reference/imports/go/index.html new file mode 100644 index 00000000..6f651244 --- /dev/null +++ b/reference/imports/go/index.html @@ -0,0 +1,1610 @@ + + + + + + + + + + + + + + + + + + + + + + + + Gene Ontology - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/imports/index.html b/reference/imports/index.html new file mode 100644 index 00000000..1e2c6ca2 --- /dev/null +++ b/reference/imports/index.html @@ -0,0 +1,1642 @@ + + + + + + + + + + + + + + + + + + + + + + + + Overview - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +
    +
  1. labels Featured
  2. +
  3. Imported ontologies
  4. +
+

Introduction

+

Imports directory:

+

*http://purl.obolibrary.org/obo/upheno/imports/

+

Currently the imports includes:

+

* imports/chebi_import.owl\ +* imports/doid_import.owl\ +* imports/go_import.owl\ +* imports/mpath_import.owl\ +* imports/pato_import.owl\ +* imports/pr_import.owl\ +* imports/uberon_import.owl\ +* imports/wbbt_import.owl

+

Anatomy

+

To avoid multiple duplicate classes for heart, lung, skin etc we map all +classes to [Uberon] where this is applicable. For more divergent species +such as fly and C elegans we use the appropriate species-specific +ontology.

+

Currently there are a small number of highly specific classes in FMA +that are being used and have no corresponding class in Uberon

+

Methods

+

We use the OWLAPI SyntacticLocalityModularityExtractor, via [OWLTools]. +See the http://purl.obolibrary.org/obo/upheno/Makefile for details

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/imports/pato/index.html b/reference/imports/pato/index.html new file mode 100644 index 00000000..393a0ef1 --- /dev/null +++ b/reference/imports/pato/index.html @@ -0,0 +1,1624 @@ + + + + + + + + + + + + + + + + + + + + + + + + PATO - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +
    +
  1. summary PATO
  2. +
+

Introduction

+

PATO is an ontology of phenotypic qualities. We use PATO to compose +phenotypic descriptions. See [OWLAxiomatization]

+

Details

+

See https://code.google.com/p/pato/

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/imports/uberon/index.html b/reference/imports/uberon/index.html new file mode 100644 index 00000000..a63fc49c --- /dev/null +++ b/reference/imports/uberon/index.html @@ -0,0 +1,1610 @@ + + + + + + + + + + + + + + + + + + + + + + + + Uberon - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/mappings/index.html b/reference/mappings/index.html new file mode 100644 index 00000000..5bc2cd1e --- /dev/null +++ b/reference/mappings/index.html @@ -0,0 +1,1610 @@ + + + + + + + + + + + + + + + + + + + + + + + + Overview - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/mappings/mp_hp/index.html b/reference/mappings/mp_hp/index.html new file mode 100644 index 00000000..55e19cb8 --- /dev/null +++ b/reference/mappings/mp_hp/index.html @@ -0,0 +1,1610 @@ + + + + + + + + + + + + + + + + + + + + + + + + MP-HP - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/modelling/abnormal/index.html b/reference/modelling/abnormal/index.html new file mode 100644 index 00000000..aa233551 --- /dev/null +++ b/reference/modelling/abnormal/index.html @@ -0,0 +1,1644 @@ + + + + + + + + + + + + + + + + + + + + + + + + Abnormal phenotypes - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +
    +
  1. summary How inference of abnormality works
  2. +
+

Introduction

+

The current design patterns are such that the abnormal qualifier is only +added when the quality class in the definition is neutral.

+

However, we still need to be able to infer

+

* Hyoplasia of right ventricle SubClassOf Abnormality of right ventricle

+

Because the latter class definition includes qualifier some abnormal, +the SubClassOf axiom will not be entailed unless the qualifier is +explicitly stated or inferred

+

Details

+

We achieve this by including an axiom to PATO such that decreased sizes +etc are inferred to be qualifier some abnormal.

+

We do this with an exiom in imports/extra.owl

+

* 'deviation(from normal)' SubClassOf qualifier some abnormal

+

Anything under 'increased', 'decreased' etc in PATO is pre-reasoned in +PATO to be here.

+

See the following explanation:

+

http://phenotype-ontologies.googlecode.com/svn/trunk/doc/images/has-qualifier-inference.png

+

Limitations

+

For this strategy to work it requires the PATO classes themselves to be +classified under deviation from normal. This may not always be the case

+

Notes

+

Do not be distracted by the fact the has-qualifier relation is named +has-component at the moment

+

https://code.google.com/p/phenotype-ontologies/issues/detail?id=45

+

Notes

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/modelling/absence/index.html b/reference/modelling/absence/index.html new file mode 100644 index 00000000..5dded0c2 --- /dev/null +++ b/reference/modelling/absence/index.html @@ -0,0 +1,1697 @@ + + + + + + + + + + + + + + + + + + + + + + + + Absence modelling - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +
    +
  1. summary Discussion of issues pertaining to modeling of absence in + phenotype ontologies
  2. +
+

Introduction

+

Much has been written on the subject of representing absence. Before +diving into the logical issues it is worth examining patterns in +existing phenotype ontologies to understand what user expectations may +typically be for absence.

+

Background

+

*Absence_Phenotypes_in_OWL(Phenoscape Wiki)\ +* (outdated) material on the oldPATO +wiki.

+

Details

+

Strict logical absence vs absence of some

+

It is not uncommon to see patterns such as

+

From a strict logical perspective, this is inverted. "absent incisors" +surely means "absence of all incisors", or put another way "the animal +has no incisors". Yet it would be possible to have an animal with +*absent* lower incisors and *present* upper incisors, yielding what +seems a contradiction (because the subClass axiom would say this +partial-incisor animal lacked all incisors).

+

If the ontology were in fact truly modeling "absence of *all* S" then +it would lead to a curious ontology structure, with the typical tree +structure of the anatomy ontology representing S inverted into a +polyhierarchical fan in the absent-S ontology.

+

From this it can be cautiously inferred that the intent of the phenotype +ontology curator and user is in fact to model "absence of *some* S" +rather than "absence of *all* S". This is not necessarily a universal +rule, and the intent may vary depending on whether we are talking about +a serially repeated structure or one that typically occurs in isolation. +The intent may also be to communicate that a *significant number* of S +is missing.

+

Absence as a type of morphology

+

It is also not uncommon to see patterns such as:

+

Again, from a strict logical perspective this is false. If the spleen is +absent then what does the "morphology" of the parent refer to?

+

However, this inference is clearly a desirable one from the point of +view of the phenotype ontology editors and users, as it is common in +ontologies for a variety of structures. For example:

+

And:

+

These patterns can be formally defended on developmental biology +grounds. "absence" here is _not_ equivalent to logical absence. It +refers specifically to developmental absence.

+

Furthermore, strict logical absence leads to undesirable inferences. It +would be odd to include a nematode worm as having the phenotype "spleen +absent", because worms have not evolved spleens. But the logical +description of not having a spleen as part fets a worm.

+

Similarly, if the strict cardinality interpretation were intended, we +would expect to see:

+

i.e. if you're missing your entire hindlegs, you're *necessarily* +missing your femurs. But it must be emphatisized that this is *not* +how phenotype ontologies are classified. This goes for a wide range of +structures and other relationship types. In MP, "absent limb buds" are +*not* classified under "absent limbs", even though it is impossible +for a mammal to have limbs without having had limb buds.

+

Absence as part of a size-morphology spectrum

+

The existing treatment of absence can be formally defended +morphologically by conceiving of a morphological value space, with +"large" at one end and "small" at the other. As we get continuously +smaller, there may come an arbitrary point whereby we say "surely this +is no longer a limb" (and of course, we are not talking about a pure +geometrical size transformation here - as a limb reaches extreme edges +of a size range various other morphological changes necessarily happen). +But this cutoff is arguably arbitrary, and the resulting discontinuity +causes problems. It is simpler to treat absence as being one end of a +size scale.

+

Summary

+

This is barely touching the subject, and is intended to illustrate that +things may be more subtle than naively treating words like "absent" as +precisely equivalent to cardinality=0. An understanding of the medical, +developmental and evolutionary contexts are absolutely required, +together with an understanding of the entailments of different logical +formulations.

+

Even though existing phenotype ontologies may not be conceived of +formally, it is implicit than they do not model absence as being +equivalent to cardinality=0 / not(has_part), because the structure of +these ontologies would look radically different.

+

TODO

+

Link to Jim Balhoff's PhenoDay paper and discussion

+

Here's the link: http://phenoday2014.bio-lark.org/pdf/11.pdf

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/patterns/index.html b/reference/patterns/index.html new file mode 100644 index 00000000..f27a7cd8 --- /dev/null +++ b/reference/patterns/index.html @@ -0,0 +1,1608 @@ + + + + + + + + + + + + + + + + + + + + + + Design Patterns Overview - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/phenotype-data/index.html b/reference/phenotype-data/index.html new file mode 100644 index 00000000..4949c78b --- /dev/null +++ b/reference/phenotype-data/index.html @@ -0,0 +1,2435 @@ + + + + + + + + + + + + + + + + + + + + + + + + Phenotype data - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Phenotype data

+ +

Phenotype Data in practice

+

Overview

+

The goals of this document are:

+
    +
  • Give a sense of the contexts in which phenotype data is produced (research and clinical)
  • +
  • Give a sense of the shape of different styles of phenotype data
  • +
+

Table of contents

+ +

+

Some examples of phenotype data

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CategoryExample datasetsExample phenotype
Gene to phenotype associationsOnline Mendelian Inheritance in Man (OMIM), Human Phenotype Ontology (HPO), Gene Ontology (GO)Achondroplasia (associated with FGFR3 gene mutations)
Gene to disease associationsThe Cancer Genome Atlas (TCGA), Online Mendelian Inheritance in Man (OMIM), GWAS CatalogBreast invasive carcinoma (associated with BRCA1/BRCA2 mutations)
Phenotype-phenotype semantic similarityHuman Phenotype Ontology (HPO), Unified Medical Language System (UMLS), Disease Ontology (DO)Cardiac abnormalities (semantic similarity with congenital heart defects)
Quantified trait data (QTL etc)NHGRI-EBI GWAS Catalog, Genotype-Tissue Expression (GTEx), The Human Protein AtlasHeight (quantified trait associated with SNPs in genomic regions)
Electronic health recordsMedical Information Mart for Intensive Care III (MIMIC-III), UK Biobank, IBM Watson HealthAcute kidney injury (recorded diagnosis during ICU stay)
Epidemiological datasetsFramingham Heart Study, National Health and Nutrition Examination Survey (NHANES), Global Burden of Disease Study (GBD)Cardiovascular disease (epidemiological study of risk factors and disease incidence)
Clinical trial datasetsClinicalTrials.gov, European Union Clinical Trials Register (EUCTR), International Clinical Trials Registry Platform (ICTRP)Treatment response (clinical trial data on efficacy and safety outcomes)
Environmental exposure datasetsEnvironmental Protection Agency Air Quality System (EPA AQS), Global Historical Climatology Network (GHCN), National Centers for Environmental Information Climate Data Online (NCEI CDO)Respiratory diseases (association with air pollutant exposure)
Population surveys e.g., UK BiobankUK Biobank, National Health Interview Survey (NHIS), National Health and Nutrition Examination Survey (NHANES)Chronic diseases (population-based study on disease prevalence and risk factors)
Behavioral observation datasetsNational Survey on Drug Use and Health (NSDUH), Add Health, British Cohort Study (BCS)Substance abuse disorders (survey data on drug consumption and addiction)
+

+

Different shapes of phenotype data

+

Phenotype data comes in many different shapes and forms. In the following, we will describe some of the most common features of such data:

+ +

+

Pre-coordinated

+

Pre-coordinated phenotype data is popular in the clinical domain, where a lot of observations are taken by a clinician and recorded as "phenotypic abnormalities" with the goal of eventual diagnosis.

+

Phenopackets such as the one below are an emerging standard to capture and sharing disease and phenotype information. Phenotypic features in particular are captured as so called "pre-coordinated phenotype terms" such as "Attenuation of retinal blood vessels" (HP:0007843). "Pre-coordinated" in this context means that the various aspects of the phenotype term, such as the bearer ("retinal blood vessels") and the characteristic ("Attenuation", or "thinning/narrowing"), and the modifier (in the case of HPO terms, simply abnormal), are combined ("coordinated") into a single term.

+
+Phenopacket +
{
+"id": "PMID:23559858-Ajmal-2013-BBS1-IV-5/family_A",
+"subject": {
+    "id": "IV-5/family A",
+    "timeAtLastEncounter": {
+    "age": {
+        "iso8601duration": "P26Y"
+    }
+    },
+    "sex": "MALE",
+    "taxonomy": {
+    "id": "NCBITaxon:9606",
+    "label": "Homo sapiens"
+    }
+},
+"phenotypicFeatures": [
+    {
+    "type": {
+        "id": "HP:0007843",
+        "label": "Attenuation of retinal blood vessels"
+    },
+    "evidence": [
+        {
+        "evidenceCode": {
+            "id": "ECO:0000033",
+            "label": "author statement supported by traceable reference"
+        },
+        "reference": {
+            "id": "PMID:23559858",
+            "description": "A family was reported in which two affected members had a splicing variant in BBS1, c.47+1G>T."
+        }
+        }
+    ]
+    },
+    {
+    "type": {
+        "id": "HP:0001513",
+        "label": "Obesity"
+    },
+    "evidence": [
+        {
+        "evidenceCode": {
+            "id": "ECO:0000033",
+            "label": "author statement supported by traceable reference"
+        },
+        "reference": {
+            "id": "PMID:23559858",
+            "description": "A family was reported in which two affected members had a splicing variant in BBS1, c.47+1G>T."
+        }
+        }
+    ]
+    },
+    {
+    "type": {
+        "id": "HP:0000608",
+        "label": "Macular degeneration"
+    },
+    "evidence": [
+        {
+        "evidenceCode": {
+            "id": "ECO:0000033",
+            "label": "author statement supported by traceable reference"
+        },
+        "reference": {
+            "id": "PMID:23559858",
+            "description": "A family was reported in which two affected members had a splicing variant in BBS1, c.47+1G>T."
+        }
+        }
+    ]
+    },
+    {
+    "type": {
+        "id": "HP:0000486",
+        "label": "Strabismus"
+    },
+    "evidence": [
+        {
+        "evidenceCode": {
+            "id": "ECO:0000033",
+            "label": "author statement supported by traceable reference"
+        },
+        "reference": {
+            "id": "PMID:23559858",
+            "description": "A family was reported in which two affected members had a splicing variant in BBS1, c.47+1G>T."
+        }
+        }
+    ]
+    },
+    {
+    "type": {
+        "id": "HP:0001328",
+        "label": "Specific learning disability"
+    },
+    "evidence": [
+        {
+        "evidenceCode": {
+            "id": "ECO:0000033",
+            "label": "author statement supported by traceable reference"
+        },
+        "reference": {
+            "id": "PMID:23559858",
+            "description": "A family was reported in which two affected members had a splicing variant in BBS1, c.47+1G>T."
+        }
+        }
+    ]
+    },
+    {
+    "type": {
+        "id": "HP:0000510",
+        "label": "Rod-cone dystrophy"
+    },
+    "evidence": [
+        {
+        "evidenceCode": {
+            "id": "ECO:0000033",
+            "label": "author statement supported by traceable reference"
+        },
+        "reference": {
+            "id": "PMID:23559858",
+            "description": "A family was reported in which two affected members had a splicing variant in BBS1, c.47+1G>T."
+        }
+        }
+    ]
+    },
+    {
+    "type": {
+        "id": "HP:0001263",
+        "label": "Global developmental delay"
+    },
+    "evidence": [
+        {
+        "evidenceCode": {
+            "id": "ECO:0000033",
+            "label": "author statement supported by traceable reference"
+        },
+        "reference": {
+            "id": "PMID:23559858",
+            "description": "A family was reported in which two affected members had a splicing variant in BBS1, c.47+1G>T."
+        }
+        }
+    ]
+    }
+],
+"interpretations": [
+    {
+    "id": "PMID:23559858-Ajmal-2013-BBS1-IV-5/family_A",
+    "progressStatus": "SOLVED",
+    "diagnosis": {
+        "disease": {
+        "id": "OMIM:209900",
+        "label": "BARDET-BIEDL SYNDROME 1; BBS1"
+        },
+        "genomicInterpretations": [
+        {
+            "subjectOrBiosampleId": "IV-5/family A",
+            "interpretationStatus": "CAUSATIVE",
+            "variantInterpretation": {
+            "variationDescriptor": {
+                "id": "clinvar:1324292",
+                "geneContext": {
+                "valueId": "ENSG00000174483",
+                "symbol": "BBS1",
+                "alternateIds": [
+                    "HGNC:966",
+                    "entrez:582",
+                    "ensembl:ENSG00000174483",
+                    "symbol:BBS1"
+                ]
+                },
+                "vcfRecord": {
+                "genomeAssembly": "GRCh37",
+                "chrom": "11",
+                "pos": "66278178",
+                "ref": "G",
+                "alt": "T"
+                },
+                "allelicState": {
+                "id": "GENO:0000136",
+                "label": "homozygous"
+                }
+            }
+            }
+        }
+        ]
+    }
+    }
+],
+"metaData": {
+    "created": "1970-01-01T00:00:00Z",
+    "submittedBy": "HPO:probinson",
+    "resources": [
+    {
+        "id": "hp",
+        "name": "human phenotype ontology",
+        "url": "http://purl.obolibrary.org/obo/hp.owl",
+        "version": "2018-03-08",
+        "namespacePrefix": "HP",
+        "iriPrefix": "http://purl.obolibrary.org/obo/HP_"
+    },
+    {
+        "id": "pato",
+        "name": "Phenotype And Trait Ontology",
+        "url": "http://purl.obolibrary.org/obo/pato.owl",
+        "version": "2018-03-28",
+        "namespacePrefix": "PATO",
+        "iriPrefix": "http://purl.obolibrary.org/obo/PATO_"
+    },
+    {
+        "id": "geno",
+        "name": "Genotype Ontology",
+        "url": "http://purl.obolibrary.org/obo/geno.owl",
+        "version": "19-03-2018",
+        "namespacePrefix": "GENO",
+        "iriPrefix": "http://purl.obolibrary.org/obo/GENO_"
+    },
+    {
+        "id": "ncbitaxon",
+        "name": "NCBI organismal classification",
+        "url": "http://purl.obolibrary.org/obo/ncbitaxon.owl",
+        "version": "2018-03-02",
+        "namespacePrefix": "NCBITaxon",
+        "iriPrefix": "http://purl.obolibrary.org/obo/NCBITaxon_"
+    },
+    {
+        "id": "eco",
+        "name": "Evidence and Conclusion Ontology",
+        "url": "http://purl.obolibrary.org/obo/eco.owl",
+        "version": "2018-11-10",
+        "namespacePrefix": "ECO",
+        "iriPrefix": "http://purl.obolibrary.org/obo/ECO_"
+    },
+    {
+        "id": "omim",
+        "name": "Online Mendelian Inheritance in Man",
+        "url": "https://www.omim.org",
+        "version": "2018-03-08",
+        "namespacePrefix": "OMIM",
+        "iriPrefix": "https://omim.org/entry/"
+    },
+    {
+        "id": "clinvar",
+        "name": "Clinical Variation",
+        "url": "https://www.ncbi.nlm.nih.gov/clinvar/",
+        "version": "2023-04-06",
+        "namespacePrefix": "clinvar",
+        "iriPrefix": "https://www.ncbi.nlm.nih.gov/clinvar/variation/"
+    }
+    ],
+    "phenopacketSchemaVersion": "2.0.0"
+}
+}
+
+
+

Apart from clinical diagnostics, pre-coordinated phenotype terms are used in many other contexts such as model organism research (e.g. IMPC) or the curation of Genome Wide Association Studies.

+

+

Post-coordinated

+

Post-coordinated phenotype curation simply means that the different constituents of phenotype (characteristic, bearer, modifier etc) are captured individually. +This has certain advantages. +For example, the phenotype space is enormous, as you can measure variations in many observable charactertics from chemical entities present in the blood, the microbiome to a host of morphological and developmental abnormalities. Instead of having individual (controlled vocabulary) terms for increased level of X, decreased level X, abnormal level of X, increased level of X in blood for thousands of chemical compounds synthesized by the human body, you just have "increased level", "blood" and all the chemical compounds.

+

There are at least three flavours of post-coordinated phenotype curation prevalent in the biomedical domain, four if you count quantified phenotypes:

+ +

+

Trait + modifier pattern is used for example by databases such as the Saccharomyces Genome Database (SGD). Here are some examples:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
dateAssignedevidence/publicationIdobjectIdphenotypeStatementphenotypeTermIdentifiers/0/termIdphenotypeTermIdentifiers/1/termIdconditionRelations/0/conditions/0/chemicalOntologyIdconditionRelations/0/conditions/0/conditionClassId
2010-07-08T00:07:00-00:00PMID:1406694SGD:S000003901abnormal RNA accumulationAPO:0000002APO:0000224
2006-05-05T00:05:00-00:00PMID:785224SGD:S000000854decreased resistance to chemicalsAPO:0000003APO:0000087CHEBI:78661ZECO:0000111
2010-07-07T00:07:00-00:00PMID:10545447SGD:S000000969decreased cell sizeAPO:0000003APO:0000052
+
    +
  • APO:0000002 (abnormal) and APO:0000003 (decreased) are modifiers.
  • +
  • APO:0000087 (resistance to chemicals), APO:0000224 (RNA accumulation), APO:0000052 (cell size) are biological attributes/traits.
  • +
  • CHEBI:78661 is recorded as an experimental condition, but should probably be interpreted as part of the bearer expression.
  • +
  • Note: SGD has different kinds of phenotype data, and it should be carefully evaluated which one it is.
  • +
+

Data was obtained from the Alliance of Genome Resources on the 30.03.2023 and simplified for illustration.

+

+

The bearer-only pattern is used by many databases, such as Flybase. +In the data, we only find references of bearers, such as anatomical entities or biological processes. +Instead of explicitly stating phenotypic modifiers (abnormal, morphology, changed), it is implicit in the definition of the dataset.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
dateAssignedevidence/crossReference/idevidence/publicationIdobjectIdphenotypeStatementphenotypeTermIdentifiers/0/termId
2024-01-05T11:54:24-05:00FB:FBrf0052655PMID:2385293FB:FBal0016988embryonic telsonFBbt:00000184
2024-01-05T11:54:24-05:00FB:FBrf0058077PMID:8223248FB:FBal0001571larvaFBbt:00001727
+
    +
  • FBbt:00000184 (embryonic telson) and FBbt:00001727 (larva) are bearer terms.
  • +
  • The modifier is implicit in the data rather than explicitly stated. For example, Flybase states on their website about the Dmel\torrv66 Allele (FBal0016988) that the "phenotype manifests in the embryonic telson".
  • +
  • Note: FlyBase has different kinds of phenotype data (including pre-coordinated), and it should be carefully evaluated which one is which prior to integration.
  • +
+

Data was obtained from the Alliance of Genome Resources on the 30.03.2023 and simplified for illustration.

+

+

The most complex pattern for phenotype descriptions which essentially decomposes the entire phenotype expression into atomic consituents can be found, for example, in the The Zebrafish Information Network (ZFIN).

+

Examples:

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Fish IDAffected Structure or Process 1 subterm IDAffected Structure or Process 1 subterm NamePost-composed Relationship IDPost-composed Relationship NameAffected Structure or Process 1 superterm IDAffected Structure or Process 1 superterm NamePhenotype Keyword IDPhenotype Keyword NamePhenotype TagAffected Structure or Process 2 subterm IDAffected Structure or Process 2 subterm namePost-composed Relationship (rel) IDPost-composed Relationship (rel) NameAffected Structure or Process 2 superterm IDAffected Structure or Process 2 superterm namePublication ID
ZDB-FISH-150901-29105ZFA:0009366hair cellBFO:0000050part_ofZFA:0000051otic vesiclePATO:0000374increased distanceabnormalZFA:0009366hair cellBFO:0000050part_ofZFA:0000051otic vesicleZDB-PUB-171025-12
ZDB-FISH-150901-29105ZFA:0009366hair cellBFO:0000050part_ofZFA:0000051otic vesiclePATO:0000374increased distanceabnormalZFA:0009366hair cellBFO:0000050part_ofZFA:0000051otic vesicleZDB-PUB-171025-12
ZDB-FISH-150901-11537ZFA:0000051otic vesiclePATO:0001905has normal numbers of parts of typenormalZFA:0009366hair cellBFO:0000050part_ofZFA:0000051otic vesicleZDB-PUB-150318-1
ZDB-FISH-150901-18770ZFA:0000119retinal inner nuclear layerPATO:0002001has fewer parts of typeabnormalZFA:0009315horizontal cellBFO:0000050part_ofZFA:0000119retinal inner nuclear layerZDB-PUB-130222-28
ZDB-FISH-190806-7BSPO:0000084ventral regionBFO:0000050part_ofZFA:0000101diencephalonPATO:0002001has fewer parts of typeabnormalZFA:0009301dopaminergic neuronBFO:0000050part_ofZFA:0000101diencephalonZDB-PUB-190216-5
ZDB-FISH-190807-7BSPO:0000084ventral regionBFO:0000050part_ofZFA:0000101diencephalonPATO:0001905has normal numbers of parts of typenormalZFA:0009301dopaminergic neuronBFO:0000050part_ofZFA:0000101diencephalonZDB-PUB-190216-5
ZDB-FISH-190807-8BSPO:0000084ventral regionBFO:0000050part_ofZFA:0000101diencephalonPATO:0002001has fewer parts of typeabnormalZFA:0009301dopaminergic neuronBFO:0000050part_ofZFA:0000101diencephalonZDB-PUB-190216-5
ZDB-FISH-150901-29105ZFA:0000101diencephalonPATO:0001555has number ofnormalZFA:0009301dopaminergic neuronBFO:0000050part_ofZFA:0000101diencephalonZDB-PUB-161120-7
ZDB-FISH-210421-9ZFA:0009290glutamatergic neuronBFO:0000050part_ofZFA:0000008brainPATO:0040043increased proportionality toabnormalZFA:0009276GABAergic neuronBFO:0000050part_ofZFA:0000008brainZDB-PUB-191011-2
ZDB-FISH-210421-9ZFA:0009290glutamatergic neuronBFO:0000050part_ofZFA:0000008brainPATO:0040043increased proportionality toabnormalZFA:0009276GABAergic neuronBFO:0000050part_ofZFA:0000008brainZDB-PUB-191011-2
+

Lets break down the second to last row:

+
    +
  • ZFA:0009290 (glutamatergic neuron): The primary entity whose characteristic is being observed
  • +
  • BFO:0000050 (part of): a relation used to connect the hair cell to the structure its part of
  • +
  • ZFA:0000008 (brain): the location of the primary entity being observed
  • +
  • PATO:0040043 (increased proportionality to): the modified characteristic being observed.
  • +
  • abnormal: the change modifier (note: not an ontology term)
  • +
  • ZFA:0009276 (GABAergic neuron): the secondary entity being observed in relation to which the characteristic is measured
  • +
  • ZFA:0000008 (brain): the location of the secondary entity
  • +
  • The interested reader may look at an integrated version of that huge post-coordinated expression here (brain increased proportionality to glutamatergic neuron GABAergic neuron brain, abnormal - ZP:0141834).
  • +
+

Data was obtained from ZFIN (Phenotype of Zebrafish Genes) on the 30.03.2023 and simplified for illustration.

+

As one can see in the last example, bearers can be anything from simple atomic entities to arbitrarily complex compositions:

+
    +
  • "lysine" (lysine)
  • +
  • "lysine in the blood" (lysine part_of blood)
  • +
  • "lysine in heart muscle cells" (lysine part_of cell part_of (muscle part of heart))
  • +
  • "lysine in the cytoplasm of heart muscle cells" (lysine part_of (cytoplasm part_of (cell part_of (muscle part of heart))))
  • +
  • etc, etc
  • +
+

+

Standardised/non-standardized

+

Phenotype data can be standardised to varying degrees. It is not uncommon for data to be completely unstandardised. +Unfortunately, only a fraction of the available data is actually annotated using terms from controlled phenotype ontologies. +Here are some of the more "typical" kinds of data on the standardised/non-standardised spectrum:

+
    +
  1. Free text in clinical notes and scientific publications
  2. +
  3. Free text in specific database fields (for example a "height" column in a table about measurements of Giraffes)
  4. +
  5. Controlled but non-standardised vocabulary like enums in a datamodel (for example the keyword "abnormal" in the ZFIN example above)
  6. +
  7. Controlled standardised vocabulary (like all the examples on this page)
  8. +
  9. Ontology terms (controlled vocabulary terms with well defined semantics - all the examples on this page)
  10. +
+

+

Quantitative/qualitative

+

Qualitative and quantitative phenotype data represent two fundamental ways of describing characteristics or traits in biology, each providing different types of information:

+

Qualitative Phenotype Data:

+
    +
  • Nature: This type of data describes qualities or characteristics that are observed but not measured with numbers. It often involves categorical or descriptive information.
  • +
  • Examples: The presence or absence of a specific physical trait (like eye color or wing shape in animals) or types of behavior (aggressive vs. passive).
  • +
  • Analysis: Qualitative data is analyzed by categorization and identification of patterns or variations. It is more about the 'type' or 'kind' of trait rather than its 'amount'.
  • +
  • Interpretation: Since it's descriptive, this data relies on subjective interpretation and classification.
  • +
+

Quantitative Phenotype Data:

+
    +
  • Nature: This data is numerical and quantifies traits. It involves measurements of characteristics, often allowing for more precise and objective analysis.
  • +
  • Examples: Height, weight, blood pressure, cholesterol levels, or the number of fruit produced by a plant. Quantitative traits can often be measured on a continuous scale, for example height of 35 cm, weight of 67 KG or blood pressure of 120/80.
  • +
  • Analysis: It involves statistical analysis, such as calculating mean, median, standard deviation, and applying various statistical tests. It allows for a more objective and replicable assessment.
  • +
  • Interpretation: Quantitative data provides a more concrete and measurable understanding of traits, making comparisons and statistical testing more straightforward.
  • +
+

Qualitative data is descriptive and categorical, while quantitative data is numerical and measurable. Both types are essential for a comprehensive understanding of phenotypic traits, each offering unique insights into biological variation and complexity.

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/phenotype-ontology-alignment/index.html b/reference/phenotype-ontology-alignment/index.html new file mode 100644 index 00000000..9ecfd9a5 --- /dev/null +++ b/reference/phenotype-ontology-alignment/index.html @@ -0,0 +1,1661 @@ + + + + + + + + + + + + + + + + + + + + + + + + Overview - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Aliging species specific phenotype ontologies

+

Phenotype ontologies use different reference ontologies for their EQs. Everything in uPheno is integrated towards a common set of reference ontologies, in particular Uberon and CL. In order to integrate species-independent anatomy ontologies we employ the following workflow for phenotype ontologies:

+
    +
  1. Create a base-plus module from the ontology
  2. +
  3. Rename all Uberon-aligned entities using ROBOT rename. This replaces basically species specific anatomy references with Uberon anatomy references
  4. +
  5. Delete all species specific references from uPheno (FBBT, XAO, ZFA, etc). This also deletes all EQs which have non-Uberon references.
  6. +
  7. For all remaining species-specific anatomy terms, we retain only the link to the nearest Uberon term.
  8. +
+

Rules for phenotype ontologies to be integrated

+
    +
  1. Every phenotype ontology must export a base module at the proper PURL location
  2. +
  3. Every phenotype ontology must export a upheno export module at the proper PURL location
  4. +
+

When two classes are merged in uPheno based on a cross-species mapping, we assert the most general common ancestor as parent.

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/qc/index.html b/reference/qc/index.html new file mode 100644 index 00000000..cfb8fbc7 --- /dev/null +++ b/reference/qc/index.html @@ -0,0 +1,1617 @@ + + + + + + + + + + + + + + + + + + + + + + + + Overview - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

uPheno Quality Control

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/qc/odk_checks/index.html b/reference/qc/odk_checks/index.html new file mode 100644 index 00000000..55a05dcb --- /dev/null +++ b/reference/qc/odk_checks/index.html @@ -0,0 +1,1617 @@ + + + + + + + + + + + + + + + + + + + + + + + + Standard OBO checks - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

ODK: Basic Quality Control

+ + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/reconciliation-effort/index.html b/reference/reconciliation-effort/index.html new file mode 100644 index 00000000..b5b1c555 --- /dev/null +++ b/reference/reconciliation-effort/index.html @@ -0,0 +1,1608 @@ + + + + + + + + + + + + + + + + + + + + + + + + The Phenotype Reconciliation Effort - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/reference/use-cases/index.html b/reference/use-cases/index.html new file mode 100644 index 00000000..fb6e9d8e --- /dev/null +++ b/reference/use-cases/index.html @@ -0,0 +1,1658 @@ + + + + + + + + + + + + + + + + + + + + + + + + Use Cases - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+
+ + + + + + + + + + + + + +

Use Cases

+ +

Use Cases

+ + + + + + + +
+
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/search/search_index.json b/search/search_index.json new file mode 100644 index 00000000..1a273dd8 --- /dev/null +++ b/search/search_index.json @@ -0,0 +1 @@ +{"config":{"lang":["en"],"separator":"[\\s\\-]+","pipeline":["stopWordFilter"]},"docs":[{"location":"","title":"UPHENO Ontology Documentation","text":"

Welcome to the UPHENO documentation!

It is entirely empty at the moment so look no further!

You can find descriptions of the standard ontology engineering workflows here.

"},{"location":"about/","title":"About uPheno","text":"

The uPheno project aims to unify the annotation of phenotypes across species in a manner analogous to unification of gene function annotation by the Gene Ontology. uPheno 2.0 builds on earlier efforts with a strategy that directly leverages the work of the phenotype ontology development community and incorporates phenotypes from a much wider range of species. We have organised a collaborative community effort, including representatives of all major model organism databases, to document and align formal design patterns for representing phenotypes and further develop reference ontologies, such as PATO, which are used in these patterns. A common development infrastructure makes it easy to use these design patterns to generate both species-specific ontologies and a species-independent layer that subsumes them. The resulting community-curated ontology for the representation and integration of phenotypes across species serves two general purposes: - Providing a community-developed framework for ontology editors to bootstrap, maintain and extend their phenotype ontologies in a scalable and standardised manner. - Facilitating the retrieval and comparative analysis of species-specific phenotypes through a deep layer of species-independent phenotypes.

Currently, the development of uPheno is organized by a group that meets biweekly. See the meetings page for more info, including how to participate.

"},{"location":"cite/","title":"How to cite uPheno","text":""},{"location":"cite/#papers","title":"Papers","text":""},{"location":"cite/#upheno-2","title":"uPheno 2","text":"
  • Matentzoglu N, Osumi-Sutherland D, Balhoff JP, Bello S, Bradford Y, Cardmody L, Grove C, Harris MA, Harris N, K\u00f6hler S, McMurry J, Mungall C, Munoz-Torres M, Pilgrim C, Robb S, Robinson PN, Segerdell E, Vasilevsky N, Haendel M. uPheno 2: Framework for standardised representation of phenotypes across species. 2019 Apr 8. http://dx.doi.org/10.7490/f1000research.1116540.1
"},{"location":"cite/#original-upheno","title":"Original uPheno","text":"
  • Sebastian K\u00f6hler, Sandra C Doelken, Barbara J Ruef, Sebastian Bauer, Nicole Washington, Monte Westerfield, George Gkoutos, Paul Schofield, Damian Smedley, Suzanna E Lewis, Peter N Robinson, Christopher J Mungall (2013) Construction and accessibility of a cross-species phenotype ontology along with gene annotations for biomedical research F1000Research
"},{"location":"cite/#entity-quality-definitions-and-phenotype-modelling","title":"Entity-Quality definitions and phenotype modelling","text":"
  • C J Mungall, Georgios Gkoutos, Cynthia Smith, Melissa Haendel, Suzanna Lewis, Michael Ashburner (2010) Integrating phenotype ontologies across multiple species Genome Biology 11 (1)
"},{"location":"contributing/","title":"How to contribute to UPHENO","text":""},{"location":"howto/add-relation-extension/","title":"How to add the uPheno direct relation extension","text":"

EQ definitions are powerful tools for reconciling phenotypes across species and driving reasoning. However, they are not all that useful for many \"normal\" users of our ontologies.

We have developed a little workflow extension to take care of that.

  1. As usual please follow the steps to install the custom uPheno Makefile extension first.
  2. Now add a new component to your ont-odk.yaml file (e.g. src/ontology/mp-odk.yaml):
    components:\n  products:\n    - filename: eq-relations.owl\n
  3. We can now choose if we want to add the component to your edit file as well. To do that, follow the instructions on adding an import (i.e. adding the component to the edit file and catalog file). The IRI of the component is http://purl.obolibrary.org/obo/YOURONTOLOGY/components/eq-relations.owl. For example, for MP, the IRI is http://purl.obolibrary.org/obo/mp/components/eq-relations.owl.
  4. Now we can generate the component:
    sh run.sh make components/eq-relations.owl\n
    This command will be run automatically during a release (prepare_release).
"},{"location":"howto/custom-upheno-makefile/","title":"Add custom uPheno Makefile","text":"

The custom uPheno Makefile is an extension to your normal custom Makefile (for example, hp.Makefile, mp.Makefile, etc), located in the src/ontology directory of your ODK set up.

To install it:

(1) Open your normal custom Makefile and add a line in the very end:

include pheno.Makefile\n

(2) Now download the custom Makefile:

https://raw.githubusercontent.com/obophenotype/upheno/master/src/ontology/config/pheno.Makefile

and save it in your src/ontology directory.

Feel free to use, for example, wget:

cd src/ontology\nwget https://raw.githubusercontent.com/obophenotype/upheno/master/src/ontology/config/pheno.Makefile -O pheno.Makefile\n

From now on you can simply run

sh run.sh make update_pheno_makefile\n

whenever you wish to synchronise the Makefile with the uPheno repo.

(Note: it would probably be good to add a GitHub action that does that automatically.)

"},{"location":"howto/editors_workflow/","title":"Phenotype Ontology Editors' Workflow","text":""},{"location":"howto/editors_workflow/#useful-links","title":"Useful links","text":"
  • Phenotype Ontology Working Group Meetings agenda and minutes gdoc.
  • phenotype-ontologies slack channel: to send meeting reminders; ask for agenda items; questions; discussions etc.
  • Dead simple owl design pattern (DOS-DP) Documentation
    • Getting started with DOSDP templates.
    • Dead Simple Ontology Design Patterns (DOSDP).
    • Using DOSDP templates in ODK Workflows.
  • Validate DOS-DP yaml templates:
    1. yamllint: yaml syntax validator
      • Installing yamllint: brew install yamllint
    2. Congiguring yamllint You can ignore the error line too long yaml syntax errors for dos-dp yaml templates. You can create a custom configuration file for yamllint in your home folder:
      touch ~/.config/yamllint/config\n
      The content of the config file should look like this:
      # Custom configuration file for yamllint\n# It extends the default conf by adjusting some options.\nextends: default\nrules:\nline-length:\nmax: 80 # 80 chars should be enough, but don't fail if a line is longer\n#   max: 140  # allow long lines\nlevel: warning\nallow-non-breakable-words: true\nallow-non-breakable-inline-mappings: true\n
      The custom config should turn the error line too long errors to warnings.
    3. DOS-DP validator:: DOS-DP format validator
      • Installing : pip install dosdp

Patternisation is the process of ensuring that all entity quality (EQ) descriptions from textual phenotype term definitions have a logical definition pattern. A pattern is a standard format for describing a phenotype that includes a quality and an entity. For example, \"increased body size\" is a pattern that includes the quality \"increased\" and the entity \"body size.\" The goal of patternisation is to make the EQ descriptions more uniform and machine-readable, which facilitates downstream analysis.

"},{"location":"howto/editors_workflow/#1-identify-a-group-of-related-phenotypes-from-diverse-organisms","title":"1. Identify a group of related phenotypes from diverse organisms","text":"

The first step in the Phenotype Ontology Editors' Workflow is to identify a group of related phenotypes from diverse organisms. This can be done by considering proposals from phenotype editors or by using the pattern suggestion pipeline. The phenotype editors may propose a group of related phenotypes based on their domain knowledge, while the pattern suggestion pipeline uses semantic similarity and shared Phenotype And Trait Ontology (PATO) quality terms to identify patterns in phenotype terms from different organism-specific ontologies.

"},{"location":"howto/editors_workflow/#2-propose-a-phenotype-pattern","title":"2. Propose a phenotype pattern","text":"

Once a group of related phenotypes is identified, the editors propose a phenotype pattern. To do this, they create a Github issue to request the phenotype pattern template in the uPheno repository. Alternatively, a new template can be proposed at a phenotype editors' meeting which can lead to the creation of a new term request as a Github issue. Ideally, the proposed phenotype pattern should include an appropriate PATO quality term for logical definition, use cases, term examples, and a textual definition pattern for the phenotype terms.

"},{"location":"howto/editors_workflow/#3-discuss-the-new-phenotype-pattern-draft-at-the-regular-upheno-phenotype-editors-meeting","title":"3. Discuss the new phenotype pattern draft at the regular uPheno phenotype editors meeting","text":"

The next step is to discuss the new phenotype pattern draft at the regular uPheno phenotype editors meeting. During the meeting, the editors' comments and suggestions for improvements are collected as comments on the DOS-DP yaml template in the corresponding Github pull request. Based on the feedback and discussions, a consensus on improvements should be achieved. The DOS-DP yaml template is named should start with a lower case letter, should be informative, and must include the PATO quality term. A Github pull request is created for the DOS-DP yaml template.

  • A DOS-DP phenotype pattern template example:
---\npattern_name: ??pattern_and_file_name\npattern_iri: http://purl.obolibrary.org/obo/upheno/patterns-dev/??pattern_and_file_name.yaml\ndescription: 'A description that helps people chose this pattern for the appropriate scenario.'\n#  examples:\n#    - example_IRI-1  # term name\n#    - example_IRI-2  # term name\n#    - example_IRI-3  # term name\n#    - http://purl.obolibrary.org/obo/XXXXXXXXXX  # XXXXXXXX\ncontributors:\n- https://orcid.org/XXXX-XXXX-XXXX-XXXX  # Yyy Yyyyyyyyy\nclasses:\nprocess_quality: PATO:0001236\nabnormal: PATO:0000460\nanatomical_entity: UBERON:0001062\nrelations:\ncharacteristic_of: RO:0000052\nhas_modifier: RO:0002573\nhas_part: BFO:0000051\nannotationProperties:\nexact_synonym: oio:hasExactSynonym\nrelated_synonym: oio:hasRelatedSynonym\nxref: oio:hasDbXref\nvars:\nvar??: \"'anatomical_entity'\"  # \"'variable_range'\"\nname:\ntext: \"trait ?? %s\"\nvars:\n- var??\nannotations:\n- annotationProperty: exact_synonym\ntext: \"? of %s\"\nvars:\n- var??\n- annotationProperty: related_synonym\ntext: \"? %s\"\nvars:\n- var??\n- annotationProperty: xref\ntext: \"AUTO:patterns/patterns/chemical_role_attribute\"\ndef:\ntext: \"A trait that ?? %s.\"\nvars:\n- var??\nequivalentTo:\ntext: \"'has_part' some (\n'XXXXXXXXXXXXXXXXX' and\n('characteristic_of' some %s) and\n('has_modifier' some 'abnormal')\n)\"\nvars:\n- var??\n...\n
"},{"location":"howto/editors_workflow/#4-review-the-candidate-phenotype-pattern","title":"4. Review the candidate phenotype pattern","text":"

Once a consensus on the improvements for a particular template is achieved, they are incorporated into the DOS-DP yaml file. Typically, the improvements are applied to the template some time before a subsequent ontology editor's meeting. There should be enough time for off-line review of the proposed pattern to allow community feedback. The improved phenotype pattern candidate draft should get approval from the community at one of the regular ontology editors' call or in a Github comment. The ontology editors who approve the pattern provide their ORCIDs and they are credited as contributors in an appropriate field of the DOS-DP pattern template.

"},{"location":"howto/editors_workflow/#5-add-the-community-approved-phenotype-pattern-template-to-upheno","title":"5. Add the community-approved phenotype pattern template to uPheno","text":"

Once the community-approved phenotype pattern template is created, it is added to the uPheno Github repository. The approved DOS-DP yaml phenotype pattern template should pass quality control (QC) steps. 1. Validate yaml syntax: yamllint 2. Validate DOS-DP Use DOSDP Validator. * To validate a template using the command line interface, execute: ```sh yamllint dosdp validate -i

After successfully passing QC, the responsible editor merges the approved pull request, and the phenotype pattern becomes part of the uPheno phenotype pattern template collection.

"},{"location":"howto/pattern-merge-replace-workflow/","title":"Pattern merge - replace workflow","text":"

This document is on how to merge new DOSDP design patterns into an ODK ontology and then how to replace the old classes with the new ones.

"},{"location":"howto/pattern-merge-replace-workflow/#1-you-need-the-tables-in-tsv-format-with-the-dosdp-filler-data-download-the-tsv-tables-to","title":"1. You need the tables in tsv format with the DOSDP filler data. Download the tsv tables to","text":"
$ODK-ONTOLOGY/src/patterns/data/default/\n

Make sure that the tsv filenames match that of the relevant yaml DOSDP pattern files.

"},{"location":"howto/pattern-merge-replace-workflow/#2-add-the-new-matching-pattern-yaml-filename-to","title":"2. Add the new matching pattern yaml filename to","text":"
$ODK-ONTOLOGY/src/patterns/dosdp-patterns/external.txt\n
"},{"location":"howto/pattern-merge-replace-workflow/#3-import-the-new-pattern-templates-that-you-have-just-added-to-the-externaltxt-list-from-external-sources-into-the-current-working-repository","title":"3. Import the new pattern templates that you have just added to the external.txt list from external sources into the current working repository","text":"
cd ODK-ONTOLOGY/src/ontology\nsh run.sh make update_patterns\n
"},{"location":"howto/pattern-merge-replace-workflow/#4-make-definitionsowl","title":"4. make definitions.owl","text":"
cd ODK-ONTOLOGY/src/ontology\nsh run.sh make ../patterns/definitions.owl IMP=false\n
"},{"location":"howto/pattern-merge-replace-workflow/#5-remove-old-classes-and-replace-them-with-the-equivalent-and-patternised-new-classes","title":"5. Remove old classes and replace them with the equivalent and patternised new classes","text":"
cd ODK-ONTOLOGY/src/ontology\nsh run.sh make remove_patternised_classes\n
"},{"location":"howto/pattern-merge-replace-workflow/#6-announce-the-pattern-migration-in-an-appropriate-channel-for-example-on-the-phenotype-ontologies-slack-channel","title":"6. Announce the pattern migration in an appropriate channel, for example on the phenotype-ontologies Slack channel.","text":"

For example:

I have migrated the ... table and changed the tab colour to blue. You can delete the tab if you wish.

"},{"location":"howto/run-upheno2-release/","title":"How to run a uPheno 2 release","text":"

In order to run a release you will have to have completed the steps to set up s3.

  1. Clone https://github.com/obophenotype/upheno-dev
  2. cd src/scripts
  3. sh upheno_pipeline.sh
  4. cd ../ontology
  5. make prepare_upload S3_VERSION=2022-06-19
  6. make deploy S3_VERSION=2022-06-19
"},{"location":"howto/set-up-s3/","title":"How to set yourself up for S3","text":"

To be able to upload new uPheno release to the uPheno S3 bucket, you need to set yourself up for S3 first.

  1. Download and install AWS CLI
  2. Obtain secrets from BBOP
  3. Add configuration for secrets
"},{"location":"howto/set-up-s3/#1-download-and-install-aws-cli","title":"1. Download and install AWS CLI","text":"

The most convenient way to interact with S3 is the AWS Command Line Interface (CLI). You can find the installers and install instructions on that page (different depending on your Operation System): - For Mac - For Windows

"},{"location":"howto/set-up-s3/#2-obtain-secrets-from-bbop","title":"2. Obtain secrets from BBOP","text":"

Next, you need to ask someone at BBOP (such as Chris Mungall or Seth Carbon) to provide you with an account that gives you access to the BBOP s3 buckets. You will have to provide a username. You will receive: - User name - Access key ID- - Secret access key - Console link to sign into bucket

"},{"location":"howto/set-up-s3/#3-add-configuration-for-secrets","title":"3. Add configuration for secrets","text":"

You will now have to set up your local system. You will create two files:

$ less ~/.aws/config \n[default]\nregion = us-east-1\n

and

$ less ~/.aws/credentials\n[default]\naws_access_key_id = ***\naws_secret_access_key = ***\n

in ~/.aws/credentials make sure you add the correct keys as provided above.

"},{"location":"howto/set-up-s3/#4-write-to-your-bucket","title":"4. Write to your bucket","text":"

Now, you should be set up to write to your s3 bucket. Note that in order for your data to be accessible through https after your upload, you need to add --acl public read.

aws s3 sync --exclude \"*.DS_Store*\" my/data-dir s3://bbop-ontologies/myproject/data-dir --acl public-read\n

If you have previously pushed data to the same location, you wont be able to set it to \"publicly readable\" by simply rerunning the sync command. If you want to publish previously private data, follow the instructions here, e.g.:

aws s3api put-object-acl --bucket s3://bbop-ontologies/myproject/data-dir --key exampleobject --acl public-read\n
"},{"location":"odk-workflows/","title":"Default ODK Workflows","text":"
  • Daily Editors Workflow
  • Release Workflow
  • Manage your ODK Repository
  • Setting up Docker for ODK
  • Imports management
  • Managing the documentation
  • Managing your Automated Testing
"},{"location":"odk-workflows/ContinuousIntegration/","title":"Introduction to Continuous Integration Workflows with ODK","text":"

Historically, most repos have been using Travis CI for continuous integration testing and building, but due to runtime restrictions, we recently switched a lot of our repos to GitHub actions. You can set up your repo with CI by adding this to your configuration file (src/ontology/upheno-odk.yaml):

ci:\n  - github_actions\n

When updateing your repo, you will notice a new file being added: .github/workflows/qc.yml.

This file contains your CI logic, so if you need to change, or add anything, this is the place!

Alternatively, if your repo is in GitLab instead of GitHub, you can set up your repo with GitLab CI by adding this to your configuration file (src/ontology/upheno-odk.yaml):

ci:\n  - gitlab-ci\n

This will add a file called .gitlab-ci.yml in the root of your repo.

"},{"location":"odk-workflows/EditorsWorkflow/","title":"Editors Workflow","text":"

The editors workflow is one of the formal workflows to ensure that the ontology is developed correctly according to ontology engineering principles. There are a few different editors workflows:

  1. Local editing workflow: Editing the ontology in your local environment by hand, using tools such as Prot\u00e9g\u00e9, ROBOT templates or DOSDP patterns.
  2. Completely automated data pipeline (GitHub Actions)
  3. DROID workflow

This document only covers the first editing workflow, but more will be added in the future

"},{"location":"odk-workflows/EditorsWorkflow/#local-editing-workflow","title":"Local editing workflow","text":"

Workflow requirements:

  • git
  • github
  • docker
  • editing tool of choice, e.g. Prot\u00e9g\u00e9, your favourite text editor, etc
"},{"location":"odk-workflows/EditorsWorkflow/#1-create-issue","title":"1. Create issue","text":"

Ensure that there is a ticket on your issue tracker that describes the change you are about to make. While this seems optional, this is a very important part of the social contract of building an ontology - no change to the ontology should be performed without a good ticket, describing the motivation and nature of the intended change.

"},{"location":"odk-workflows/EditorsWorkflow/#2-update-main-branch","title":"2. Update main branch","text":"

In your local environment (e.g. your laptop), make sure you are on the main (prev. master) branch and ensure that you have all the upstream changes, for example:

git checkout master\ngit pull\n
"},{"location":"odk-workflows/EditorsWorkflow/#3-create-feature-branch","title":"3. Create feature branch","text":"

Create a new branch. Per convention, we try to use meaningful branch names such as: - issue23removeprocess (where issue 23 is the related issue on GitHub) - issue26addcontributor - release20210101 (for releases)

On your command line, this looks like this:

git checkout -b issue23removeprocess\n
"},{"location":"odk-workflows/EditorsWorkflow/#4-perform-edit","title":"4. Perform edit","text":"

Using your editor of choice, perform the intended edit. For example:

Prot\u00e9g\u00e9

  1. Open src/ontology/upheno-edit.owl in Prot\u00e9g\u00e9
  2. Make the change
  3. Save the file

TextEdit

  1. Open src/ontology/upheno-edit.owl in TextEdit (or Sublime, Atom, Vim, Nano)
  2. Make the change
  3. Save the file

Consider the following when making the edit.

  1. According to our development philosophy, the only places that should be manually edited are:
    • src/ontology/upheno-edit.owl
    • Any ROBOT templates you chose to use (the TSV files only)
    • Any DOSDP data tables you chose to use (the TSV files, and potentially the associated patterns)
    • components (anything in src/ontology/components), see here.
  2. Imports should not be edited (any edits will be flushed out with the next update). However, refreshing imports is a potentially breaking change - and is discussed elsewhere.
  3. Changes should usually be small. Adding or changing 1 term is great. Adding or changing 10 related terms is ok. Adding or changing 100 or more terms at once should be considered very carefully.
"},{"location":"odk-workflows/EditorsWorkflow/#4-check-the-git-diff","title":"4. Check the Git diff","text":"

This step is very important. Rather than simply trusting your change had the intended effect, we should always use a git diff as a first pass for sanity checking.

In our experience, having a visual git client like GitHub Desktop or sourcetree is really helpful for this part. In case you prefer the command line:

git status\ngit diff\n
"},{"location":"odk-workflows/EditorsWorkflow/#5-quality-control","title":"5. Quality control","text":"

Now it's time to run your quality control checks. This can either happen locally (5a) or through your continuous integration system (7/5b).

"},{"location":"odk-workflows/EditorsWorkflow/#5a-local-testing","title":"5a. Local testing","text":"

If you chose to run your test locally:

sh run.sh make IMP=false test\n
This will run the whole set of configured ODK tests on including your change. If you have a complex DOSDP pattern pipeline you may want to add PAT=false to skip the potentially lengthy process of rebuilding the patterns.

sh run.sh make IMP=false PAT=false test\n
"},{"location":"odk-workflows/EditorsWorkflow/#6-pull-request","title":"6. Pull request","text":"

When you are happy with the changes, you commit your changes to your feature branch, push them upstream (to GitHub) and create a pull request. For example:

git add NAMEOFCHANGEDFILES\ngit commit -m \"Added biological process term #12\"\ngit push -u origin issue23removeprocess\n

Then you go to your project on GitHub, and create a new pull request from the branch, for example: https://github.com/INCATools/ontology-development-kit/pulls

There is a lot of great advise on how to write pull requests, but at the very least you should: - mention the tickets affected: see #23 to link to a related ticket, or fixes #23 if, by merging this pull request, the ticket is fixed. Tickets in the latter case will be closed automatically by GitHub when the pull request is merged. - summarise the changes in a few sentences. Consider the reviewer: what would they want to know right away. - If the diff is large, provide instructions on how to review the pull request best (sometimes, there are many changed files, but only one important change).

"},{"location":"odk-workflows/EditorsWorkflow/#75b-continuous-integration-testing","title":"7/5b. Continuous Integration Testing","text":"

If you didn't run and local quality control checks (see 5a), you should have Continuous Integration (CI) set up, for example: - Travis - GitHub Actions

More on how to set this up here. Once the pull request is created, the CI will automatically trigger. If all is fine, it will show up green, otherwise red.

"},{"location":"odk-workflows/EditorsWorkflow/#8-community-review","title":"8. Community review","text":"

Once all the automatic tests have passed, it is important to put a second set of eyes on the pull request. Ontologies are inherently social - as in that they represent some kind of community consensus on how a domain is organised conceptually. This seems high brow talk, but it is very important that as an ontology editor, you have your work validated by the community you are trying to serve (e.g. your colleagues, other contributors etc.). In our experience, it is hard to get more than one review on a pull request - two is great. You can set up GitHub branch protection to actually require a review before a pull request can be merged! We recommend this.

This step seems daunting to some hopefully under-resourced ontologies, but we recommend to put this high up on your list of priorities - train a colleague, reach out!

"},{"location":"odk-workflows/EditorsWorkflow/#9-merge-and-cleanup","title":"9. Merge and cleanup","text":"

When the QC is green and the reviews are in (approvals), it is time to merge the pull request. After the pull request is merged, remember to delete the branch as well (this option will show up as a big button right after you have merged the pull request). If you have not done so, close all the associated tickets fixed by the pull request.

"},{"location":"odk-workflows/EditorsWorkflow/#10-changelog-optional","title":"10. Changelog (Optional)","text":"

It is sometimes difficult to keep track of changes made to an ontology. Some ontology teams opt to document changes in a changelog (simply a text file in your repository) so that when release day comes, you know everything you have changed. This is advisable at least for major changes (such as a new release system, a new pattern or template etc.).

"},{"location":"odk-workflows/ManageAutomatedTest/","title":"Manage automated tests","text":""},{"location":"odk-workflows/ManageAutomatedTest/#constraint-violation-checks","title":"Constraint violation checks","text":"

We can define custom checks using SPARQL. SPARQL queries define bad modelling patterns (missing labels, misspelt URIs, and many more) in the ontology. If these queries return any results, then the build will fail. Custom checks are designed to be run as part of GitHub Actions Continuous Integration testing, but they can also run locally.

"},{"location":"odk-workflows/ManageAutomatedTest/#steps-to-add-a-constraint-violation-check","title":"Steps to add a constraint violation check:","text":"
  1. Add the SPARQL query in src/sparql. The name of the file should end with -violation.sparql. Please give a name that helps to understand which violation the query wants to check.
  2. Add the name of the new file to odk configuration file src/ontology/uberon-odk.yaml:
    1. Include the name of the file (without the -violation.sparql part) to the list inside the key custom_sparql_checks that is inside robot_report key.
    2. If the robot_report or custom_sparql_checks keys are not available, please add this code block to the end of the file.

        robot_report:\nrelease_reports: False\nfail_on: ERROR\nuse_labels: False\ncustom_profile: True\nreport_on:\n- edit\ncustom_sparql_checks:\n- name-of-the-file-check\n
      3. Update the repository so your new SPARQL check will be included in the QC.

sh run.sh make update_repo\n
"},{"location":"odk-workflows/ManageDocumentation/","title":"Updating the Documentation","text":"

The documentation for UPHENO is managed in two places (relative to the repository root):

  1. The docs directory contains all the files that pertain to the content of the documentation (more below)
  2. the mkdocs.yaml file contains the documentation config, in particular its navigation bar and theme.

The documentation is hosted using GitHub pages, on a special branch of the repository (called gh-pages). It is important that this branch is never deleted - it contains all the files GitHub pages needs to render and deploy the site. It is also important to note that the gh-pages branch should never be edited manually. All changes to the docs happen inside the docs directory on the main branch.

"},{"location":"odk-workflows/ManageDocumentation/#editing-the-docs","title":"Editing the docs","text":""},{"location":"odk-workflows/ManageDocumentation/#changing-content","title":"Changing content","text":"

All the documentation is contained in the docs directory, and is managed in Markdown. Markdown is a very simple and convenient way to produce text documents with formatting instructions, and is very easy to learn - it is also used, for example, in GitHub issues. This is a normal editing workflow:

  1. Open the .md file you want to change in an editor of choice (a simple text editor is often best). IMPORTANT: Do not edit any files in the docs/odk-workflows/ directory. These files are managed by the ODK system and will be overwritten when the repository is upgraded! If you wish to change these files, make an issue on the ODK issue tracker.
  2. Perform the edit and save the file
  3. Commit the file to a branch, and create a pull request as usual.
  4. If your development team likes your changes, merge the docs into master branch.
  5. Deploy the documentation (see below)
"},{"location":"odk-workflows/ManageDocumentation/#deploy-the-documentation","title":"Deploy the documentation","text":"

The documentation is not automatically updated from the Markdown, and needs to be deployed deliberately. To do this, perform the following steps:

  1. In your terminal, navigate to the edit directory of your ontology, e.g.:
    cd upheno/src/ontology\n
  2. Now you are ready to build the docs as follows:
    sh run.sh make update_docs\n
    Mkdocs now sets off to build the site from the markdown pages. You will be asked to
    • Enter your username
    • Enter your password (see here for using GitHub access tokens instead) IMPORTANT: Using password based authentication will be deprecated this year (2021). Make sure you read up on personal access tokens if that happens!

If everything was successful, you will see a message similar to this one:

INFO    -  Your documentation should shortly be available at: https://obophenotype.github.io/upheno/ \n
3. Just to double check, you can now navigate to your documentation pages (usually https://obophenotype.github.io/upheno/). Just make sure you give GitHub 2-5 minutes to build the pages!

"},{"location":"odk-workflows/ReleaseWorkflow/","title":"The release workflow","text":"

The release workflow recommended by the ODK is based on GitHub releases and works as follows:

  1. Run a release with the ODK
  2. Review the release
  3. Merge to main branch
  4. Create a GitHub release

These steps are outlined in detail in the following.

"},{"location":"odk-workflows/ReleaseWorkflow/#run-a-release-with-the-odk","title":"Run a release with the ODK","text":"

Preparation:

  1. Ensure that all your pull requests are merged into your main (master) branch
  2. Make sure that all changes to master are committed to GitHub (git status should say that there are no modified files)
  3. Locally make sure you have the latest changes from master (git pull)
  4. Checkout a new branch (e.g. git checkout -b release-2021-01-01)
  5. You may or may not want to refresh your imports as part of your release strategy (see here)
  6. Make sure you have the latest ODK installed by running docker pull obolibrary/odkfull

To actually run the release, you:

  1. Open a command line terminal window and navigate to the src/ontology directory (cd upheno/src/ontology)
  2. Run release pipeline:sh run.sh make prepare_release -B. Note that for some ontologies, this process can take up to 90 minutes - especially if there are large ontologies you depend on, like PRO or CHEBI.
  3. If everything went well, you should see the following output on your machine: Release files are now in ../.. - now you should commit, push and make a release on your git hosting site such as GitHub or GitLab.

This will create all the specified release targets (OBO, OWL, JSON, and the variants, ont-full and ont-base) and copy them into your release directory (the top level of your repo).

"},{"location":"odk-workflows/ReleaseWorkflow/#review-the-release","title":"Review the release","text":"
  1. (Optional) Rough check. This step is frequently skipped, but for the more paranoid among us (like the author of this doc), this is a 3 minute additional effort for some peace of mind. Open the main release (upheno.owl) in you favourite development environment (i.e. Prot\u00e9g\u00e9) and eyeball the hierarchy. We recommend two simple checks:
    1. Does the very top level of the hierarchy look ok? This means that all new terms have been imported/updated correctly.
    2. Does at least one change that you know should be in this release appear? For example, a new class. This means that the release was actually based on the recent edit file.
  2. Commit your changes to the branch and make a pull request
  3. In your GitHub pull request, review the following three files in detail (based on our experience):
    1. upheno.obo - this reflects a useful subset of the whole ontology (everything that can be covered by OBO format). OBO format has that speaking for it: it is very easy to review!
    2. upheno-base.owl - this reflects the asserted axioms in your ontology that you have actually edited.
    3. Ideally also take a look at upheno-full.owl, which may reveal interesting new inferences you did not know about. Note that the diff of this file is sometimes quite large.
  4. Like with every pull request, we recommend to always employ a second set of eyes when reviewing a PR!
"},{"location":"odk-workflows/ReleaseWorkflow/#merge-the-main-branch","title":"Merge the main branch","text":"

Once your CI checks have passed, and your reviews are completed, you can now merge the branch into your main branch (don't forget to delete the branch afterwards - a big button will appear after the merge is finished).

"},{"location":"odk-workflows/ReleaseWorkflow/#create-a-github-release","title":"Create a GitHub release","text":"
  1. Go to your releases page on GitHub by navigating to your repository, and then clicking on releases (usually on the right, for example: https://github.com/obophenotype/upheno/releases). Then click \"Draft new release\"
  2. As the tag version you need to choose the date on which your ontologies were build. You can find this, for example, by looking at the upheno.obo file and check the data-version: property. The date needs to be prefixed with a v, so, for example v2020-02-06.
  3. You can write whatever you want in the release title, but we typically write the date again. The description underneath should contain a concise list of changes or term additions.
  4. Click \"Publish release\". Done.
"},{"location":"odk-workflows/ReleaseWorkflow/#debugging-typical-ontology-release-problems","title":"Debugging typical ontology release problems","text":""},{"location":"odk-workflows/ReleaseWorkflow/#problems-with-memory","title":"Problems with memory","text":"

When you are dealing with large ontologies, you need a lot of memory. When you see error messages relating to large ontologies such as CHEBI, PRO, NCBITAXON, or Uberon, you should think of memory first, see here.

"},{"location":"odk-workflows/ReleaseWorkflow/#problems-when-using-obo-format-based-tools","title":"Problems when using OBO format based tools","text":"

Sometimes you will get cryptic error messages when using legacy tools using OBO format, such as the ontology release tool (OORT), which is also available as part of the ODK docker container. In these cases, you need to track down what axiom or annotation actually caused the breakdown. In our experience (in about 60% of the cases) the problem lies with duplicate annotations (def, comment) which are illegal in OBO. Here is an example recipe of how to deal with such a problem:

  1. If you get a message like make: *** [cl.Makefile:84: oort] Error 255 you might have a OORT error.
  2. To debug this, in your terminal enter sh run.sh make IMP=false PAT=false oort -B (assuming you are already in the ontology folder in your directory)
  3. This should show you where the error is in the log (eg multiple different definitions) WARNING: THE FIX BELOW IS NOT IDEAL, YOU SHOULD ALWAYS TRY TO FIX UPSTREAM IF POSSIBLE
  4. Open upheno-edit.owl in Prot\u00e9g\u00e9 and find the offending term and delete all offending issue (e.g. delete ALL definition, if the problem was \"multiple def tags not allowed\") and save. *While this is not idea, as it will remove all definitions from that term, it will be added back again when the term is fixed in the ontology it was imported from and added back in.
  5. Rerun sh run.sh make IMP=false PAT=false oort -B and if it all passes, commit your changes to a branch and make a pull request as usual.
"},{"location":"odk-workflows/RepoManagement/","title":"Managing your ODK repository","text":""},{"location":"odk-workflows/RepoManagement/#updating-your-odk-repository","title":"Updating your ODK repository","text":"

Your ODK repositories configuration is managed in src/ontology/upheno-odk.yaml. Once you have made your changes, you can run the following to apply your changes to the repository:

sh run.sh make update_repo\n

There are a large number of options that can be set to configure your ODK, but we will only discuss a few of them here.

NOTE for Windows users:

You may get a cryptic failure such as Set Illegal Option - if the update script located in src/scripts/update_repo.sh was saved using Windows Line endings. These need to change to unix line endings. In Notepad++, for example, you can click on Edit->EOL Conversion->Unix LF to change this.

"},{"location":"odk-workflows/RepoManagement/#managing-imports","title":"Managing imports","text":"

You can use the update repository workflow described on this page to perform the following operations to your imports:

  1. Add a new import
  2. Modify an existing import
  3. Remove an import you no longer want
  4. Customise an import

We will discuss all these workflows in the following.

"},{"location":"odk-workflows/RepoManagement/#add-new-import","title":"Add new import","text":"

To add a new import, you first edit your odk config as described above, adding an id to the product list in the import_group section (for the sake of this example, we assume you already import RO, and your goal is to also import GO):

import_group:\n  products:\n    - id: ro\n    - id: go\n

Note: our ODK file should only have one import_group which can contain multiple imports (in the products section). Next, you run the update repo workflow to apply these changes. Note that by default, this module is going to be a SLME Bottom module, see here. To change that or customise your module, see section \"Customise an import\". To finalise the addition of your import, perform the following steps:

  1. Add an import statement to your src/ontology/upheno-edit.owl file. We suggest to do this using a text editor, by simply copying an existing import declaration and renaming it to the new ontology import, for example as follows:
    ...\nOntology(<http://purl.obolibrary.org/obo/upheno.owl>\nImport(<http://purl.obolibrary.org/obo/upheno/imports/ro_import.owl>)\nImport(<http://purl.obolibrary.org/obo/upheno/imports/go_import.owl>)\n...\n
  2. Add your imports redirect to your catalog file src/ontology/catalog-v001.xml, for example:
    <uri name=\"http://purl.obolibrary.org/obo/upheno/imports/go_import.owl\" uri=\"imports/go_import.owl\"/>\n
  3. Test whether everything is in order:
    1. Refresh your import
    2. Open in your Ontology Editor of choice (Protege) and ensure that the expected terms are imported.

Note: The catalog file src/ontology/catalog-v001.xml has one purpose: redirecting imports from URLs to local files. For example, if you have

Import(<http://purl.obolibrary.org/obo/upheno/imports/go_import.owl>)\n

in your editors file (the ontology) and

<uri name=\"http://purl.obolibrary.org/obo/upheno/imports/go_import.owl\" uri=\"imports/go_import.owl\"/>\n

in your catalog, tools like robot or Prot\u00e9g\u00e9 will recognize the statement in the catalog file to redirect the URL http://purl.obolibrary.org/obo/upheno/imports/go_import.owl to the local file imports/go_import.owl (which is in your src/ontology directory).

"},{"location":"odk-workflows/RepoManagement/#modify-an-existing-import","title":"Modify an existing import","text":"

If you simply wish to refresh your import in light of new terms, see here. If you wish to change the type of your module see section \"Customise an import\".

"},{"location":"odk-workflows/RepoManagement/#remove-an-existing-import","title":"Remove an existing import","text":"

To remove an existing import, perform the following steps:

  1. remove the import declaration from your src/ontology/upheno-edit.owl.
  2. remove the id from your src/ontology/upheno-odk.yaml, eg. - id: go from the list of products in the import_group.
  3. run update repo workflow
  4. delete the associated files manually:
    • src/imports/go_import.owl
    • src/imports/go_terms.txt
  5. Remove the respective entry from the src/ontology/catalog-v001.xml file.
"},{"location":"odk-workflows/RepoManagement/#customise-an-import","title":"Customise an import","text":"

By default, an import module extracted from a source ontology will be a SLME module, see here. There are various options to change the default.

The following change to your repo config (src/ontology/upheno-odk.yaml) will switch the go import from an SLME module to a simple ROBOT filter module:

import_group:\n  products:\n    - id: ro\n    - id: go\n      module_type: filter\n

A ROBOT filter module is, essentially, importing all external terms declared by your ontology (see here on how to declare external terms to be imported). Note that the filter module does not consider terms/annotations from namespaces other than the base-namespace of the ontology itself. For example, in the example of GO above, only annotations / axioms related to the GO base IRI (http://purl.obolibrary.org/obo/GO_) would be considered. This behaviour can be changed by adding additional base IRIs as follows:

import_group:\n  products:\n    - id: go\n      module_type: filter\n      base_iris:\n        - http://purl.obolibrary.org/obo/GO_\n        - http://purl.obolibrary.org/obo/CL_\n        - http://purl.obolibrary.org/obo/BFO\n

If you wish to customise your import entirely, you can specify your own ROBOT command to do so. To do that, add the following to your repo config (src/ontology/upheno-odk.yaml):

import_group:\n  products:\n    - id: ro\n    - id: go\n      module_type: custom\n

Now add a new goal in your custom Makefile (src/ontology/upheno.Makefile, not src/ontology/Makefile).

imports/go_import.owl: mirror/ro.owl imports/ro_terms_combined.txt\n    if [ $(IMP) = true ]; then $(ROBOT) query  -i $< --update ../sparql/preprocess-module.ru \\\n        extract -T imports/ro_terms_combined.txt --force true --individuals exclude --method BOT \\\n        query --update ../sparql/inject-subset-declaration.ru --update ../sparql/postprocess-module.ru \\\n        annotate --ontology-iri $(ONTBASE)/$@ $(ANNOTATE_ONTOLOGY_VERSION) --output $@.tmp.owl && mv $@.tmp.owl $@; fi\n

Now feel free to change this goal to do whatever you wish it to do! It probably makes some sense (albeit not being a strict necessity), to leave most of the goal instead and replace only:

extract -T imports/ro_terms_combined.txt --force true --individuals exclude --method BOT \\\n

to another ROBOT pipeline.

"},{"location":"odk-workflows/RepoManagement/#add-a-component","title":"Add a component","text":"

A component is an import which belongs to your ontology, e.g. is managed by you and your team.

  1. Open src/ontology/upheno-odk.yaml
  2. If you dont have it yet, add a new top level section components
  3. Under the components section, add a new section called products. This is where all your components are specified
  4. Under the products section, add a new component, e.g. - filename: mycomp.owl

Example

components:\n  products:\n    - filename: mycomp.owl\n

When running sh run.sh make update_repo, a new file src/ontology/components/mycomp.owl will be created which you can edit as you see fit. Typical ways to edit:

  1. Using a ROBOT template to generate the component (see below)
  2. Manually curating the component separately with Prot\u00e9g\u00e9 or any other editor
  3. Providing a components/mycomp.owl: make target in src/ontology/upheno.Makefile and provide a custom command to generate the component
    • WARNING: Note that the custom rule to generate the component MUST NOT depend on any other ODK-generated file such as seed files and the like (see issue).
  4. Providing an additional attribute for the component in src/ontology/upheno-odk.yaml, source, to specify that this component should simply be downloaded from somewhere on the web.
"},{"location":"odk-workflows/RepoManagement/#adding-a-new-component-based-on-a-robot-template","title":"Adding a new component based on a ROBOT template","text":"

Since ODK 1.3.2, it is possible to simply link a ROBOT template to a component without having to specify any of the import logic. In order to add a new component that is connected to one or more template files, follow these steps:

  1. Open src/ontology/upheno-odk.yaml.
  2. Make sure that use_templates: TRUE is set in the global project options. You should also make sure that use_context: TRUE is set in case you are using prefixes in your templates that are not known to robot, such as OMOP:, CPONT: and more. All non-standard prefixes you are using should be added to config/context.json.
  3. Add another component to the products section.
  4. To activate this component to be template-driven, simply say: use_template: TRUE. This will create an empty template for you in the templates directory, which will automatically be processed when recreating the component (e.g. run.bat make recreate-mycomp).
  5. If you want to use more than one component, use the templates field to add as many template names as you wish. ODK will look for them in the src/templates directory.
  6. Advanced: If you want to provide additional processing options, you can use the template_options field. This should be a string with option from robot template. One typical example for additional options you may want to provide is --add-prefixes config/context.json to ensure the prefix map of your context is provided to robot, see above.

Example:

components:\n  products:\n    - filename: mycomp.owl\n      use_template: TRUE\n      template_options: --add-prefixes config/context.json\n      templates:\n        - template1.tsv\n        - template2.tsv\n

Note: if your mirror is particularly large and complex, read this ODK recommendation.

"},{"location":"odk-workflows/RepositoryFileStructure/","title":"Repository structure","text":"

The main kinds of files in the repository:

  1. Release files
  2. Imports
  3. Components
"},{"location":"odk-workflows/RepositoryFileStructure/#release-files","title":"Release files","text":"

Release file are the file that are considered part of the official ontology release and to be used by the community. A detailed description of the release artefacts can be found here.

"},{"location":"odk-workflows/RepositoryFileStructure/#imports","title":"Imports","text":"

Imports are subsets of external ontologies that contain terms and axioms you would like to re-use in your ontology. These are considered \"external\", like dependencies in software development, and are not included in your \"base\" product, which is the release artefact which contains only those axioms that you personally maintain.

These are the current imports in UPHENO

Import URL Type go https://raw.githubusercontent.com/obophenotype/pro_obo_slim/master/pr_slim.owl None nbo http://purl.obolibrary.org/obo/nbo.owl None uberon http://purl.obolibrary.org/obo/uberon.owl None cl http://purl.obolibrary.org/obo/cl.owl None pato http://purl.obolibrary.org/obo/pato.owl None mpath http://purl.obolibrary.org/obo/mpath.owl None ro http://purl.obolibrary.org/obo/ro.owl None omo http://purl.obolibrary.org/obo/omo.owl None chebi https://raw.githubusercontent.com/obophenotype/chebi_obo_slim/main/chebi_slim.owl None oba http://purl.obolibrary.org/obo/oba.owl None ncbitaxon http://purl.obolibrary.org/obo/ncbitaxon/subsets/taxslim.owl None pr https://raw.githubusercontent.com/obophenotype/pro_obo_slim/master/pr_slim.owl None bspo http://purl.obolibrary.org/obo/bspo.owl None ncit http://purl.obolibrary.org/obo/ncit.owl None fbbt http://purl.obolibrary.org/obo/fbbt.owl None fbdv http://purl.obolibrary.org/obo/fbdv.owl None hsapdv http://purl.obolibrary.org/obo/hsapdv.owl None wbls http://purl.obolibrary.org/obo/wbls.owl None wbbt http://purl.obolibrary.org/obo/wbbt.owl None plana http://purl.obolibrary.org/obo/plana.owl None zfa http://purl.obolibrary.org/obo/zfa.owl None xao http://purl.obolibrary.org/obo/xao.owl None hsapdv-uberon http://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-hsapdv.owl custom zfa-uberon http://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-zfa.owl custom zfs-uberon http://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-zfs.owl custom xao-uberon http://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-xao.owl custom wbbt-uberon http://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-wbbt.owl custom wbls-uberon http://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-wbls.owl custom fbbt-uberon http://purl.obolibrary.org/obo/uberon/bridge/uberon-bridge-to-fbbt.owl custom xao-cl http://purl.obolibrary.org/obo/uberon/bridge/cl-bridge-to-xao.owl custom wbbt-cl http://purl.obolibrary.org/obo/uberon/bridge/cl-bridge-to-wbbt.owl custom fbbt-cl http://purl.obolibrary.org/obo/uberon/bridge/cl-bridge-to-fbbt.owl custom"},{"location":"odk-workflows/RepositoryFileStructure/#components","title":"Components","text":"

Components, in contrast to imports, are considered full members of the ontology. This means that any axiom in a component is also included in the ontology base - which means it is considered native to the ontology. While this sounds complicated, consider this: conceptually, no component should be part of more than one ontology. If that seems to be the case, we are most likely talking about an import. Components are often not needed for ontologies, but there are some use cases:

  1. There is an automated process that generates and re-generates a part of the ontology
  2. A part of the ontology is managed in ROBOT templates
  3. The expressivity of the component is higher than the format of the edit file. For example, people still choose to manage their ontology in OBO format (they should not) missing out on a lot of owl features. They may choose to manage logic that is beyond OBO in a specific OWL component.

These are the components in UPHENO

Filename URL phenotypes_manual.owl None upheno-mappings.owl None cross-species-mappings.owl None"},{"location":"odk-workflows/SettingUpDockerForODK/","title":"Setting up your Docker environment for ODK use","text":"

One of the most frequent problems with running the ODK for the first time is failure because of lack of memory. This can look like a Java OutOfMemory exception, but more often than not it will appear as something like an Error 137. There are two places you need to consider to set your memory:

  1. Your src/ontology/run.sh (or run.bat) file. You can set the memory in there by adding robot_java_args: '-Xmx8G' to your src/ontology/upheno-odk.yaml file, see for example here.
  2. Set your docker memory. By default, it should be about 10-20% more than your robot_java_args variable. You can manage your memory settings by right-clicking on the docker whale in your system bar-->Preferences-->Resources-->Advanced, see picture below.

"},{"location":"odk-workflows/UpdateImports/","title":"Update Imports Workflow","text":"

This page discusses how to update the contents of your imports, like adding or removing terms. If you are looking to customise imports, like changing the module type, see here.

"},{"location":"odk-workflows/UpdateImports/#importing-a-new-term","title":"Importing a new term","text":"

Note: some ontologies now use a merged-import system to manage dynamic imports, for these please follow instructions in the section title \"Using the Base Module approach\".

Importing a new term is split into two sub-phases:

  1. Declaring the terms to be imported
  2. Refreshing imports dynamically
"},{"location":"odk-workflows/UpdateImports/#declaring-terms-to-be-imported","title":"Declaring terms to be imported","text":"

There are three ways to declare terms that are to be imported from an external ontology. Choose the appropriate one for your particular scenario (all three can be used in parallel if need be):

  1. Prot\u00e9g\u00e9-based declaration
  2. Using term files
  3. Using the custom import template
"},{"location":"odk-workflows/UpdateImports/#protege-based-declaration","title":"Prot\u00e9g\u00e9-based declaration","text":"

This workflow is to be avoided, but may be appropriate if the editor does not have access to the ODK docker container. This approach also applies to ontologies that use base module import approach.

  1. Open your ontology (edit file) in Prot\u00e9g\u00e9 (5.5+).
  2. Select 'owl:Thing'
  3. Add a new class as usual.
  4. Paste the full iri in the 'Name:' field, for example, http://purl.obolibrary.org/obo/CHEBI_50906.
  5. Click 'OK'

Now you can use this term for example to construct logical definitions. The next time the imports are refreshed (see how to refresh here), the metadata (labels, definitions, etc.) for this term are imported from the respective external source ontology and becomes visible in your ontology.

"},{"location":"odk-workflows/UpdateImports/#using-term-files","title":"Using term files","text":"

Every import has, by default a term file associated with it, which can be found in the imports directory. For example, if you have a GO import in src/ontology/go_import.owl, you will also have an associated term file src/ontology/go_terms.txt. You can add terms in there simply as a list:

GO:0008150\nGO:0008151\n

Now you can run the refresh imports workflow) and the two terms will be imported.

"},{"location":"odk-workflows/UpdateImports/#using-the-custom-import-template","title":"Using the custom import template","text":"

This workflow is appropriate if:

  1. You prefer to manage all your imported terms in a single file (rather than multiple files like in the \"Using term files\" workflow above).
  2. You wish to augment your imported ontologies with additional information. This requires a cautionary discussion.

To enable this workflow, you add the following to your ODK config file (src/ontology/upheno-odk.yaml), and update the repository:

use_custom_import_module: TRUE\n

Now you can manage your imported terms directly in the custom external terms template, which is located at src/templates/external_import.owl. Note that this file is a ROBOT template, and can, in principle, be extended to include any axioms you like. Before extending the template, however, read the following carefully.

The main purpose of the custom import template is to enable the management off all terms to be imported in a centralised place. To enable that, you do not have to do anything other than maintaining the template. So if you, say currently import APOLLO_SV:00000480, and you wish to import APOLLO_SV:00000532, you simply add a row like this:

ID  Entity Type\nID  TYPE\nAPOLLO_SV:00000480  owl:Class\nAPOLLO_SV:00000532  owl:Class\n

When the imports are refreshed see imports refresh workflow, the term(s) will simply be imported from the configured ontologies.

Now, if you wish to extend the Makefile (which is beyond these instructions) and add, say, synonyms to the imported terms, you can do that, but you need to (a) preserve the ID and ENTITY columns and (b) ensure that the ROBOT template is valid otherwise, see here.

WARNING. Note that doing this is a widespread antipattern (see related issue). You should not change the axioms of terms that do not belong into your ontology unless necessary - such changes should always be pushed into the ontology where they belong. However, since people are doing it, whether the OBO Foundry likes it or not, at least using the custom imports module as described here localises the changes to a single simple template and ensures that none of the annotations added this way are merged into the base file.

"},{"location":"odk-workflows/UpdateImports/#refresh-imports","title":"Refresh imports","text":"

If you want to refresh the import yourself (this may be necessary to pass the travis tests), and you have the ODK installed, you can do the following (using go as an example):

First, you navigate in your terminal to the ontology directory (underneath src in your hpo root directory).

cd src/ontology\n

Then, you regenerate the import that will now include any new terms you have added. Note: You must have docker installed.

sh run.sh make PAT=false imports/go_import.owl -B\n

Since ODK 1.2.27, it is also possible to simply run the following, which is the same as the above:

sh run.sh make refresh-go\n

Note that in case you changed the defaults, you need to add IMP=true and/or MIR=true to the command below:

sh run.sh make IMP=true MIR=true PAT=false imports/go_import.owl -B\n

If you wish to skip refreshing the mirror, i.e. skip downloading the latest version of the source ontology for your import (e.g. go.owl for your go import) you can set MIR=false instead, which will do the exact same thing as the above, but is easier to remember:

sh run.sh make IMP=true MIR=false PAT=false imports/go_import.owl -B\n
"},{"location":"odk-workflows/UpdateImports/#using-the-base-module-approach","title":"Using the Base Module approach","text":"

Since ODK 1.2.31, we support an entirely new approach to generate modules: Using base files. The idea is to only import axioms from ontologies that actually belong to it. A base file is a subset of the ontology that only contains those axioms that nominally belong there. In other words, the base file does not contain any axioms that belong to another ontology. An example would be this:

Imagine this being the full Uberon ontology:

Axiom 1: BFO:123 SubClassOf BFO:124\nAxiom 1: UBERON:123 SubClassOf BFO:123\nAxiom 1: UBERON:124 SubClassOf UBERON 123\n

The base file is the set of all axioms that are about UBERON terms:

Axiom 1: UBERON:123 SubClassOf BFO:123\nAxiom 1: UBERON:124 SubClassOf UBERON 123\n

I.e.

Axiom 1: BFO:123 SubClassOf BFO:124\n

Gets removed.

The base file pipeline is a bit more complex than the normal pipelines, because of the logical interactions between the imported ontologies. This is solved by _first merging all mirrors into one huge file and then extracting one mega module from it.

Example: Let's say we are importing terms from Uberon, GO and RO in our ontologies. When we use the base pipelines, we

1) First obtain the base (usually by simply downloading it, but there is also an option now to create it with ROBOT) 2) We merge all base files into one big pile 3) Then we extract a single module imports/merged_import.owl

The first implementation of this pipeline is PATO, see https://github.com/pato-ontology/pato/blob/master/src/ontology/pato-odk.yaml.

To check if your ontology uses this method, check src/ontology/upheno-odk.yaml to see if use_base_merging: TRUE is declared under import_group

If your ontology uses Base Module approach, please use the following steps:

First, add the term to be imported to the term file associated with it (see above \"Using term files\" section if this is not clear to you)

Next, you navigate in your terminal to the ontology directory (underneath src in your hpo root directory).

cd src/ontology\n

Then refresh imports by running

sh run.sh make imports/merged_import.owl\n
Note: if your mirrors are updated, you can run sh run.sh make no-mirror-refresh-merged

This requires quite a bit of memory on your local machine, so if you encounter an error, it might be a lack of memory on your computer. A solution would be to create a ticket in an issue tracker requesting for the term to be imported, and one of the local devs should pick this up and run the import for you.

Lastly, restart Prot\u00e9g\u00e9, and the term should be imported in ready to be used.

"},{"location":"odk-workflows/components/","title":"Adding components to an ODK repo","text":"

For details on what components are, please see component section of repository file structure document.

To add custom components to an ODK repo, please follow the following steps:

1) Locate your odk yaml file and open it with your favourite text editor (src/ontology/upheno-odk.yaml) 2) Search if there is already a component section to the yaml file, if not add it accordingly, adding the name of your component:

components:\n  products:\n    - filename: your-component-name.owl\n

3) Add the component to your catalog file (src/ontology/catalog-v001.xml)

  <uri name=\"http://purl.obolibrary.org/obo/upheno/components/your-component-name.owl\" uri=\"components/your-component-name.owl\"/>\n

4) Add the component to the edit file (src/ontology/upheno-edit.obo) for .obo formats:

import: http://purl.obolibrary.org/obo/upheno/components/your-component-name.owl\n

for .owl formats:

Import(<http://purl.obolibrary.org/obo/upheno/components/your-component-name.owl>)\n

5) Refresh your repo by running sh run.sh make update_repo - this should create a new file in src/ontology/components. 6) In your custom makefile (src/ontology/upheno.Makefile) add a goal for your custom make file. In this example, the goal is a ROBOT template.

$(COMPONENTSDIR)/your-component-name.owl: $(SRC) ../templates/your-component-template.tsv \n    $(ROBOT) template --template ../templates/your-component-template.tsv \\\n  annotate --ontology-iri $(ONTBASE)/$@ --output $(COMPONENTSDIR)/your-component-name.owl\n

(If using a ROBOT template, do not forget to add your template tsv in src/templates/)

7) Make the file by running sh run.sh make components/your-component-name.owl

"},{"location":"organization/meetings/","title":"The Unified Phenotype Ontology (uPheno) meeting series","text":"

The uPheno editors call is held every second Thursday (bi-weekly) on Zoom, provided by members of the Monarch Initiative and co-organised by members of the Alliance and Genome Resources. If you wish to join the meeting, you can open an issue on https://github.com/obophenotype/upheno/issues with the request to be added, or send an email to phenotype-ontologies-editors@googlegroups.com.

The meeting coordinator (MC) is the person charged with organising the meeting. The current MC is Ray, @rays22.

"},{"location":"organization/meetings/#meeting-preparation","title":"Meeting preparation","text":"
  • The MC prepares the agenda in advance: everyone on the call is very busy and our time is precious.
  • Every agenda item has an associated ticket on GitHub, and a clear set of action items should be added in GitHub Tasklist syntax to the first comment on the issue.
  • If there are issues for any subtasks (e.g. PATO or Uberon edits), the list should be edited to link these.
  • Any items that do not have a subissue but do involve changes to patterns) should be edited to link to implementing PR.
  • It does not matter who wrote the first issue comment, the uPheno team can simply add a tasklist underneath the original comment and refine it over time.
  • Tag all issues which need discussion with \"upheno call\"
  • It must be clear from the task list what the uPheno team should be doing during the call (discuss, decide, review). For example, one item on the task list may read: \"uPheno team to decide on appropriate label for template\".
  • Conversely, no issue should be added to the agenda that does not have a clear set of action items associated with it that should be addressed during the call. These actions may include making and documenting modelling decisions.
  • Go through up to 10 issues on the uPheno issue tracker before each meeting to determine how to progress on them, and add action items. Only if they need to be discussed, add the \"upheno call\" label.
"},{"location":"organization/meetings/#meeting","title":"Meeting","text":"
  • Every meeting should start with a quick (max 5 min, ideally 3 min) overview of all the goals and how they processed. The MC should mention all blockers and goals, even the ones we did not make any progress on, to keep the focus on the priorities:
  • uPheno releases
  • uPheno documentation
  • Pattern creation
  • Patternisation: The process of ensuring that phenotype ontologies are using uPheno conformant templates to define their phenotypes.
  • Harmonisation: The process of ensuring that phenotype patterns are applied consistently across ontologies.
  • For new pattern discussions:
  • Every new pattern proposal should come with a new GitHub issue, appropriately tagged.
  • The issue text should detail the use cases for the pattern well, and these use cases should also be documented in the \"description\" part of the DOSDP YAML file. Uses cases should include expected classifications and why we want them (and potentially classifications to avoid). e.g. axis-specific dimension traits should classify under more abstractly defined dimension traits which in term should classify under Morphology. Add some examples of contexts where grouping along these classifications is useful.
  • Agenda items may include discussion and decisions about more general modelling issues that affect more than one pattern, but these should also be documented as tickets as described above.
"},{"location":"organization/meetings/#after-the-meeting","title":"After the meeting","text":"
  • After every meeting, update all issues discussed on GitHub and, in particular, clarify the remaining action items.
  • Ensure that the highest priority issues are discussed first.
"},{"location":"organization/outreach/","title":"The Outreach Programme of the Unified Phenotype Ontology (uPheno) development team","text":""},{"location":"organization/outreach/#outreach-calls","title":"Outreach-calls","text":"

The uPheno organises an outreach call every four weeks to listen to external stakeholders describing their need for cross-species phenotype integration.

"},{"location":"organization/outreach/#schedule","title":"Schedule","text":"Date Lesson Notes Recordings 2024/04/05 TBD TBD 2024/3/08 Computational identification of disease models through cross-species phenotype comparison Diego A. Pava, Pilar Cacheiro, Damian Smedley (IMPC) Recording 2024/02/09 Use cases for uPheno in the Alliance of Genome Resources and MGI Sue Bello (Alliance of Genome Resources, MGI) Recording"},{"location":"organization/outreach/#possible-topics","title":"Possible topics","text":"
  • Cross-species inference in Variant and Gene Prioritisation algorithms (Exomiser).
  • Cross-species comparison of phenotypic profiles (Monarch Initiative Knowledge Graph)
  • Cross-species data in biomedical knowledge graphs (Kids First)
"},{"location":"reference/core-concepts/","title":"Core concepts","text":""},{"location":"reference/core-concepts/#traits-and-phenotypes-the-conceptual-model","title":"Traits and phenotypes - the Conceptual model","text":""},{"location":"reference/core-concepts/#overview","title":"Overview","text":"

Here, we discuss the core concepts of the computational phenotype model underpinning the uPheno effort.

"},{"location":"reference/core-concepts/#table-of-contents","title":"Table of contents","text":"
  • General characteristic
  • Bearer
  • Biological attributes
  • Phenotypic change
  • Disease
  • Measurement
"},{"location":"reference/core-concepts/#general-characteristics","title":"General characteristics","text":"

\"Characteristics\" or \"qualities\" refer to an inherent or distinguishing characteristic or attribute of something or someone. It represents a feature that defines the nature of an object, organism, or entity and can be used to describe, compare, and categorize different things. Characteristics can be either qualitative (such as color, texture, or taste) or quantitative (such as height, weight, or age).

The Phenotype And Trait Ontology (PATO) is the reference ontology for general characteristics in the OBO world.

Some of the most widely use characteristics can be seen in the following tables

quality description example Length (PATO:0000122) A 1-D extent quality which is equal to the distance between two points. Mass (PATO:0000128) A physical quality that inheres in a bearer by virtue of the proportion of the bearer's amount of matter. Amount (PATO:0000070) The number of entities of a type that are part of the whole organism. Morphology (PATO:0000051) A quality of a single physical entity inhering in the bearer by virtue of the bearer's size or shape or structure.

Note from the authors: The descriptions above have been taken from PATO, but they are not very.. user friendly.

"},{"location":"reference/core-concepts/#biological-traitcharacteristicsattribute","title":"Biological Trait/Characteristics/Attribute","text":"

Characteristics such as the one above can be used to describe a variety of entities such as biological, environmental and social. We are specifically concerned with biological traits, which are characteristics that refer to an inherent characteristic of a biological entity, such as an organ (the heart), a process (cell division), a chemical entity (lysine) in the blood.

The Ontology of Biological Attributes (OBA) is the reference ontology for biological characteristics in the OBO world. There are a few other ontologies that describe biological traits, such as the Vertebrate Phenotype Ontology and the Ascomycete Phenotype Ontology (APO), but these are more species specific, and, more importantly, are not integrated in the wider EQ modelling framework.

Property Example term Definition Length OBA:VT0002544 The length of a digit. Mass OBA:VT0001259 The mass of a multicellular organism. Level OBA:2020005 The amount of lysine in blood. Morphology OBA:VT0005406 The size of a heart.

"},{"location":"reference/core-concepts/#bearer-of-biological-characteristics","title":"Bearer of Biological Characteristics","text":"

In biological contexts, the term \"bearer\" refers to the entity that possesses or carries a particular characteristic or quality. The bearer can be any biological entity, such as an organism, an organ, a cell, or even a molecular structure, that exhibits a specific trait or feature. Some examples:

  1. Organism as a Bearer:
    • Example: A specific tree (such as an oak tree) is the bearer of the characteristic 'height'.
    • Explanation: The tree as an organism carries or has the property of height, making it the bearer of this characteristic.
  2. Organ as a Bearer:
    • Example: The heart of a mammal can be the bearer of the characteristic 'heart size'.
    • Explanation: Here, the heart is the organ that possesses the 'heart size' charactertistic. The characteristic ('heart size') is a quality of the heart itself.
  3. Cell as a Bearer:
    • Example: A red blood cell is the bearer of the characteristic 'cell diameter'.
    • Explanation: The diameter is a property of the individual cell. Thus, each red blood cell is the bearer of its diameter measurement.
  4. Molecular Structure as a Bearer:
    • Example: A DNA molecule can be the bearer of the characteristic 'sequence length'.
    • Explanation: The length of the DNA sequence is a property of the DNA molecule itself, making the molecule the bearer of this characteristic.
  5. Genetic Trait as a Bearer:
    • Example: A fruit fly (Drosophila melanogaster) can be the bearer of a genetic trait like eye color.
    • Explanation: The organism (fruit fly) carries the genetic information that determines eye color, making it the bearer of this specific trait.

In each example, the \"bearer\" is the entity that has, carries, or exhibits a particular biological characteristic. This concept is fundamental in biology and bioinformatics for linking specific traits, qualities, or features to the entities that possess them, thereby enabling a clearer understanding and categorization of biological diversity and functions.

"},{"location":"reference/core-concepts/#phenotypic-change","title":"Phenotypic change","text":"

A phenotypic change refers to some deviation from reference morphology, physiology, or behavior. This is the most widely used, and most complicated category of phenotype terms for data specialists to understand.

Conceptually, a phenotypic change comprises:

  • a biological attribute (which includes a biological bearer)
  • an \"change\" modifier
  • (optionally) a directional modifier (increased / decreased)
  • a comparator

Biological attributes such as blood lysine amount (OBA:2020005) have been discussed earlier in this document. The most widely used change modifier used in practice is abnormal (PATO:0000460). This modifier signifies that the phenotypic change term describes a deviation that is abnormal, such as \"Hyperlysinemia\" (HP:0002161), which describes and increased concentration of lysine in the blood. Other modifiers include normal (PATO:0000461), which describes a change within in the normal range (sometimes interpreted as \"no change\"). A directional modifier like increased (PATO:0040043) or decreased (PATO:0040042). In practice, most of our \"characteristic\" terms have specialised directional variants such as decreased amount (PATO:0001997) which can be used to describe phenotypes.

"},{"location":"reference/core-concepts/#the-nuissance-of-implicit-comparators","title":"The nuissance of \"implicit comparators\"","text":"

Comparators are the most confusing aspects of phenotypic change. The first question someone has to ask when they see a concept describing is change like increased blood lysine levels is \"compared to what?\". Depending on biological context, the assumed comparators vary widely. For example, in clinical phenotyping, it is mostly assumed that a phenotypic feature corresponds to a deviation from the normal range, see HPO docs. However, it is just just as easily imaginable that HPO terms are used to describe change compared to a previous state of the same individual (increased tumor size compared to last time we checked). In research settings such as GWAS study annotations, HPO terms are used to annotate variants where a statistically significant change was observed compared to the general population. The same is true for many model phenotyping efforts such as MGI, where the situation is even further complicated that the comparator is not \"the general population\", but a control group. In summary, comparators can be:

  • The general population (\"wild type\" in research)
  • A non-representative sample of the general population (blood glucose values of all diabetes patients, a control group from the same mouse strain)
  • A previous state of a study subject (e.g. SNOMED).

And the compared charactertistics could be

  • Deviating from some notion of normality (abnormal)
  • A statistically significant change (including within normal)

No matter how much we want it - concepts describing phenotypic change will be used in many creative ways, and unfortunately, once the data hits your data analysis pipeline, you will likely not know for sure the nature of the comparator. Where you can, you should try to figure it out from the metata.

This sounds like bad news. However, keep one thing in mind: Phenotype associations (to anything, including genes) are rarely strictly causal. Even if a change is observed \"compared to some non-representative control\" there is likely to be some signal useful for downstream inference - somehow, the \"gene has something to do with the phenotype\".

"},{"location":"reference/core-concepts/#the-chaotic-terminology-around-phenotype","title":"The chaotic terminology around \"phenotype\"","text":"

In the clinical domain, many ontologies exist that define concepts that are very strongly related to our notion of \"phenotype\". In SNOMED, for example, \"clinical findings\" are defined as normal/abnormal observations, judgments, or assessments of patients (e.g. Abnormal urinalysis (finding)). For most analytic purposes, we think of SNOMEDs (and other medical terminologies) notion of clinical finding of something ortologous to our notion of \"phenotype\" (and their \"observale entity\" as a trait/biological attribute). However, if one gets into the weeds, many discrepencies in judgement can be observed, in particular when it comes to the separation from disease.

\"Phenotype\" is typically used in its \"singular\" form to describe the set of all observable characteristics of a subject. However, because we have over time gotten used to talking about \"cardiovascular phenotype\" and \"increased blood glucose level\", we have started using the plural form more, i.e. \"phenotypes\". We now tend to use the term \"phenotypic profile\" to describe the set of phenotypes that an organism exhibits at some point in time.

\"Phenotypic feature\" is a commonly used term that refers to the same idea, but mostly in the context of disease to describe an observable characteristic commonly associated with a disease.

\"Phenotypic abnormality\" is the formal term to describe a concept in the HPO, and is sometimes used to refer to the same idea in HPO-related papers. There is a bit of an assumption here, compared to the more general concepts described in this section, which is that the term should refer to a \"deviation from the normal range\", but, as described in the section of \"implicit comparators\", this assumption does not always hold in practice.

\"Phenotypic change\" is a recent invention by David Osumi-Sutherland in an attempt to subsume the ideas above, in particular to explicitly step back from the concept of \"deviation from normal\" to \"statistically significant deviation\" (which includes the normal range).

"},{"location":"reference/core-concepts/#examples","title":"Examples","text":"

The Unified Phenotype Ontology (uPheno) is the reference ontology for biological abnormalities in the OBO world. There are a many species-specific ontologies in the OBO world, such as the Mammalian Phenotype Ontology (MP), the Human Phenotype Ontology (HPO) and the Drosophila Phenotype Ontology (DPO), see here.

Property Example term Definition Length UPHENO:0072215 Increased length of the digit. Mass UPHENO:0054299 Decreased multicellular organism mass. Level UPHENO:0034327 Decreased level of lysine in blood. Morphology UPHENO:0001471 Increased size of the heart.

"},{"location":"reference/core-concepts/#diseases","title":"Diseases","text":"

Diseases are among the most important concepts in the phenotype data space. Phenotypes relate One big source of confusion in our community is the seperation of \"phenotypic features\" or changes from diseases. The HPO docs provide an explanation geared at clinicians to help them distinguish between the two. The quest on developing an operational definition is still ongoing, but for now, we recommend to go with the following basic assumptions:

  1. There is a difference between disease and phenotype.
  2. Phenotypes are features of diseases. Diseases can be associated with 1 or more phenotypic features. In the case of 1, we sometimes talk about \"isolated X\", for example \"Isolated Growth Hormone Deficiency (IGHD)\". IGHD is a condition where the pituitary gland produces insufficient growth hormone, leading to stunted growth.
  3. Diseases, despite their grounding in biological reality, should be perceived mostly as social constructs that (adjusted from HPO docs):
    • Are used to capture a diagnosis (not just an observation - a judgement).
    • Are associated with a defined etiology (whether identified or as yet unknown, idiopathic). This is not about have some cause. This is about having a specific cause, even if it is unknown.
    • Have a defined time course (more or less well understood).
    • If treatments exist, there is a characteristic response to them. The key point is that the above are part of the disease definition.

"},{"location":"reference/core-concepts/#measurements","title":"Measurements","text":"

In biological data curation, it\u2019s essential to differentiate between traits (observable characteristics such as \"blood glucose level\") and measurements (a process to observe such characteristics, e.g. \"blood glucose level assay\", \"BMI\"). Just from the term itself this is often difficult. \"Blood glucose level\" can refer both a measurement and a trait when taken out of context, but the ontologies they appear in should differenciate cleanly between the two. Here are some ways to distinguish them: - traits are - observable characteritics of an organism - can be qualitative (\"red eye colour\") or quantitative (\"35 cm tail length\") - measurements are - activties performed by an agent (such as a researcher) - involve the quantification or qualification of a specific trait - correspond to measurement instruments / techniques (such as assays, BMIs)

In practice, it is true that a lot of data records a wild mix of the two. It is the job of (semantic) data modeling specialists to clearly distinguish the two when integrating annotate data from sources with divergent curation practices.

"},{"location":"reference/core-concepts/#putting-it-all-together","title":"Putting it all together","text":"

Characteristics (A) and bearers of characteristics (B) are the core constituents of traits/biological attributes (C). Phenotypes are comprised of trait terms (C) combined with a modifier (D). Species-specific phenotypes (F), including phenotypic abnormalities defined in the Human Phenotype Ontology (HPO) are feature of diseases (G). Measurements (H), such as assays, quantify or qualify (measure) traits (C).

"},{"location":"reference/data-integration/","title":"Integrating phenotype data with the uPheno framework","text":""},{"location":"reference/data-integration/#integrating-phenotype-data-using-the-upheno-framework","title":"Integrating phenotype data using the uPheno framework","text":""},{"location":"reference/data-integration/#prerequisites","title":"Prerequisites","text":"
  • Familiarise yourself with the core concepts
  • Familiarise the basics of phenotype data
"},{"location":"reference/data-integration/#level-1-integration-data","title":"Level 1 integration: Data","text":"

Before we get started, let's remind ourselves of the basic structure of phenotype data.

Characteristics (A) and bearers of characteristics (B) are the core constituents of traits/biological attributes (C). Phenotypes are comprised of trait terms (C) combined with a modifier (D). Species-specific phenotypes (F), including phenotypic abnormalities defined in the Human Phenotype Ontology (HPO) are feature of diseases (G). Measurements (H), such as assays, quantify or qualify (measure) traits (C).

Integrating all kinds of phenotype data into the \"uPheno framework\" is a complex process which we will break down in the following.

"},{"location":"reference/data-integration/#level-2-integration-knowledge","title":"Level 2 integration: Knowledge","text":""},{"location":"reference/data-integration/#important-relationships-wrt-to-phenotype-data","title":"Important relationships wrt to phenotype data","text":"
  • inheres in / characteristic of
  • bearer of
"},{"location":"reference/imports/","title":"Overview","text":"
  1. labels Featured
  2. Imported ontologies
"},{"location":"reference/imports/#introduction","title":"Introduction","text":"

Imports directory:

*http://purl.obolibrary.org/obo/upheno/imports/

Currently the imports includes:

*\u00a0imports/chebi_import.owl\\ *\u00a0imports/doid_import.owl\\ *\u00a0imports/go_import.owl\\ *\u00a0imports/mpath_import.owl\\ *\u00a0imports/pato_import.owl\\ *\u00a0imports/pr_import.owl\\ *\u00a0imports/uberon_import.owl\\ *\u00a0imports/wbbt_import.owl

"},{"location":"reference/imports/#anatomy","title":"Anatomy","text":"

To avoid multiple duplicate classes for heart, lung, skin etc we map all classes to [Uberon] where this is applicable. For more divergent species such as fly and C elegans we use the appropriate species-specific ontology.

Currently there are a small number of highly specific classes in FMA that are being used and have no corresponding class in Uberon

"},{"location":"reference/imports/#methods","title":"Methods","text":"

We use the OWLAPI SyntacticLocalityModularityExtractor, via [OWLTools]. See the http://purl.obolibrary.org/obo/upheno/Makefile for details

"},{"location":"reference/phenotype-data/","title":"Phenotype data","text":""},{"location":"reference/phenotype-data/#phenotype-data-in-practice","title":"Phenotype Data in practice","text":""},{"location":"reference/phenotype-data/#overview","title":"Overview","text":"

The goals of this document are:

  • Give a sense of the contexts in which phenotype data is produced (research and clinical)
  • Give a sense of the shape of different styles of phenotype data
"},{"location":"reference/phenotype-data/#table-of-contents","title":"Table of contents","text":"
  • Some examples of phenotype data
  • Different shapes of phenotype data
    • Pre-coordinated
    • Post-coordinated
    • Standardised/non-standardized
    • Quantitative/qualitative
"},{"location":"reference/phenotype-data/#some-examples-of-phenotype-data","title":"Some examples of phenotype data","text":"Category Example datasets Example phenotype Gene to phenotype associations Online Mendelian Inheritance in Man (OMIM), Human Phenotype Ontology (HPO), Gene Ontology (GO) Achondroplasia (associated with FGFR3 gene mutations) Gene to disease associations The Cancer Genome Atlas (TCGA), Online Mendelian Inheritance in Man (OMIM), GWAS Catalog Breast invasive carcinoma (associated with BRCA1/BRCA2 mutations) Phenotype-phenotype semantic similarity Human Phenotype Ontology (HPO), Unified Medical Language System (UMLS), Disease Ontology (DO) Cardiac abnormalities (semantic similarity with congenital heart defects) Quantified trait data (QTL etc) NHGRI-EBI GWAS Catalog, Genotype-Tissue Expression (GTEx), The Human Protein Atlas Height (quantified trait associated with SNPs in genomic regions) Electronic health records Medical Information Mart for Intensive Care III (MIMIC-III), UK Biobank, IBM Watson Health Acute kidney injury (recorded diagnosis during ICU stay) Epidemiological datasets Framingham Heart Study, National Health and Nutrition Examination Survey (NHANES), Global Burden of Disease Study (GBD) Cardiovascular disease (epidemiological study of risk factors and disease incidence) Clinical trial datasets ClinicalTrials.gov, European Union Clinical Trials Register (EUCTR), International Clinical Trials Registry Platform (ICTRP) Treatment response (clinical trial data on efficacy and safety outcomes) Environmental exposure datasets Environmental Protection Agency Air Quality System (EPA AQS), Global Historical Climatology Network (GHCN), National Centers for Environmental Information Climate Data Online (NCEI CDO) Respiratory diseases (association with air pollutant exposure) Population surveys e.g., UK Biobank UK Biobank, National Health Interview Survey (NHIS), National Health and Nutrition Examination Survey (NHANES) Chronic diseases (population-based study on disease prevalence and risk factors) Behavioral observation datasets National Survey on Drug Use and Health (NSDUH), Add Health, British Cohort Study (BCS) Substance abuse disorders (survey data on drug consumption and addiction)"},{"location":"reference/phenotype-data/#different-shapes-of-phenotype-data","title":"Different shapes of phenotype data","text":"

Phenotype data comes in many different shapes and forms. In the following, we will describe some of the most common features of such data:

  • Pre-coordinated
  • Post-coordinated
  • Standardised/non-standardized
  • Quantitative/qualitative

"},{"location":"reference/phenotype-data/#pre-coordinated","title":"Pre-coordinated","text":"

Pre-coordinated phenotype data is popular in the clinical domain, where a lot of observations are taken by a clinician and recorded as \"phenotypic abnormalities\" with the goal of eventual diagnosis.

Phenopackets such as the one below are an emerging standard to capture and sharing disease and phenotype information. Phenotypic features in particular are captured as so called \"pre-coordinated phenotype terms\" such as \"Attenuation of retinal blood vessels\" (HP:0007843). \"Pre-coordinated\" in this context means that the various aspects of the phenotype term, such as the bearer (\"retinal blood vessels\") and the characteristic (\"Attenuation\", or \"thinning/narrowing\"), and the modifier (in the case of HPO terms, simply abnormal), are combined (\"coordinated\") into a single term.

Phenopacket
{\n\"id\": \"PMID:23559858-Ajmal-2013-BBS1-IV-5/family_A\",\n\"subject\": {\n    \"id\": \"IV-5/family A\",\n    \"timeAtLastEncounter\": {\n    \"age\": {\n        \"iso8601duration\": \"P26Y\"\n    }\n    },\n    \"sex\": \"MALE\",\n    \"taxonomy\": {\n    \"id\": \"NCBITaxon:9606\",\n    \"label\": \"Homo sapiens\"\n    }\n},\n\"phenotypicFeatures\": [\n    {\n    \"type\": {\n        \"id\": \"HP:0007843\",\n        \"label\": \"Attenuation of retinal blood vessels\"\n    },\n    \"evidence\": [\n        {\n        \"evidenceCode\": {\n            \"id\": \"ECO:0000033\",\n            \"label\": \"author statement supported by traceable reference\"\n        },\n        \"reference\": {\n            \"id\": \"PMID:23559858\",\n            \"description\": \"A family was reported in which two affected members had a splicing variant in BBS1, c.47+1G>T.\"\n        }\n        }\n    ]\n    },\n    {\n    \"type\": {\n        \"id\": \"HP:0001513\",\n        \"label\": \"Obesity\"\n    },\n    \"evidence\": [\n        {\n        \"evidenceCode\": {\n            \"id\": \"ECO:0000033\",\n            \"label\": \"author statement supported by traceable reference\"\n        },\n        \"reference\": {\n            \"id\": \"PMID:23559858\",\n            \"description\": \"A family was reported in which two affected members had a splicing variant in BBS1, c.47+1G>T.\"\n        }\n        }\n    ]\n    },\n    {\n    \"type\": {\n        \"id\": \"HP:0000608\",\n        \"label\": \"Macular degeneration\"\n    },\n    \"evidence\": [\n        {\n        \"evidenceCode\": {\n            \"id\": \"ECO:0000033\",\n            \"label\": \"author statement supported by traceable reference\"\n        },\n        \"reference\": {\n            \"id\": \"PMID:23559858\",\n            \"description\": \"A family was reported in which two affected members had a splicing variant in BBS1, c.47+1G>T.\"\n        }\n        }\n    ]\n    },\n    {\n    \"type\": {\n        \"id\": \"HP:0000486\",\n        \"label\": \"Strabismus\"\n    },\n    \"evidence\": [\n        {\n        \"evidenceCode\": {\n            \"id\": \"ECO:0000033\",\n            \"label\": \"author statement supported by traceable reference\"\n        },\n        \"reference\": {\n            \"id\": \"PMID:23559858\",\n            \"description\": \"A family was reported in which two affected members had a splicing variant in BBS1, c.47+1G>T.\"\n        }\n        }\n    ]\n    },\n    {\n    \"type\": {\n        \"id\": \"HP:0001328\",\n        \"label\": \"Specific learning disability\"\n    },\n    \"evidence\": [\n        {\n        \"evidenceCode\": {\n            \"id\": \"ECO:0000033\",\n            \"label\": \"author statement supported by traceable reference\"\n        },\n        \"reference\": {\n            \"id\": \"PMID:23559858\",\n            \"description\": \"A family was reported in which two affected members had a splicing variant in BBS1, c.47+1G>T.\"\n        }\n        }\n    ]\n    },\n    {\n    \"type\": {\n        \"id\": \"HP:0000510\",\n        \"label\": \"Rod-cone dystrophy\"\n    },\n    \"evidence\": [\n        {\n        \"evidenceCode\": {\n            \"id\": \"ECO:0000033\",\n            \"label\": \"author statement supported by traceable reference\"\n        },\n        \"reference\": {\n            \"id\": \"PMID:23559858\",\n            \"description\": \"A family was reported in which two affected members had a splicing variant in BBS1, c.47+1G>T.\"\n        }\n        }\n    ]\n    },\n    {\n    \"type\": {\n        \"id\": \"HP:0001263\",\n        \"label\": \"Global developmental delay\"\n    },\n    \"evidence\": [\n        {\n        \"evidenceCode\": {\n            \"id\": \"ECO:0000033\",\n            \"label\": \"author statement supported by traceable reference\"\n        },\n        \"reference\": {\n            \"id\": \"PMID:23559858\",\n            \"description\": \"A family was reported in which two affected members had a splicing variant in BBS1, c.47+1G>T.\"\n        }\n        }\n    ]\n    }\n],\n\"interpretations\": [\n    {\n    \"id\": \"PMID:23559858-Ajmal-2013-BBS1-IV-5/family_A\",\n    \"progressStatus\": \"SOLVED\",\n    \"diagnosis\": {\n        \"disease\": {\n        \"id\": \"OMIM:209900\",\n        \"label\": \"BARDET-BIEDL SYNDROME 1; BBS1\"\n        },\n        \"genomicInterpretations\": [\n        {\n            \"subjectOrBiosampleId\": \"IV-5/family A\",\n            \"interpretationStatus\": \"CAUSATIVE\",\n            \"variantInterpretation\": {\n            \"variationDescriptor\": {\n                \"id\": \"clinvar:1324292\",\n                \"geneContext\": {\n                \"valueId\": \"ENSG00000174483\",\n                \"symbol\": \"BBS1\",\n                \"alternateIds\": [\n                    \"HGNC:966\",\n                    \"entrez:582\",\n                    \"ensembl:ENSG00000174483\",\n                    \"symbol:BBS1\"\n                ]\n                },\n                \"vcfRecord\": {\n                \"genomeAssembly\": \"GRCh37\",\n                \"chrom\": \"11\",\n                \"pos\": \"66278178\",\n                \"ref\": \"G\",\n                \"alt\": \"T\"\n                },\n                \"allelicState\": {\n                \"id\": \"GENO:0000136\",\n                \"label\": \"homozygous\"\n                }\n            }\n            }\n        }\n        ]\n    }\n    }\n],\n\"metaData\": {\n    \"created\": \"1970-01-01T00:00:00Z\",\n    \"submittedBy\": \"HPO:probinson\",\n    \"resources\": [\n    {\n        \"id\": \"hp\",\n        \"name\": \"human phenotype ontology\",\n        \"url\": \"http://purl.obolibrary.org/obo/hp.owl\",\n        \"version\": \"2018-03-08\",\n        \"namespacePrefix\": \"HP\",\n        \"iriPrefix\": \"http://purl.obolibrary.org/obo/HP_\"\n    },\n    {\n        \"id\": \"pato\",\n        \"name\": \"Phenotype And Trait Ontology\",\n        \"url\": \"http://purl.obolibrary.org/obo/pato.owl\",\n        \"version\": \"2018-03-28\",\n        \"namespacePrefix\": \"PATO\",\n        \"iriPrefix\": \"http://purl.obolibrary.org/obo/PATO_\"\n    },\n    {\n        \"id\": \"geno\",\n        \"name\": \"Genotype Ontology\",\n        \"url\": \"http://purl.obolibrary.org/obo/geno.owl\",\n        \"version\": \"19-03-2018\",\n        \"namespacePrefix\": \"GENO\",\n        \"iriPrefix\": \"http://purl.obolibrary.org/obo/GENO_\"\n    },\n    {\n        \"id\": \"ncbitaxon\",\n        \"name\": \"NCBI organismal classification\",\n        \"url\": \"http://purl.obolibrary.org/obo/ncbitaxon.owl\",\n        \"version\": \"2018-03-02\",\n        \"namespacePrefix\": \"NCBITaxon\",\n        \"iriPrefix\": \"http://purl.obolibrary.org/obo/NCBITaxon_\"\n    },\n    {\n        \"id\": \"eco\",\n        \"name\": \"Evidence and Conclusion Ontology\",\n        \"url\": \"http://purl.obolibrary.org/obo/eco.owl\",\n        \"version\": \"2018-11-10\",\n        \"namespacePrefix\": \"ECO\",\n        \"iriPrefix\": \"http://purl.obolibrary.org/obo/ECO_\"\n    },\n    {\n        \"id\": \"omim\",\n        \"name\": \"Online Mendelian Inheritance in Man\",\n        \"url\": \"https://www.omim.org\",\n        \"version\": \"2018-03-08\",\n        \"namespacePrefix\": \"OMIM\",\n        \"iriPrefix\": \"https://omim.org/entry/\"\n    },\n    {\n        \"id\": \"clinvar\",\n        \"name\": \"Clinical Variation\",\n        \"url\": \"https://www.ncbi.nlm.nih.gov/clinvar/\",\n        \"version\": \"2023-04-06\",\n        \"namespacePrefix\": \"clinvar\",\n        \"iriPrefix\": \"https://www.ncbi.nlm.nih.gov/clinvar/variation/\"\n    }\n    ],\n    \"phenopacketSchemaVersion\": \"2.0.0\"\n}\n}\n

Apart from clinical diagnostics, pre-coordinated phenotype terms are used in many other contexts such as model organism research (e.g. IMPC) or the curation of Genome Wide Association Studies.

"},{"location":"reference/phenotype-data/#post-coordinated","title":"Post-coordinated","text":"

Post-coordinated phenotype curation simply means that the different constituents of phenotype (characteristic, bearer, modifier etc) are captured individually. This has certain advantages. For example, the phenotype space is enormous, as you can measure variations in many observable charactertics from chemical entities present in the blood, the microbiome to a host of morphological and developmental abnormalities. Instead of having individual (controlled vocabulary) terms for increased level of X, decreased level X, abnormal level of X, increased level of X in blood for thousands of chemical compounds synthesized by the human body, you just have \"increased level\", \"blood\" and all the chemical compounds.

There are at least three flavours of post-coordinated phenotype curation prevalent in the biomedical domain, four if you count quantified phenotypes:

  • Trait + modifier
  • Bearer only
  • Characteristics + modifier + bearer

Trait + modifier pattern is used for example by databases such as the Saccharomyces Genome Database (SGD). Here are some examples:

dateAssigned evidence/publicationId objectId phenotypeStatement phenotypeTermIdentifiers/0/termId phenotypeTermIdentifiers/1/termId conditionRelations/0/conditions/0/chemicalOntologyId conditionRelations/0/conditions/0/conditionClassId 2010-07-08T00:07:00-00:00 PMID:1406694 SGD:S000003901 abnormal RNA accumulation APO:0000002 APO:0000224 2006-05-05T00:05:00-00:00 PMID:785224 SGD:S000000854 decreased resistance to chemicals APO:0000003 APO:0000087 CHEBI:78661 ZECO:0000111 2010-07-07T00:07:00-00:00 PMID:10545447 SGD:S000000969 decreased cell size APO:0000003 APO:0000052
  • APO:0000002 (abnormal) and APO:0000003 (decreased) are modifiers.
  • APO:0000087 (resistance to chemicals), APO:0000224 (RNA accumulation), APO:0000052 (cell size) are biological attributes/traits.
  • CHEBI:78661 is recorded as an experimental condition, but should probably be interpreted as part of the bearer expression.
  • Note: SGD has different kinds of phenotype data, and it should be carefully evaluated which one it is.

Data was obtained from the Alliance of Genome Resources on the 30.03.2023 and simplified for illustration.

The bearer-only pattern is used by many databases, such as Flybase. In the data, we only find references of bearers, such as anatomical entities or biological processes. Instead of explicitly stating phenotypic modifiers (abnormal, morphology, changed), it is implicit in the definition of the dataset.

dateAssigned evidence/crossReference/id evidence/publicationId objectId phenotypeStatement phenotypeTermIdentifiers/0/termId 2024-01-05T11:54:24-05:00 FB:FBrf0052655 PMID:2385293 FB:FBal0016988 embryonic telson FBbt:00000184 2024-01-05T11:54:24-05:00 FB:FBrf0058077 PMID:8223248 FB:FBal0001571 larva FBbt:00001727
  • FBbt:00000184 (embryonic telson) and FBbt:00001727 (larva) are bearer terms.
  • The modifier is implicit in the data rather than explicitly stated. For example, Flybase states on their website about the Dmel\\torrv66 Allele (FBal0016988) that the \"phenotype manifests in the embryonic telson\".
  • Note: FlyBase has different kinds of phenotype data (including pre-coordinated), and it should be carefully evaluated which one is which prior to integration.

Data was obtained from the Alliance of Genome Resources on the 30.03.2023 and simplified for illustration.

The most complex pattern for phenotype descriptions which essentially decomposes the entire phenotype expression into atomic consituents can be found, for example, in the The Zebrafish Information Network (ZFIN).

Examples:

Fish ID Affected Structure or Process 1 subterm ID Affected Structure or Process 1 subterm Name Post-composed Relationship ID Post-composed Relationship Name Affected Structure or Process 1 superterm ID Affected Structure or Process 1 superterm Name Phenotype Keyword ID Phenotype Keyword Name Phenotype Tag Affected Structure or Process 2 subterm ID Affected Structure or Process 2 subterm name Post-composed Relationship (rel) ID Post-composed Relationship (rel) Name Affected Structure or Process 2 superterm ID Affected Structure or Process 2 superterm name Publication ID ZDB-FISH-150901-29105 ZFA:0009366 hair cell BFO:0000050 part_of ZFA:0000051 otic vesicle PATO:0000374 increased distance abnormal ZFA:0009366 hair cell BFO:0000050 part_of ZFA:0000051 otic vesicle ZDB-PUB-171025-12 ZDB-FISH-150901-29105 ZFA:0009366 hair cell BFO:0000050 part_of ZFA:0000051 otic vesicle PATO:0000374 increased distance abnormal ZFA:0009366 hair cell BFO:0000050 part_of ZFA:0000051 otic vesicle ZDB-PUB-171025-12 ZDB-FISH-150901-11537 ZFA:0000051 otic vesicle PATO:0001905 has normal numbers of parts of type normal ZFA:0009366 hair cell BFO:0000050 part_of ZFA:0000051 otic vesicle ZDB-PUB-150318-1 ZDB-FISH-150901-18770 ZFA:0000119 retinal inner nuclear layer PATO:0002001 has fewer parts of type abnormal ZFA:0009315 horizontal cell BFO:0000050 part_of ZFA:0000119 retinal inner nuclear layer ZDB-PUB-130222-28 ZDB-FISH-190806-7 BSPO:0000084 ventral region BFO:0000050 part_of ZFA:0000101 diencephalon PATO:0002001 has fewer parts of type abnormal ZFA:0009301 dopaminergic neuron BFO:0000050 part_of ZFA:0000101 diencephalon ZDB-PUB-190216-5 ZDB-FISH-190807-7 BSPO:0000084 ventral region BFO:0000050 part_of ZFA:0000101 diencephalon PATO:0001905 has normal numbers of parts of type normal ZFA:0009301 dopaminergic neuron BFO:0000050 part_of ZFA:0000101 diencephalon ZDB-PUB-190216-5 ZDB-FISH-190807-8 BSPO:0000084 ventral region BFO:0000050 part_of ZFA:0000101 diencephalon PATO:0002001 has fewer parts of type abnormal ZFA:0009301 dopaminergic neuron BFO:0000050 part_of ZFA:0000101 diencephalon ZDB-PUB-190216-5 ZDB-FISH-150901-29105 ZFA:0000101 diencephalon PATO:0001555 has number of normal ZFA:0009301 dopaminergic neuron BFO:0000050 part_of ZFA:0000101 diencephalon ZDB-PUB-161120-7 ZDB-FISH-210421-9 ZFA:0009290 glutamatergic neuron BFO:0000050 part_of ZFA:0000008 brain PATO:0040043 increased proportionality to abnormal ZFA:0009276 GABAergic neuron BFO:0000050 part_of ZFA:0000008 brain ZDB-PUB-191011-2 ZDB-FISH-210421-9 ZFA:0009290 glutamatergic neuron BFO:0000050 part_of ZFA:0000008 brain PATO:0040043 increased proportionality to abnormal ZFA:0009276 GABAergic neuron BFO:0000050 part_of ZFA:0000008 brain ZDB-PUB-191011-2

Lets break down the second to last row:

  • ZFA:0009290 (glutamatergic neuron): The primary entity whose characteristic is being observed
  • BFO:0000050 (part of): a relation used to connect the hair cell to the structure its part of
  • ZFA:0000008 (brain): the location of the primary entity being observed
  • PATO:0040043 (increased proportionality to): the modified characteristic being observed.
  • abnormal: the change modifier (note: not an ontology term)
  • ZFA:0009276 (GABAergic neuron): the secondary entity being observed in relation to which the characteristic is measured
  • ZFA:0000008 (brain): the location of the secondary entity
  • The interested reader may look at an integrated version of that huge post-coordinated expression here (brain increased proportionality to glutamatergic neuron GABAergic neuron brain, abnormal - ZP:0141834).

Data was obtained from ZFIN (Phenotype of Zebrafish Genes) on the 30.03.2023 and simplified for illustration.

As one can see in the last example, bearers can be anything from simple atomic entities to arbitrarily complex compositions:

  • \"lysine\" (lysine)
  • \"lysine in the blood\" (lysine part_of blood)
  • \"lysine in heart muscle cells\" (lysine part_of cell part_of (muscle part of heart))
  • \"lysine in the cytoplasm of heart muscle cells\" (lysine part_of (cytoplasm part_of (cell part_of (muscle part of heart))))
  • etc, etc

"},{"location":"reference/phenotype-data/#standardisednon-standardized","title":"Standardised/non-standardized","text":"

Phenotype data can be standardised to varying degrees. It is not uncommon for data to be completely unstandardised. Unfortunately, only a fraction of the available data is actually annotated using terms from controlled phenotype ontologies. Here are some of the more \"typical\" kinds of data on the standardised/non-standardised spectrum:

  1. Free text in clinical notes and scientific publications
  2. Free text in specific database fields (for example a \"height\" column in a table about measurements of Giraffes)
  3. Controlled but non-standardised vocabulary like enums in a datamodel (for example the keyword \"abnormal\" in the ZFIN example above)
  4. Controlled standardised vocabulary (like all the examples on this page)
  5. Ontology terms (controlled vocabulary terms with well defined semantics - all the examples on this page)

"},{"location":"reference/phenotype-data/#quantitativequalitative","title":"Quantitative/qualitative","text":"

Qualitative and quantitative phenotype data represent two fundamental ways of describing characteristics or traits in biology, each providing different types of information:

Qualitative Phenotype Data:

  • Nature: This type of data describes qualities or characteristics that are observed but not measured with numbers. It often involves categorical or descriptive information.
  • Examples: The presence or absence of a specific physical trait (like eye color or wing shape in animals) or types of behavior (aggressive vs. passive).
  • Analysis: Qualitative data is analyzed by categorization and identification of patterns or variations. It is more about the 'type' or 'kind' of trait rather than its 'amount'.
  • Interpretation: Since it's descriptive, this data relies on subjective interpretation and classification.

Quantitative Phenotype Data:

  • Nature: This data is numerical and quantifies traits. It involves measurements of characteristics, often allowing for more precise and objective analysis.
  • Examples: Height, weight, blood pressure, cholesterol levels, or the number of fruit produced by a plant. Quantitative traits can often be measured on a continuous scale, for example height of 35 cm, weight of 67 KG or blood pressure of 120/80.
  • Analysis: It involves statistical analysis, such as calculating mean, median, standard deviation, and applying various statistical tests. It allows for a more objective and replicable assessment.
  • Interpretation: Quantitative data provides a more concrete and measurable understanding of traits, making comparisons and statistical testing more straightforward.

Qualitative data is descriptive and categorical, while quantitative data is numerical and measurable. Both types are essential for a comprehensive understanding of phenotypic traits, each offering unique insights into biological variation and complexity.

"},{"location":"reference/phenotype-ontology-alignment/","title":"Aliging species specific phenotype ontologies","text":"

Phenotype ontologies use different reference ontologies for their EQs. Everything in uPheno is integrated towards a common set of reference ontologies, in particular Uberon and CL. In order to integrate species-independent anatomy ontologies we employ the following workflow for phenotype ontologies:

  1. Create a base-plus module from the ontology
  2. Rename all Uberon-aligned entities using ROBOT rename. This replaces basically species specific anatomy references with Uberon anatomy references
  3. Delete all species specific references from uPheno (FBBT, XAO, ZFA, etc). This also deletes all EQs which have non-Uberon references.
  4. For all remaining species-specific anatomy terms, we retain only the link to the nearest Uberon term.
"},{"location":"reference/phenotype-ontology-alignment/#rules-for-phenotype-ontologies-to-be-integrated","title":"Rules for phenotype ontologies to be integrated","text":"
  1. Every phenotype ontology must export a base module at the proper PURL location
  2. Every phenotype ontology must export a upheno export module at the proper PURL location

When two classes are merged in uPheno based on a cross-species mapping, we assert the most general common ancestor as parent.

"},{"location":"reference/qc/","title":"uPheno Quality Control","text":""},{"location":"reference/use-cases/","title":"Use Cases","text":""},{"location":"reference/use-cases/#use-cases","title":"Use Cases","text":"
  • Computational identification of disease models through cross-species phenotype comparison
  • Use cases for uPheno in the Alliance of Genome Resources and MGI
  • Cross-species inference in Variant and Gene Prioritisation algorithms (Exomiser).
  • Cross-species comparison of phenotypic profiles (Monarch Initiative Knowledge Graph)
  • Cross-species data in biomedical knowledge graphs (Kids First)

  • Association prediction

  • Phenotypic profile matching
  • Data aggregation
"},{"location":"reference/components/dpo/","title":"Drosophila Phenotype Ontology","text":"
  1. summary Drosophila Phenotype Ontology

*The Drosophila phenotype ontologyOsumi-Sutherland\u00a0et\u00a0al,\u00a0J\u00a0Biomed\u00a0Sem.

The DPO is formally a subset of FBcv, made available from http://purl.obolibrary.org/obo/fbcv/dpo.owl

Phenotypes in FlyBase may either by assigned to FBcv (dpo) classes, or they may have a phenotype_manifest_in to FBbt (anatomy).

For integration we generate the following ontologies:

*http://purl.obolibrary.org/obo/upheno/imports/fbbt_phenotype.owl\\ *http://purl.obolibrary.org/obo/upheno/imports/uberon_phenotype.owl\\ *http://purl.obolibrary.org/obo/upheno/imports/go_phenotype.owl\\ *http://purl.obolibrary.org/obo/upheno/imports/cl_phenotype.owl

(see Makefile)

This includes a phenotype class for every anatomy class - the IRI is suffixed with \"PHENOTYPE\". Using these ontologies, Uberon and CL phenotypes make the groupings.

We include

*http://purl.obolibrary.org/obo/upheno/dpo/dpo-importer.owl

Which imports dpo plus auto-generated fbbt phenotypes.

The dpo-importer is included in the [MetazoanImporter]

"},{"location":"reference/components/dpo/#additional-notes","title":"Additional Notes","text":"

We create a local copy of fbbt that has \"Drosophila \" prefixed to all labels. This gives us a hierarchy:

*\u00a0eye\u00a0phenotype\u00a0(defined\u00a0using\u00a0Uberon)\\ *\u00a0compound\u00a0eye\u00a0phenotype\u00a0\u00a0(defined\u00a0using\u00a0Uberon)\\ *\u00a0drosophila\u00a0eye\u00a0phenotype\u00a0(defined\u00a0using\u00a0FBbt)

"},{"location":"reference/components/dpo/#todo","title":"TODO","text":"

*http://code.google.com/p/cell-ontology/issues/detail?id=115ensure\u00a0all\u00a0CL\u00a0to\u00a0FBbt\u00a0equiv\u00a0axioms\u00a0are\u00a0present\u00a0(we\u00a0have\u00a0good\u00a0coverage\u00a0for\u00a0Uberon)

"},{"location":"reference/components/fypo/","title":"Fission Yeast Phenotype Ontology","text":"
  1. summary Fission Yeast Phenotype Ontology

*\u00a0project\u00a0page\u00a0-https://sourceforge.net/apps/trac/pombase/wiki/FissionYeastPhenotypeOntology\\ *FYPO:\u00a0the\u00a0fission\u00a0yeast\u00a0phenotype\u00a0ontologyHarris\u00a0et\u00a0al,\u00a0Bioinformatics

Note that the OWL axioms for FYPO are managed directly in the FYPO project repo, we do not duplicate them here

"},{"location":"reference/components/hp/","title":"Human Phenotype Ontology","text":"
  1. summary Human Phenotype Ontology
  2. labels Featured
"},{"location":"reference/components/hp/#links","title":"Links","text":"

*http://www.human-phenotype-ontology.org/\\ *\u00a0K\u00f6hler\u00a0S,\u00a0Doelken\u00a0SC,\u00a0Mungall\u00a0CJ,\u00a0Bauer\u00a0S,\u00a0Firth\u00a0HV,\u00a0Bailleul-Forestier\u00a0I,\u00a0Black\u00a0GC,\u00a0Brown\u00a0DL,\u00a0Brudno\u00a0M,\u00a0Campbell\u00a0J,\u00a0FitzPatrick\u00a0DR,\u00a0Eppig\u00a0JT,\u00a0Jackson\u00a0AP,\u00a0Freson\u00a0K,\u00a0Girdea\u00a0M,\u00a0Helbig\u00a0I,\u00a0Hurst\u00a0JA,\u00a0J\u00e4hn\u00a0J,\u00a0Jackson\u00a0LG,\u00a0Kelly\u00a0AM,\u00a0Ledbetter\u00a0DH,\u00a0Mansour\u00a0S,\u00a0Martin\u00a0CL,\u00a0Moss\u00a0C,\u00a0Mumford\u00a0A,\u00a0Ouwehand\u00a0WH,\u00a0Park\u00a0SM,\u00a0Riggs\u00a0ER,\u00a0Scott\u00a0RH,\u00a0Sisodiya\u00a0S,\u00a0Van\u00a0Vooren\u00a0S,\u00a0Wapner\u00a0RJ,\u00a0Wilkie\u00a0AO,\u00a0Wright\u00a0CF,\u00a0Vulto-van\u00a0Silfhout\u00a0AT,\u00a0de\u00a0Leeuw\u00a0N,\u00a0de\u00a0Vries\u00a0BB,\u00a0Washingthon\u00a0NL,\u00a0Smith\u00a0CL,\u00a0Westerfield\u00a0M,\u00a0Schofield\u00a0P,\u00a0Ruef\u00a0BJ,\u00a0Gkoutos\u00a0GV,\u00a0Haendel\u00a0M,\u00a0Smedley\u00a0D,\u00a0Lewis\u00a0SE,\u00a0Robinson\u00a0PN.\u00a0The\u00a0Human\u00a0Phenotype\u00a0Ontology\u00a0project:\u00a0linking\u00a0molecular\u00a0biology\u00a0and\u00a0disease\u00a0through\u00a0phenotype\u00a0data.Nucleic\u00a0Acids\u00a0Res.2014\u00a0Jan;42(Database\u00a0issue):D966-74\u00a0[pubmed]

*HPO browser\\ *HP in OntoBee\\ *HP in OLSVis

"},{"location":"reference/components/hp/#owl-axiomatization","title":"OWL Axiomatization","text":"

The OWL axioms for HP are in the src/ontology/hp directory on this site.

The structure is analagous to that of the [MP].

"},{"location":"reference/components/hp/#status","title":"Status","text":"

The OWL axiomatization is updated frequently to stay in sync with changes in the MP

"},{"location":"reference/components/hp/#editing-the-axioms","title":"Editing the axioms","text":"

The edit file is currently:

*http://purl.obolibrary.org/obo/hp/hp-equivalence-axioms-subq-ubr.owl

Edit this in protege.

"},{"location":"reference/components/mp/","title":"Mammalian Phenotype Ontology","text":"
  1. summary Mouse Phenotype Ontology
  2. labels Featured
"},{"location":"reference/components/mp/#links","title":"Links","text":"

*The Mammalian Phenotype Ontology: enabling robust annotation and comparative analysisSmith\u00a0CL,\u00a0Eppig\u00a0JT\\ *MP browser at MGI\\ *MP in OntoBee\\ *MP in OLSVis

"},{"location":"reference/components/mp/#owl-axiomatization","title":"OWL Axiomatization","text":"

The OWL axioms for MP are in the src/ontology/mp directory on this site.

*http://purl.obolibrary.org/obo/mp.owl-\u00a0direct\u00a0conversion\u00a0of\u00a0MGI-supplied\u00a0obo\u00a0file\\ *http://purl.obolibrary.org/obo/mp/mp-importer.owl-\u00a0imports\u00a0additional\u00a0axioms,\u00a0including\u00a0the\u00a0following\u00a0ones\u00a0below:\\ *http://purl.obolibrary.org/obo/mp.owl\\ *http://purl.obolibrary.org/obo/upheno/imports/chebi_import.owl\\ *http://purl.obolibrary.org/obo/upheno/imports/uberon_import.owl\\ *http://purl.obolibrary.org/obo/upheno/imports/pato_import.owl\\ *http://purl.obolibrary.org/obo/upheno/imports/go_import.owl\\ *http://purl.obolibrary.org/obo/upheno/imports/mpath_import.owl\\ *http://purl.obolibrary.org/obo/mp/mp-equivalence-axioms-subq-ubr.owl\\ \\

"},{"location":"reference/components/mp/#status","title":"Status","text":"

The OWL axiomatization is updated frequently to stay in sync with changes in the MP

"},{"location":"reference/components/mp/#editing-the-axioms","title":"Editing the axioms","text":"

The edit file is currently:

*http://purl.obolibrary.org/obo/mp/mp-equivalence-axioms-edit.owl

Edit this in protege.

The file mp-equivalence-axioms.obo is DEPRECATED!

"},{"location":"reference/components/mp/#termgenie","title":"TermGenie","text":"

*http://mp.termgenie.org/\\ *http://mp.termgenie.org/TermGenieFreeForm

"},{"location":"reference/components/wbphenotype/","title":"C. elegans Phenotype Ontology","text":"
  1. summary Worm Phenotype Ontology
  2. labels Featured
"},{"location":"reference/components/wbphenotype/#links","title":"Links","text":"

*\u00a0Schindelman,\u00a0Gary,\u00a0et\u00a0al.Worm Phenotype Ontology: integrating phenotype data within and beyond the C. elegans community.BMC\u00a0bioinformatics\u00a012.1\u00a0(2011):\u00a032.\\ *WBPhenotype in OntoBee\\ *WBPhenotype in OLSVis

"},{"location":"reference/components/wbphenotype/#owl-axiomatization","title":"OWL Axiomatization","text":"

The OWL axioms for WBPhenotype are in the src/ontology/wbphenotype directory on this site.

*http://purl.obolibrary.org/obo/wbphenotype.owl-\u00a0direct\u00a0conversion\u00a0of\u00a0WormBase-supplied\u00a0obo\u00a0file\\ *http://purl.obolibrary.org/obo/wbphenotype/wbphenotype-importer.owl-\u00a0imports\u00a0additional\u00a0axioms.

The structure roughly follows that of the [MP]. The worm anatomy is used.

"},{"location":"reference/components/wbphenotype/#editing-the-axioms","title":"Editing the axioms","text":"

Currently the source is wbphenotype/wbphenotype-equivalence-axioms.obo, the OWL is generated from here. We are considering switching this around, so the OWL is edited, using Protege.

"},{"location":"reference/components/zp/","title":"Introduction","text":"

This page describes the generation of the zebrafish phenotype ontology

"},{"location":"reference/components/zp/#details","title":"Details","text":"

The ZP differs considerably from [HP], [MP] and others. ZFIN do not annotate with a pre-composed phenotype ontology - all annotations compose phenotypes on-the-fly using a combination of PATO, ZFA, GO and other ontologies.

We use these combinations to construct ZP on the fly, by naming each distinct combination, assigning it an ID, and placing it in the hierarchy.

The process is described here:

  • Sebastian K\u00f6hler, Sandra C Doelken, Barbara J Ruef, Sebastian Bauer, Nicole Washington, Monte Westerfield, George Gkoutos, Paul Schofield, Damian Smedley, Suzanna E Lewis, Peter N Robinson, Christopher J Mungall (2013) Construction and accessibility of a cross-species phenotype ontology along with gene annotations for biomedical research F1000Research

The OWL formalism for ZFIN annotations is described here:

  • [https://docs.google.com/document/d/1Vbokc9aFHR4awNE6DrrLtgpE6axeTS4VEfxqDHsWyPQ/edit# Mapping ZFIN phenotypes to OWL]

The java implementation is here:

  • https://github.com/sba1/bio-ontology-zp
"},{"location":"reference/components/zp/#owl-axiomatization","title":"OWL Axiomatization","text":"

The OWL axioms for ZP are in zp.owl that is build on our hudson server.

"},{"location":"reference/imports/pato/","title":"PATO","text":"
  1. summary PATO
"},{"location":"reference/imports/pato/#introduction","title":"Introduction","text":"

PATO is an ontology of phenotypic qualities. We use PATO to compose phenotypic descriptions. See [OWLAxiomatization]

"},{"location":"reference/imports/pato/#details","title":"Details","text":"

See https://code.google.com/p/pato/

"},{"location":"reference/modelling/abnormal/","title":"Abnormal phenotypes","text":"
  1. summary How inference of abnormality works
"},{"location":"reference/modelling/abnormal/#introduction","title":"Introduction","text":"

The current design patterns are such that the abnormal qualifier is only added when the quality class in the definition is neutral.

However, we still need to be able to infer

*\u00a0Hyoplasia\u00a0of\u00a0right\u00a0ventricle\u00a0SubClassOf\u00a0Abnormality\u00a0of\u00a0right\u00a0ventricle

Because the latter class definition includes qualifier some abnormal, the SubClassOf axiom will not be entailed unless the qualifier is explicitly stated or inferred

"},{"location":"reference/modelling/abnormal/#details","title":"Details","text":"

We achieve this by including an axiom to PATO such that decreased sizes etc are inferred to be qualifier some abnormal.

We do this with an exiom in imports/extra.owl

*\u00a0'deviation(from\u00a0normal)'\u00a0SubClassOf\u00a0qualifier\u00a0some\u00a0abnormal

Anything under 'increased', 'decreased' etc in PATO is pre-reasoned in PATO to be here.

See the following explanation:

http://phenotype-ontologies.googlecode.com/svn/trunk/doc/images/has-qualifier-inference.png

"},{"location":"reference/modelling/abnormal/#limitations","title":"Limitations","text":"

For this strategy to work it requires the PATO classes themselves to be classified under deviation from normal. This may not always be the case

"},{"location":"reference/modelling/abnormal/#notes","title":"Notes","text":"

Do not be distracted by the fact the has-qualifier relation is named has-component at the moment

https://code.google.com/p/phenotype-ontologies/issues/detail?id=45

"},{"location":"reference/modelling/abnormal/#notes_1","title":"Notes","text":""},{"location":"reference/modelling/absence/","title":"Absence modelling","text":"
  1. summary Discussion of issues pertaining to modeling of absence in phenotype ontologies
"},{"location":"reference/modelling/absence/#introduction","title":"Introduction","text":"

Much has been written on the subject of representing absence. Before diving into the logical issues it is worth examining patterns in existing phenotype ontologies to understand what user expectations may typically be for absence.

"},{"location":"reference/modelling/absence/#background","title":"Background","text":"

*Absence_Phenotypes_in_OWL(Phenoscape\u00a0Wiki)\\ *\u00a0(outdated)\u00a0material\u00a0on\u00a0the\u00a0oldPATO wiki.

"},{"location":"reference/modelling/absence/#details","title":"Details","text":""},{"location":"reference/modelling/absence/#strict-logical-absence-vs-absence-of-some","title":"Strict logical absence vs absence of some","text":"

It is not uncommon to see patterns such as

From a strict logical perspective, this is inverted. \"absent incisors\" surely means \"absence of all incisors\", or put another way \"the animal has no incisors\". Yet it would be possible to have an animal with *absent* lower incisors and *present* upper incisors, yielding what seems a contradiction (because the subClass axiom would say this partial-incisor animal lacked all incisors).

If the ontology were in fact truly modeling \"absence of *all* S\" then it would lead to a curious ontology structure, with the typical tree structure of the anatomy ontology representing S inverted into a polyhierarchical fan in the absent-S ontology.

From this it can be cautiously inferred that the intent of the phenotype ontology curator and user is in fact to model \"absence of *some* S\" rather than \"absence of *all* S\". This is not necessarily a universal rule, and the intent may vary depending on whether we are talking about a serially repeated structure or one that typically occurs in isolation. The intent may also be to communicate that a *significant number* of S is missing.

"},{"location":"reference/modelling/absence/#absence-as-a-type-of-morphology","title":"Absence as a type of morphology","text":"

It is also not uncommon to see patterns such as:

Again, from a strict logical perspective this is false. If the spleen is absent then what does the \"morphology\" of the parent refer to?

However, this inference is clearly a desirable one from the point of view of the phenotype ontology editors and users, as it is common in ontologies for a variety of structures. For example:

And:

These patterns can be formally defended on developmental biology grounds. \"absence\" here is _not_ equivalent to logical absence. It refers specifically to developmental absence.

Furthermore, strict logical absence leads to undesirable inferences. It would be odd to include a nematode worm as having the phenotype \"spleen absent\", because worms have not evolved spleens. But the logical description of not having a spleen as part fets a worm.

Similarly, if the strict cardinality interpretation were intended, we would expect to see:

i.e. if you're missing your entire hindlegs, you're *necessarily* missing your femurs. But it must be emphatisized that this is *not* how phenotype ontologies are classified. This goes for a wide range of structures and other relationship types. In MP, \"absent limb buds\" are *not* classified under \"absent limbs\", even though it is impossible for a mammal to have limbs without having had limb buds.

"},{"location":"reference/modelling/absence/#absence-as-part-of-a-size-morphology-spectrum","title":"Absence as part of a size-morphology spectrum","text":"

The existing treatment of absence can be formally defended morphologically by conceiving of a morphological value space, with \"large\" at one end and \"small\" at the other. As we get continuously smaller, there may come an arbitrary point whereby we say \"surely this is no longer a limb\" (and of course, we are not talking about a pure geometrical size transformation here - as a limb reaches extreme edges of a size range various other morphological changes necessarily happen). But this cutoff is arguably arbitrary, and the resulting discontinuity causes problems. It is simpler to treat absence as being one end of a size scale.

"},{"location":"reference/modelling/absence/#summary","title":"Summary","text":"

This is barely touching the subject, and is intended to illustrate that things may be more subtle than naively treating words like \"absent\" as precisely equivalent to cardinality=0. An understanding of the medical, developmental and evolutionary contexts are absolutely required, together with an understanding of the entailments of different logical formulations.

Even though existing phenotype ontologies may not be conceived of formally, it is implicit than they do not model absence as being equivalent to cardinality=0 / not(has_part), because the structure of these ontologies would look radically different.

"},{"location":"reference/modelling/absence/#todo","title":"TODO","text":"

Link to Jim Balhoff's PhenoDay paper and discussion

Here's the link: http://phenoday2014.bio-lark.org/pdf/11.pdf

"},{"location":"reference/qc/odk_checks/","title":"ODK: Basic Quality Control","text":""},{"location":"tutorials/analysis/","title":"Using uPheno in Data Analysis","text":""},{"location":"tutorials/analysis/#using-oba-and-upheno-for-data-analysis","title":"Using OBA and uPheno for data analysis","text":"

Authors:

  • James McLaughlin
  • Nicolas Matentzoglu

Last update: 27.03.2024.

"},{"location":"tutorials/analysis/#training","title":"Training","text":"
  • Familiarise yourself with the core concepts
  • Familiarise the basics of phenotype data
  • Familiarise yourself with the basics of phenotype integration
  • Familiarise yourself with the use cases
"},{"location":"tutorials/curation/","title":"Using uPheno in Curation","text":""},{"location":"tutorials/curation/#using-oba-and-upheno-in-data-curation","title":"Using OBA and uPheno in data curation","text":"

Authors:

  • James McLaughlin
  • Nicolas Matentzoglu

Last update: 27.03.2024.

"},{"location":"tutorials/curation/#training","title":"Training","text":"
  • Familiarise yourself with the core concepts
  • Familiarise the basics of phenotype data
"}]} \ No newline at end of file diff --git a/sitemap.xml b/sitemap.xml new file mode 100644 index 00000000..003d72f0 --- /dev/null +++ b/sitemap.xml @@ -0,0 +1,253 @@ + + + + https://obophenotype.github.io/upheno/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/about/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/cite/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/contributing/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/howto/add-relation-extension/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/howto/custom-upheno-makefile/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/howto/editors_workflow/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/howto/pattern-merge-replace-workflow/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/howto/run-upheno2-release/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/howto/set-up-s3/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/odk-workflows/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/odk-workflows/ContinuousIntegration/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/odk-workflows/EditorsWorkflow/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/odk-workflows/ManageAutomatedTest/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/odk-workflows/ManageDocumentation/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/odk-workflows/ReleaseWorkflow/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/odk-workflows/RepoManagement/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/odk-workflows/RepositoryFileStructure/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/odk-workflows/SettingUpDockerForODK/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/odk-workflows/UpdateImports/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/odk-workflows/components/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/organization/meetings/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/organization/outreach/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/components/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/core-concepts/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/data-integration/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/eq/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/imports/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/mappings/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/patterns/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/phenotype-data/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/phenotype-ontology-alignment/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/qc/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/reconciliation-effort/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/use-cases/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/components/dpo/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/components/fypo/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/components/hp/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/components/mp/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/components/wbphenotype/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/components/zp/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/imports/go/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/imports/pato/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/imports/uberon/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/mappings/mp_hp/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/modelling/abnormal/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/modelling/absence/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/reference/qc/odk_checks/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/tutorials/analysis/ + 2024-03-30 + daily + + + https://obophenotype.github.io/upheno/tutorials/curation/ + 2024-03-30 + daily + + \ No newline at end of file diff --git a/sitemap.xml.gz b/sitemap.xml.gz new file mode 100644 index 00000000..4a0f05e1 Binary files /dev/null and b/sitemap.xml.gz differ diff --git a/tutorials/analysis/index.html b/tutorials/analysis/index.html new file mode 100644 index 00000000..6c8e5740 --- /dev/null +++ b/tutorials/analysis/index.html @@ -0,0 +1,1664 @@ + + + + + + + + + + + + + + + + + + + + + + + + Using uPheno in Data Analysis - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+ +
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file diff --git a/tutorials/curation/index.html b/tutorials/curation/index.html new file mode 100644 index 00000000..3ac5a54c --- /dev/null +++ b/tutorials/curation/index.html @@ -0,0 +1,1662 @@ + + + + + + + + + + + + + + + + + + + + + + + + Using uPheno in Curation - Unified Phenotype Ontology + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + +
+ + +
+ +
+ + + + + + + + + +
+
+ + + +
+
+
+ + + + + + + + +
+
+
+ + + + +
+ +
+ + + + +
+ + + +
+ + + +
+
+
+
+ + + + + + + + + + + \ No newline at end of file