History of signed_biological
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/signed_biological/__init__.py b/entries/signed_biological/__init__.py
index 3355a8a..3afd5d4 100644
--- a/entries/signed_biological/__init__.py
+++ b/entries/signed_biological/__init__.py
@@ -41,7 +41,7 @@ citation = [('G. Iacono, F. Ramezani, N. Soranzo and C. Altafini, "Determining t
('H. Salgado et al., "RegulonDB (version 5.0): Escherichia coli K-12 transcriptional regulatory network, operon organization, and growth conditions." Nucleic Acids Research 34, D394–D397 (2006)', 'https://doi.org/10.1093/nar/gkj156'),
('K. Oda, Y. Matsuoka, A. Funahashi and H. Kitano, "A comprehensive pathway map of epidermal growth factor receptor signaling." Molecular Systems Biology 1, 2005.0010 (2005)', 'https://doi.org/10.1038/msb4100014'),
('S. Aref, "Signed networks from sociology and political science, systems biology, international relations, finance, and computational chemistry." Figshare (2017)', 'https://doi.org/10.6084/m9.figshare.5700832')]
-icon_hash = None
+date_added = '2026-10-25'
upstream_license = ("Creative Commons Attribution 4.0 International (CC BY 4.0)",
"https://creativecommons.org/licenses/by/4.0/")
upstream_prefix = 'https://ndownloader.figshare.com/files'
[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/signed_biological/__init__.py b/entries/signed_biological/__init__.py
index 296d822..3355a8a 100644
--- a/entries/signed_biological/__init__.py
+++ b/entries/signed_biological/__init__.py
@@ -30,7 +30,7 @@ Nodes are genes or molecular species, and an undirected edge has sign $+1$ for a
The networks have the following properties:
-- `sign` (edges): $+1$ for activation and $-1$ for inhibition.
+- (Edge) `sign` (edges): $+1$ for activation and $-1$ for inhibition.
The source files identify the nodes only by number (vertex $i$ corresponds to node $i+1$ of the source); the gene and molecule names are not given."""
tags = ['Biological', 'Gene regulation', 'Signed']
[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/signed_biological/__init__.py b/entries/signed_biological/__init__.py
index d7d82b0..296d822 100644
--- a/entries/signed_biological/__init__.py
+++ b/entries/signed_biological/__init__.py
@@ -58,7 +58,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] Use American spelling in the descriptions 802d564
British spellings in the titles and descriptions of 69 entries (e.g. labelled, organisation, millimetres, centres, anonymised, neighbours, analysed, modelled, colour, licence) are replaced by the American ones. Proper names keep their spelling (Otago Harbour, the Centre for Water Systems, the Centre jeunesse de Montréal, the Dutch Ministry of Defence), as do quoted upstream terms, citations, and property names.
diff --git a/entries/signed_biological/__init__.py b/entries/signed_biological/__init__.py
index c57b04d..d7d82b0 100644
--- a/entries/signed_biological/__init__.py
+++ b/entries/signed_biological/__init__.py
@@ -25,7 +25,7 @@ Nodes are genes or molecular species, and an undirected edge has sign $+1$ for a
- `yeast`: the transcriptional (gene regulatory) network of the yeast *Saccharomyces cerevisiae*, from the Yeast Proteome Database (Costanzo et al., 2001); 690 genes and 1,080 interactions.
- `ecoli`: the transcriptional network of the bacterium *Escherichia coli* K-12, from RegulonDB version 5.0 (Salgado et al., 2006); 1,461 genes and 3,215 interactions.
-- `egfr`: the epidermal growth factor receptor (EGFR) signalling pathway map of Oda et al. (2005); 329 molecular species and 779 interactions.
+- `egfr`: the epidermal growth factor receptor (EGFR) signaling pathway map of Oda et al. (2005); 329 molecular species and 779 interactions.
- `macrophage`: the molecular interaction map of a macrophage (a white blood cell) of Oda et al. ("Molecular interaction map of a macrophage", AfCS Research Reports 2(14), 2004); 678 molecular species and 1,425 interactions.
The networks have the following properties:
[entries] New entry: signed_biological 1c911cf
diff --git a/entries/signed_biological/__init__.py b/entries/signed_biological/__init__.py
new file mode 100644
index 0000000..c57b04d
--- /dev/null
+++ b/entries/signed_biological/__init__.py
@@ -0,0 +1,77 @@
+#! /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 = "Signed gene regulatory and signalling networks (2010)"
+description = r"""Four signed biological networks compiled by G. Iacono, F. Ramezani, N. Soranzo and C. Altafini (2010) to measure how close biological networks are to being monotone (the equivalent of structurally balanced for signed graphs), and later used as benchmarks for computing the frustration index of signed networks by S. Aref, A. J. Mason and M. C. Wilson, who distributed them in a collection of signed networks (Aref and Wilson, 2019).
+
+Nodes are genes or molecular species, and an undirected edge has sign $+1$ for an activating and $-1$ for an inhibiting interaction between them (the direction of the interactions is not kept). The networks are:
+
+- `yeast`: the transcriptional (gene regulatory) network of the yeast *Saccharomyces cerevisiae*, from the Yeast Proteome Database (Costanzo et al., 2001); 690 genes and 1,080 interactions.
+- `ecoli`: the transcriptional network of the bacterium *Escherichia coli* K-12, from RegulonDB version 5.0 (Salgado et al., 2006); 1,461 genes and 3,215 interactions.
+- `egfr`: the epidermal growth factor receptor (EGFR) signalling pathway map of Oda et al. (2005); 329 molecular species and 779 interactions.
+- `macrophage`: the molecular interaction map of a macrophage (a white blood cell) of Oda et al. ("Molecular interaction map of a macrophage", AfCS Research Reports 2(14), 2004); 678 molecular species and 1,425 interactions.
+
+The networks have the following properties:
+
+- `sign` (edges): $+1$ for activation and $-1$ for inhibition.
+
+The source files identify the nodes only by number (vertex $i$ corresponds to node $i+1$ of the source); the gene and molecule names are not given."""
+tags = ['Biological', 'Gene regulation', 'Signed']
+url = 'https://doi.org/10.6084/m9.figshare.5700832'
+citation = [('G. Iacono, F. Ramezani, N. Soranzo and C. Altafini, "Determining the distance to monotonicity of a biological network: a graph-theoretical approach." IET Systems Biology 4(3), 223–235 (2010)', 'https://doi.org/10.1049/iet-syb.2009.0040'),
+ ('S. Aref and M. C. Wilson, "Balance and frustration in signed networks." J. Complex Networks 7(2), 163–189 (2019)', 'https://doi.org/10.1093/comnet/cny015'),
+ ('M. C. Costanzo et al., "YPD, PombePD and WormPD: model organism volumes of the BioKnowledge Library, an integrated resource for protein information." Nucleic Acids Research 29(1), 75–79 (2001)', 'https://doi.org/10.1093/nar/29.1.75'),
+ ('H. Salgado et al., "RegulonDB (version 5.0): Escherichia coli K-12 transcriptional regulatory network, operon organization, and growth conditions." Nucleic Acids Research 34, D394–D397 (2006)', 'https://doi.org/10.1093/nar/gkj156'),
+ ('K. Oda, Y. Matsuoka, A. Funahashi and H. Kitano, "A comprehensive pathway map of epidermal growth factor receptor signaling." Molecular Systems Biology 1, 2005.0010 (2005)', 'https://doi.org/10.1038/msb4100014'),
+ ('S. Aref, "Signed networks from sociology and political science, systems biology, international relations, finance, and computational chemistry." Figshare (2017)', 'https://doi.org/10.6084/m9.figshare.5700832')]
+icon_hash = None
+upstream_license = ("Creative Commons Attribution 4.0 International (CC BY 4.0)",
+ "https://creativecommons.org/licenses/by/4.0/")
+upstream_prefix = 'https://ndownloader.figshare.com/files'
+
+files = [(f"21172485:zip:Biological Networks/{fn}_symm.txt", alt, "csv")
+ for alt, fn in [("yeast", "yeast"), ("ecoli", "ecoli"),
+ ("egfr", "EGFR"), ("macrophage", "macrophage")]]
+
+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
+ edges = []
+ with open_upstream_file(name, fname, "r") as f:
+ for line in f:
+ line = line.split()
+ if len(line) == 3:
+ edges.append((int(line[0]) - 1, int(line[1]) - 1,
+ int(line[2])))
+ g = Graph(directed=False)
+ g.add_vertex(max(max(u, v) for u, v, s in edges) + 1)
+ g.ep.sign = g.new_ep("int")
+ g.add_edge_list(edges, eprops=[g.ep.sign])
+ yield alt, g