logo Netzschleuder network catalog, repository, and centrifuge

History of myocardial_inflamome

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 by Tiago de Paula Peixoto 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/myocardial_inflamome/__init__.py b/entries/myocardial_inflamome/__init__.py
index d0184f5..6457a42 100644
--- a/entries/myocardial_inflamome/__init__.py
+++ b/entries/myocardial_inflamome/__init__.py
@@ -32,7 +32,7 @@ The nodes have the following properties:
 tags = ['Biological', 'Protein interactions', 'Unweighted', 'Metadata']
 url = 'https://doi.org/10.1186/1755-8794-4-59'
 citation = [('F. J. Azuaje, S. Rodius, L. Zhang, Y. Devaux, D. R. Wagner, "Information encoded in a network of inflammation proteins predicts clinical outcome after myocardial infarction." BMC Medical Genomics 4, 59 (2011)', 'https://doi.org/10.1186/1755-8794-4-59')]
-icon_hash = '5de6c40a4bbf13da17dcb57c'
+date_added = '2026-10-25'
 upstream_license = ("Creative Commons Attribution 2.0 Generic (CC BY 2.0)",
                     "https://creativecommons.org/licenses/by/2.0/")
 # Europe PMC serves the supplementary material of the article as a zip file
[entries] Prefix the properties in the descriptions with (Node), (Edge) or (Graph) by Tiago de Paula Peixoto 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/myocardial_inflamome/__init__.py b/entries/myocardial_inflamome/__init__.py
index 86ec60b..d0184f5 100644
--- a/entries/myocardial_inflamome/__init__.py
+++ b/entries/myocardial_inflamome/__init__.py
@@ -24,9 +24,9 @@ description = """Network of human protein-protein interactions (PPIs) related to
 
 The nodes have the following properties:
 
-- `name`: the protein (gene symbol, or a database identifier when no symbol was assigned).
-- `is_seed`: whether the protein is one of the seeds; `is_biomarker`: whether it is one of the known biomarkers (seeds not in the largest component are not included).
-- `module`: the module of the protein (1 to 21), found by the authors with a greedy modularity-maximization clustering (PolarMapper); `submodule`: its submodule, numbered across all modules; `traffic`: the "traffic" (betweenness centrality) of the protein, as computed by the authors. These are -1 (or NaN) for the proteins not listed in the module tables.[^icon]
+- (Node) `name`: the protein (gene symbol, or a database identifier when no symbol was assigned).
+- (Node) `is_seed`: whether the protein is one of the seeds; `is_biomarker`: whether it is one of the known biomarkers (seeds not in the largest component are not included).
+- (Node) `module`: the module of the protein (1 to 21), found by the authors with a greedy modularity-maximization clustering (PolarMapper); `submodule`: its submodule, numbered across all modules; `traffic`: the "traffic" (betweenness centrality) of the protein, as computed by the authors. These are -1 (or NaN) for the proteins not listed in the module tables.[^icon]
 
 [^icon]: Description obtained in part from the [ICON](https://icon.colorado.edu) project."""
 tags = ['Biological', 'Protein interactions', 'Unweighted', 'Metadata']
[entries] Remove unneeded code from the entries by Tiago de Paula Peixoto 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/myocardial_inflamome/__init__.py b/entries/myocardial_inflamome/__init__.py
index 7a987cd..86ec60b 100644
--- a/entries/myocardial_inflamome/__init__.py
+++ b/entries/myocardial_inflamome/__init__.py
@@ -48,7 +48,6 @@ def fetch_upstream(force=False):
 @coerce_props()
 @annotate()
 def parse(alts=None):
-    global files
     name = __name__.split(".")[-1]
     for fname, alt, fmt in files:
         if alts is not None and alt not in alts:
[entries] New entry: myocardial_inflamome by Tiago de Paula Peixoto 26799fd
diff --git a/entries/myocardial_inflamome/__init__.py b/entries/myocardial_inflamome/__init__.py
new file mode 100644
index 0000000..7a987cd
--- /dev/null
+++ b/entries/myocardial_inflamome/__init__.py
@@ -0,0 +1,95 @@
+#! /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 *
+
+title = "Myocardial infarction inflammation protein interactions (2011)"
+description = """Network of human protein-protein interactions (PPIs) related to inflammation and prognosis after myocardial infarction (MI), called "My-Inflamome", from F. J. Azuaje and collaborators. Nodes are human proteins (identified by gene symbols), and an undirected edge indicates an experimentally validated physical interaction between two proteins in humans. The network was built from a set of 415 seed proteins: 28 well-known biomarkers of inflammation and prognosis after MI (e.g. TNF, IL6, CRP, FAS), expanded with genes that are functionally and phenotypically similar to them according to a gene prioritization. All the human PPIs of the seed proteins were retrieved from the DIP, IntAct and MINT databases (c. 2010), and their union forms the network. The data contain the largest connected component of the network (reported as 2,532 proteins and 6,131 interactions; the file contains 2,531 distinct protein names, and a few self-interactions), on which the analyses of the paper are based.
+
+The nodes have the following properties:
+
+- `name`: the protein (gene symbol, or a database identifier when no symbol was assigned).
+- `is_seed`: whether the protein is one of the seeds; `is_biomarker`: whether it is one of the known biomarkers (seeds not in the largest component are not included).
+- `module`: the module of the protein (1 to 21), found by the authors with a greedy modularity-maximization clustering (PolarMapper); `submodule`: its submodule, numbered across all modules; `traffic`: the "traffic" (betweenness centrality) of the protein, as computed by the authors. These are -1 (or NaN) for the proteins not listed in the module tables.[^icon]
+
+[^icon]: Description obtained in part from the [ICON](https://icon.colorado.edu) project."""
+tags = ['Biological', 'Protein interactions', 'Unweighted', 'Metadata']
+url = 'https://doi.org/10.1186/1755-8794-4-59'
+citation = [('F. J. Azuaje, S. Rodius, L. Zhang, Y. Devaux, D. R. Wagner, "Information encoded in a network of inflammation proteins predicts clinical outcome after myocardial infarction." BMC Medical Genomics 4, 59 (2011)', 'https://doi.org/10.1186/1755-8794-4-59')]
+icon_hash = '5de6c40a4bbf13da17dcb57c'
+upstream_license = ("Creative Commons Attribution 2.0 Generic (CC BY 2.0)",
+                    "https://creativecommons.org/licenses/by/2.0/")
+# Europe PMC serves the supplementary material of the article as a zip file
+# at the URL ".../supplementaryFiles" (without extension)
+upstream_prefix = 'https://www.ebi.ac.uk/europepmc/webservices/rest/PMC3152897'
+files = [('supplementaryFiles:zip:1755-8794-4-59-S1.XLS', None, None)]
+
+def fetch_upstream(force=False):
+    return 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]
+    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:
+            sheets = read_xls(f)
+        idx = {}
+        def vertex(x):
+            x = cell_str(x)
+            if x not in idx:
+                idx[x] = len(idx)
+            return idx[x]
+        edges = []
+        for row in sheets["My-Inflamome"]:
+            if row[0] is None:
+                continue
+            edges.append((vertex(row[0]), vertex(row[2])))
+        g = Graph(directed=False)
+        g.add_vertex(len(idx))
+        g.add_edge_list(edges)
+        g.vp.name = g.new_vp("string", vals=list(idx.keys()))
+        g.vp.is_seed = g.new_vp("bool")
+        g.vp.is_biomarker = g.new_vp("bool")
+        for row in sheets["Seeds"][1:]:
+            for k, p in ((0, g.vp.is_biomarker), (1, g.vp.is_seed)):
+                x = cell_str(row[k]) if k < len(row) else ""
+                if x in idx:
+                    p[idx[x]] = True
+        g.vp.module = g.new_vp("int", val=-1)
+        g.vp.submodule = g.new_vp("int", val=-1)
+        g.vp.traffic = g.new_vp("double", val=numpy.nan)
+        for sname, rows in sheets.items():
+            if not sname.startswith("module"):
+                continue
+            m = int(sname[len("module"):])
+            for row in rows[4:]:
+                x = cell_str(row[0])
+                if x not in idx:
+                    continue
+                v = idx[x]
+                g.vp.module[v] = m
+                g.vp.submodule[v] = int(row[2])
+                g.vp.traffic[v] = float(row[1])
+        yield alt, g