logo Netzschleuder network catalog, repository, and centrifuge

History of celegans_extrasynaptic

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/celegans_extrasynaptic/__init__.py b/entries/celegans_extrasynaptic/__init__.py
index 30cb19b..da4b1ee 100644
--- a/entries/celegans_extrasynaptic/__init__.py
+++ b/entries/celegans_extrasynaptic/__init__.py
@@ -39,7 +39,7 @@ The networks have the following properties:
 tags = ['Biological', 'Connectome', 'Unweighted', 'Multigraph', 'Multilayer']
 url = 'https://doi.org/10.1371/journal.pcbi.1005283'
 citation = [('B. Bentley, R. Branicky, C. L. Barnes, Y. L. Chew, E. Yemini, E. T. Bullmore, P. E. Vértes, W. R. Schafer, "The multilayer connectome of Caenorhabditis elegans." PLOS Computational Biology 12(12), e1005283 (2016)', 'https://doi.org/10.1371/journal.pcbi.1005283')]
-icon_hash = '58668e38a411221d0e7c4156'
+date_added = '2026-10-25'
 upstream_license = ("CC BY 4.0", "https://creativecommons.org/licenses/by/4.0/")
 # Supplementary file S1 Dataset of the article. The PLOS URL carries a query
 # string (and redirects to a signed, expiring storage URL), so the file is
[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/celegans_extrasynaptic/__init__.py b/entries/celegans_extrasynaptic/__init__.py
index d47cc40..30cb19b 100644
--- a/entries/celegans_extrasynaptic/__init__.py
+++ b/entries/celegans_extrasynaptic/__init__.py
@@ -33,8 +33,9 @@ Each edge corresponds to one combination of transmitter and receptor, so that a
 
 The networks have the following properties:
 
-- Nodes: `name`, the name of the neuron (or neuron class).
-- Edges: `transmitter`, the monoamine (dopamine, serotonin, tyramine, or octopamine) or neuropeptide (e.g. flp-1, pdf-1) released by the source neuron; `receptor`, the receptor gene expressed by the target neuron."""
+- (Node) `name`: the name of the neuron (or neuron class).
+- (Edge) `transmitter`: the monoamine (dopamine, serotonin, tyramine, or octopamine) or neuropeptide (e.g. flp-1, pdf-1) released by the source neuron.
+- (Edge) `receptor`: the receptor gene expressed by the target neuron."""
 tags = ['Biological', 'Connectome', 'Unweighted', 'Multigraph', 'Multilayer']
 url = 'https://doi.org/10.1371/journal.pcbi.1005283'
 citation = [('B. Bentley, R. Branicky, C. L. Barnes, Y. L. Chew, E. Yemini, E. T. Bullmore, P. E. Vértes, W. R. Schafer, "The multilayer connectome of Caenorhabditis elegans." PLOS Computational Biology 12(12), e1005283 (2016)', 'https://doi.org/10.1371/journal.pcbi.1005283')]
[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/celegans_extrasynaptic/__init__.py b/entries/celegans_extrasynaptic/__init__.py
index 6aea214..d47cc40 100644
--- a/entries/celegans_extrasynaptic/__init__.py
+++ b/entries/celegans_extrasynaptic/__init__.py
@@ -75,7 +75,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 by Tiago de Paula Peixoto 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/celegans_extrasynaptic/__init__.py b/entries/celegans_extrasynaptic/__init__.py
index ba613b9..6aea214 100644
--- a/entries/celegans_extrasynaptic/__init__.py
+++ b/entries/celegans_extrasynaptic/__init__.py
@@ -20,12 +20,12 @@
 from .. import *
 
 title = "C. elegans extrasynaptic monoamine and neuropeptide networks (2016)"
-description = """Directed networks of extrasynaptic ("wireless") signalling between the neurons of the nematode *Caenorhabditis elegans* (adult hermaphrodite), mediated by monoamines and neuropeptides, from Bentley et al. These networks complement the synaptic and gap-junction connectome, forming a multilayer connectome of the worm.
+description = """Directed networks of extrasynaptic ("wireless") signaling between the neurons of the nematode *Caenorhabditis elegans* (adult hermaphrodite), mediated by monoamines and neuropeptides, from Bentley et al. These networks complement the synaptic and gap-junction connectome, forming a multilayer connectome of the worm.
 
 The networks were inferred from gene expression data, curated from new experiments (GFP reporters for the dopamine receptors *dop-5*, *dop-6* and *lgc-53*) and from the literature (assisted by the WormBase and WormWeb expression databases). A directed edge goes from a neuron that releases a transmitter (i.e. expresses the transmitter, its biosynthetic enzymes, or transporters) to a neuron that expresses a receptor for it. Edges are not restricted by the physical distance between the neurons.
 
-- `monoamine`: the draft monoamine network, comprising dopamine, serotonin, tyramine and octopamine signalling.
-- `monoamine_dop5_dop6`: the same, but including also the putative dopamine receptors *dop-5* and *dop-6* (a "provisional" dopamine network analysed in the supplementary material of the paper).
+- `monoamine`: the draft monoamine network, comprising dopamine, serotonin, tyramine and octopamine signaling.
+- `monoamine_dop5_dop6`: the same, but including also the putative dopamine receptors *dop-5* and *dop-6* (a "provisional" dopamine network analyzed in the supplementary material of the paper).
 - `neuropeptide`: the partial neuropeptide network, including only the peptide-receptor systems with sufficient expression and ligand-receptor interaction data, with interactions limited to biologically plausible peptide-receptor EC50 values (15 neuropeptides matched to 12 receptors).
 - `monoamine_classes`, `monoamine_classes_dop5_dop6`, `neuropeptide_classes`: the same networks, between neuron classes instead of individual neurons (e.g. the left/right pairs AIAL and AIAR form the class AIA).
 
[entries] New entry: celegans_extrasynaptic by Tiago de Paula Peixoto 34cb6f1
diff --git a/entries/celegans_extrasynaptic/__init__.py b/entries/celegans_extrasynaptic/__init__.py
new file mode 100644
index 0000000..ba613b9
--- /dev/null
+++ b/entries/celegans_extrasynaptic/__init__.py
@@ -0,0 +1,101 @@
+#! /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 = "C. elegans extrasynaptic monoamine and neuropeptide networks (2016)"
+description = """Directed networks of extrasynaptic ("wireless") signalling between the neurons of the nematode *Caenorhabditis elegans* (adult hermaphrodite), mediated by monoamines and neuropeptides, from Bentley et al. These networks complement the synaptic and gap-junction connectome, forming a multilayer connectome of the worm.
+
+The networks were inferred from gene expression data, curated from new experiments (GFP reporters for the dopamine receptors *dop-5*, *dop-6* and *lgc-53*) and from the literature (assisted by the WormBase and WormWeb expression databases). A directed edge goes from a neuron that releases a transmitter (i.e. expresses the transmitter, its biosynthetic enzymes, or transporters) to a neuron that expresses a receptor for it. Edges are not restricted by the physical distance between the neurons.
+
+- `monoamine`: the draft monoamine network, comprising dopamine, serotonin, tyramine and octopamine signalling.
+- `monoamine_dop5_dop6`: the same, but including also the putative dopamine receptors *dop-5* and *dop-6* (a "provisional" dopamine network analysed in the supplementary material of the paper).
+- `neuropeptide`: the partial neuropeptide network, including only the peptide-receptor systems with sufficient expression and ligand-receptor interaction data, with interactions limited to biologically plausible peptide-receptor EC50 values (15 neuropeptides matched to 12 receptors).
+- `monoamine_classes`, `monoamine_classes_dop5_dop6`, `neuropeptide_classes`: the same networks, between neuron classes instead of individual neurons (e.g. the left/right pairs AIAL and AIAR form the class AIA).
+
+Each edge corresponds to one combination of transmitter and receptor, so that a pair of neurons can be connected by several parallel edges (one per receptor expressed by the receiving neuron); self-loops correspond to neurons that express both a transmitter and one of its receptors. In the analyses of the paper, the parallel edges of each monoamine are collapsed into a single edge, and the neuropeptide network is divided into layers by receptor.
+
+The networks have the following properties:
+
+- Nodes: `name`, the name of the neuron (or neuron class).
+- Edges: `transmitter`, the monoamine (dopamine, serotonin, tyramine, or octopamine) or neuropeptide (e.g. flp-1, pdf-1) released by the source neuron; `receptor`, the receptor gene expressed by the target neuron."""
+tags = ['Biological', 'Connectome', 'Unweighted', 'Multigraph', 'Multilayer']
+url = 'https://doi.org/10.1371/journal.pcbi.1005283'
+citation = [('B. Bentley, R. Branicky, C. L. Barnes, Y. L. Chew, E. Yemini, E. T. Bullmore, P. E. Vértes, W. R. Schafer, "The multilayer connectome of Caenorhabditis elegans." PLOS Computational Biology 12(12), e1005283 (2016)', 'https://doi.org/10.1371/journal.pcbi.1005283')]
+icon_hash = '58668e38a411221d0e7c4156'
+upstream_license = ("CC BY 4.0", "https://creativecommons.org/licenses/by/4.0/")
+# Supplementary file S1 Dataset of the article. The PLOS URL carries a query
+# string (and redirects to a signed, expiring storage URL), so the file is
+# fetched in fetch_upstream() below.
+upstream_url = 'https://journals.plos.org/ploscompbiol/article/file?type=supplementary&id=info:doi/10.1371/journal.pcbi.1005283.s004'
+upstream_fname = 'pcbi.1005283.s004.zip'
+_base = (upstream_fname + ':S1 Dataset. Included are edge lists and source data '
+         'for monoamine and neuropeptide networks/edge_lists/')
+upstream_prefix = None
+files = [(_base + 'edgelist_MA.csv', 'monoamine', 'csv'),
+         (_base + 'edgelist_MA_incl_dop-5_dop-6.csv', 'monoamine_dop5_dop6', 'csv'),
+         (_base + 'edgelist_NP.csv', 'neuropeptide', 'csv'),
+         (_base + 'edgelist_MA_classes.csv', 'monoamine_classes', 'csv'),
+         (_base + 'edgelist_MA_classes_incl_dop-5_dop-6.csv',
+          'monoamine_classes_dop5_dop6', 'csv'),
+         (_base + 'edgelist_NP_classes.csv', 'neuropeptide_classes', 'csv')]
+
+def fetch_upstream(force=False):
+    name = __name__.split(".")[-1]
+    if not force:
+        try:
+            with open_upstream_file(name, upstream_fname, "rb"):
+                return
+        except (FileNotFoundError, IOError):
+            pass
+    with open_url(upstream_url) as f:
+        data = f.read()
+    if not data.startswith(b"PK"):
+        raise RuntimeError(f"unexpected content for {upstream_fname}")
+    with open_upstream_file(name, upstream_fname, "wb") as output:
+        output.write(data)
+
+@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, "r") as f:
+            # rows: source neuron, target neuron, transmitter, receptor
+            rows = [r for r in csv.reader(f) if r]
+        g = Graph(directed=True)
+        g.vp.name = g.new_vp("string")
+        g.ep.transmitter = g.new_ep("string")
+        g.ep.receptor = g.new_ep("string")
+        vs = {}
+        def get_v(n):
+            v = vs.get(n)
+            if v is None:
+                v = vs[n] = g.add_vertex()
+                g.vp.name[v] = n
+            return v
+        for s, t, tr, rec in rows:
+            e = g.add_edge(get_v(s), get_v(t))
+            g.ep.transmitter[e] = tr
+            g.ep.receptor[e] = rec
+        yield alt, g