History of diseasome
The changes to the source code of this entry in the repository, newest first, each with the differences it made to the entry's files. They are also listed on GitLab.
[entries] Add the date when each entry was added, and remove icon_hash beff7c9
The dates are those of the commits that first added the entries' files (2020-08-11 for the entries of the initial commit); renamed entries keep the date of their first name. Changed: none
diff --git a/entries/diseasome/__init__.py b/entries/diseasome/__init__.py
index 72a1e3c..cfd12e4 100644
--- a/entries/diseasome/__init__.py
+++ b/entries/diseasome/__init__.py
@@ -35,7 +35,7 @@ The nodes have the following properties:
tags = ['Biological', 'Unweighted', 'Metadata']
url = 'https://github.com/gephi/gephi/wiki/Datasets'
citation = [('K.-I. Goh, M. E. Cusick, D. Valle, B. Childs, M. Vidal, A.-L. Barabási, "The human disease network." Proceedings of the National Academy of Sciences 104(21), 8685-8690 (2007)', 'https://doi.org/10.1073/pnas.0701361104')]
-icon_hash = '58869828a411221d0e7c6786'
+date_added = '2026-10-25'
upstream_license = None
# The file is no longer available from gephi.org; it is obtained from the
# Internet Archive.
[entries] Prefix the properties in the descriptions with (Node), (Edge) or (Graph) bc3dbbd
The lists of properties at the end of the descriptions marked edge properties with "Edge" but left node properties unmarked, or grouped them in "Nodes: `a`, ...; `b`, ..." items, so the kind of a property was often unclear. Every item now starts with (Node), (Edge) or (Graph), followed by the property names, a colon and the explanation, one item per property or group of properties; qualifications (kinds of nodes, networks) follow the names in parentheses. Properties that were only named got a short explanation, and a few items that named the wrong kind of property were corrected.
diff --git a/entries/diseasome/__init__.py b/entries/diseasome/__init__.py
index 6bf1ec4..72a1e3c 100644
--- a/entries/diseasome/__init__.py
+++ b/entries/diseasome/__init__.py
@@ -27,9 +27,9 @@ The source file also contains the edges of this projection (two disorders connec
The nodes have the following properties:
-- `name`: the name of the disorder (e.g. "Alzheimer disease"), or the symbol of the gene.
-- `is_disorder`: whether the node is a disorder (otherwise it is a gene).
-- `disorder_class`: the class of the disorder (e.g. "Cancer", "Neurological", "Multiple"), as given in the source (with its spelling, e.g. "Ophthamological"); empty for genes.[^icon]
+- (Node) `name`: the name of the disorder (e.g. "Alzheimer disease"), or the symbol of the gene.
+- (Node) `is_disorder`: whether the node is a disorder (otherwise it is a gene).
+- (Node) `disorder_class`: the class of the disorder (e.g. "Cancer", "Neurological", "Multiple"), as given in the source (with its spelling, e.g. "Ophthamological"); empty for genes.[^icon]
[^icon]: Description obtained in part from the [ICON](https://icon.colorado.edu) project."""
tags = ['Biological', 'Unweighted', 'Metadata']
[entries] Remove unneeded code from the entries 2c69f19
Unneeded "global files" statements, unused imports and variables, f-strings without placeholders, duplicate keys in foodweb_little_rock (keeping the order and the values used), and the second definition of get_lines() in twitter_higgs. Nothing changes in the networks or descriptions. Changed: none
diff --git a/entries/diseasome/__init__.py b/entries/diseasome/__init__.py
index d1c0bae..6bf1ec4 100644
--- a/entries/diseasome/__init__.py
+++ b/entries/diseasome/__init__.py
@@ -50,7 +50,6 @@ def fetch_upstream(force=False):
@coerce_props()
@annotate()
def parse(alts=None):
- global files
name = __name__.split(".")[-1]
ns = "{http://www.gephi.org/gexf}"
for fname, alt, fmt in files:
[entries] New entry: diseasome 5781bce
diff --git a/entries/diseasome/__init__.py b/entries/diseasome/__init__.py
new file mode 100644
index 0000000..d1c0bae
--- /dev/null
+++ b/entries/diseasome/__init__.py
@@ -0,0 +1,84 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2020-2026 Tiago de Paula Peixoto <tiago@skewed.de>
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option) any
+# later version.
+#
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Affero General Public License along
+# with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+from .. import *
+import xml.etree.ElementTree as ET
+
+title = "Human disease network (diseasome, 2005)"
+description = """Bipartite network of human genetic disorders and disease genes, from the "diseasome" of K.-I. Goh and collaborators, as distributed by the Gephi project. Nodes are disorders and genes, and an undirected edge connects a disorder to a gene whose mutations are associated with it. The disorder-gene associations were obtained from the Morbid Map of the Online Mendelian Inheritance in Man (OMIM) database (December 2005 version), in which the authors merged the subtypes of the same disorder into a single disorder and manually assigned each disorder to one of 22 classes according to the physiological system affected. This version contains the 516 disorders of the giant component of the human disease network (the projection in which two disorders are connected if they share a gene), and 903 disease genes connected to them.
+
+The source file also contains the edges of this projection (two disorders connected if they share at least one gene, each listed twice); they are not included here, since they can be obtained from the bipartite network.
+
+The nodes have the following properties:
+
+- `name`: the name of the disorder (e.g. "Alzheimer disease"), or the symbol of the gene.
+- `is_disorder`: whether the node is a disorder (otherwise it is a gene).
+- `disorder_class`: the class of the disorder (e.g. "Cancer", "Neurological", "Multiple"), as given in the source (with its spelling, e.g. "Ophthamological"); empty for genes.[^icon]
+
+[^icon]: Description obtained in part from the [ICON](https://icon.colorado.edu) project."""
+tags = ['Biological', 'Unweighted', 'Metadata']
+url = 'https://github.com/gephi/gephi/wiki/Datasets'
+citation = [('K.-I. Goh, M. E. Cusick, D. Valle, B. Childs, M. Vidal, A.-L. Barabási, "The human disease network." Proceedings of the National Academy of Sciences 104(21), 8685-8690 (2007)', 'https://doi.org/10.1073/pnas.0701361104')]
+icon_hash = '58869828a411221d0e7c6786'
+upstream_license = None
+# The file is no longer available from gephi.org; it is obtained from the
+# Internet Archive.
+upstream_prefix = 'https://web.archive.org/web/20210605111955id_/https://gephi.org/datasets'
+files = [('diseasome.gexf.zip:diseasome.gexf', None, None)]
+
+def fetch_upstream(force=False):
+ return retry_download(fetch_upstream_files, __name__.split(".")[-1],
+ upstream_prefix, files, force)
+
+@cache_network()
+@coerce_props()
+@annotate()
+def parse(alts=None):
+ global files
+ name = __name__.split(".")[-1]
+ ns = "{http://www.gephi.org/gexf}"
+ for fname, alt, fmt in files:
+ if alts is not None and alt not in alts:
+ continue
+ with open_upstream_file(name, fname, "rb") as f:
+ root = ET.parse(f).getroot()
+ idx = {}
+ names = []
+ kinds = []
+ classes = []
+ for n in root.iter(ns + "node"):
+ att = {a.get("id"): a.get("value") for a in n.iter(ns + "attvalue")}
+ idx[n.get("id")] = len(names)
+ names.append(n.get("label"))
+ kinds.append(att.get("0"))
+ classes.append(att.get("1", "") if att.get("0") == "disease" else "")
+ edges = []
+ for e in root.iter(ns + "edge"):
+ s, t = idx[e.get("source")], idx[e.get("target")]
+ if kinds[s] == kinds[t]:
+ # edge of the disorder projection
+ continue
+ edges.append((s, t))
+ g = Graph(directed=False)
+ g.add_vertex(len(names))
+ g.vp.name = g.new_vp("string", vals=names)
+ g.vp.is_disorder = g.new_vp("bool", vals=[k == "disease" for k in kinds])
+ g.vp.disorder_class = g.new_vp("string", vals=classes)
+ g.add_edge_list(edges)
+ yield alt, g