logo Netzschleuder network catalog, repository, and centrifuge

History of platynereis_connectome

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/platynereis_connectome/__init__.py b/entries/platynereis_connectome/__init__.py
index 58665fa..914e06b 100644
--- a/entries/platynereis_connectome/__init__.py
+++ b/entries/platynereis_connectome/__init__.py
@@ -38,7 +38,7 @@ tags = ['Biological', 'Connectome', 'Weighted', 'Metadata']
 url = 'https://elifesciences.org/articles/97964'
 citation = [('C. Verasztó, S. Jasek, M. Gühmann, L. A. Bezares-Calderón, E. A. Williams, R. Shahidi, G. Jékely, "Whole-body connectome of a segmented annelid larva." eLife 13, RP97964 (2025)', 'https://doi.org/10.7554/eLife.97964'),
             ('C. Verasztó, S. Jasek, M. Gühmann, R. Shahidi, N. Ueda, J. D. Beard, S. Mendes, K. Heinz, L. A. Bezares-Calderón, E. Williams, G. Jékely, "Whole-animal connectome and cell-type complement of the three-segmented Platynereis dumerilii larva." bioRxiv 2020.08.21.260984 (2020)', 'https://doi.org/10.1101/2020.08.21.260984')]
-icon_hash = '5f442ee618e8352373c0991d'
+date_added = '2026-10-25'
 upstream_license = ("CC BY 4.0", "https://creativecommons.org/licenses/by/4.0/")
 upstream_prefix = 'https://cdn.elifesciences.org/articles/97964'
 # Figure 2-source data 1: the connectome graph as an R tbl_graph (igraph)
[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/platynereis_connectome/__init__.py b/entries/platynereis_connectome/__init__.py
index 672e5a4..58665fa 100644
--- a/entries/platynereis_connectome/__init__.py
+++ b/entries/platynereis_connectome/__init__.py
@@ -26,8 +26,14 @@ Nodes are cells (neurons and the effector cells they innervate, such as muscles,
 
 The network has the following properties:
 
-- Nodes: `name`, the name of the cell in CATMAID, which for most neurons indicates its cell type and side; `skid`, the skeleton identifier in the CATMAID database; `celltype`, the cell-type annotation in CATMAID (e.g. "celltype1"; "not_celltype" if the cell was not assigned to a cell type), which are described in Supplementary file 1 of the paper; `class`, the cell class ("sensory neuron", "interneuron", "motoneuron", "effector", "fragmentum" for fragments, or "other"); `segment`, the body region of the soma ("episphere" for the head, "segment_0" to "segment_3", "pygidium", or "fragment"); `side`, the body side of the soma ("left_side", "right_side", "middle", or "other"); `module` and `module_name`, the module of the cell, obtained by the authors with the Leiden community detection algorithm, numbered from 1 and named after their main effector organs or anatomical characters (e.g. "mech (l)", "NS", "ciliomotor"; empty for some modules).
-- Edges: `weight`, the number of synapses."""
+- (Node) `name`: the name of the cell in CATMAID, which for most neurons indicates its cell type and side.
+- (Node) `skid`: the skeleton identifier in the CATMAID database.
+- (Node) `celltype`: the cell-type annotation in CATMAID (e.g. "celltype1"; "not_celltype" if the cell was not assigned to a cell type), which are described in Supplementary file 1 of the paper.
+- (Node) `class`: the cell class ("sensory neuron", "interneuron", "motoneuron", "effector", "fragmentum" for fragments, or "other").
+- (Node) `segment`: the body region of the soma ("episphere" for the head, "segment_0" to "segment_3", "pygidium", or "fragment").
+- (Node) `side`: the body side of the soma ("left_side", "right_side", "middle", or "other").
+- (Node) `module` and `module_name`: the module of the cell, obtained by the authors with the Leiden community detection algorithm, numbered from 1 and named after their main effector organs or anatomical characters (e.g. "mech (l)", "NS", "ciliomotor"; empty for some modules).
+- (Edge) `weight`: the number of synapses."""
 tags = ['Biological', 'Connectome', 'Weighted', 'Metadata']
 url = 'https://elifesciences.org/articles/97964'
 citation = [('C. Verasztó, S. Jasek, M. Gühmann, L. A. Bezares-Calderón, E. A. Williams, R. Shahidi, G. Jékely, "Whole-body connectome of a segmented annelid larva." eLife 13, RP97964 (2025)', 'https://doi.org/10.7554/eLife.97964'),
[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/platynereis_connectome/__init__.py b/entries/platynereis_connectome/__init__.py
index 5dc7e1b..672e5a4 100644
--- a/entries/platynereis_connectome/__init__.py
+++ b/entries/platynereis_connectome/__init__.py
@@ -47,7 +47,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: platynereis_connectome by Tiago de Paula Peixoto ccedaba
diff --git a/entries/platynereis_connectome/__init__.py b/entries/platynereis_connectome/__init__.py
new file mode 100644
index 0000000..5dc7e1b
--- /dev/null
+++ b/entries/platynereis_connectome/__init__.py
@@ -0,0 +1,74 @@
+#! /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 = "Platynereis dumerilii larval connectome (2025)"
+description = """Whole-body synaptic connectome of a three-day-old (72 hours post fertilization) larva of the marine annelid worm *Platynereis dumerilii*, which has a head, three trunk segments, and a pygidium. All cells were traced and annotated by Verasztó et al. in a serial-section transmission electron microscopy volume of 4,846 layers of 40 nm sections spanning the entire body of a larva, using the CATMAID software. The synapses are chemical (no gap junctions were identified) and monadic, i.e. each connects one presynaptic neuron to one postsynaptic cell.
+
+Nodes are cells (neurons and the effector cells they innervate, such as muscles, ciliated cells, and glands) or neurite fragments that could not be attached to a cell with a soma, and a directed edge goes from a presynaptic to a postsynaptic cell, weighted by the number of synapses between them. The network is the connectome graph of Figure 2 of the paper, as provided in its source data. (An earlier version of the connectome, with 2,728 nodes, was distributed with the 2020 preprint of the paper.)
+
+The network has the following properties:
+
+- Nodes: `name`, the name of the cell in CATMAID, which for most neurons indicates its cell type and side; `skid`, the skeleton identifier in the CATMAID database; `celltype`, the cell-type annotation in CATMAID (e.g. "celltype1"; "not_celltype" if the cell was not assigned to a cell type), which are described in Supplementary file 1 of the paper; `class`, the cell class ("sensory neuron", "interneuron", "motoneuron", "effector", "fragmentum" for fragments, or "other"); `segment`, the body region of the soma ("episphere" for the head, "segment_0" to "segment_3", "pygidium", or "fragment"); `side`, the body side of the soma ("left_side", "right_side", "middle", or "other"); `module` and `module_name`, the module of the cell, obtained by the authors with the Leiden community detection algorithm, numbered from 1 and named after their main effector organs or anatomical characters (e.g. "mech (l)", "NS", "ciliomotor"; empty for some modules).
+- Edges: `weight`, the number of synapses."""
+tags = ['Biological', 'Connectome', 'Weighted', 'Metadata']
+url = 'https://elifesciences.org/articles/97964'
+citation = [('C. Verasztó, S. Jasek, M. Gühmann, L. A. Bezares-Calderón, E. A. Williams, R. Shahidi, G. Jékely, "Whole-body connectome of a segmented annelid larva." eLife 13, RP97964 (2025)', 'https://doi.org/10.7554/eLife.97964'),
+            ('C. Verasztó, S. Jasek, M. Gühmann, R. Shahidi, N. Ueda, J. D. Beard, S. Mendes, K. Heinz, L. A. Bezares-Calderón, E. Williams, G. Jékely, "Whole-animal connectome and cell-type complement of the three-segmented Platynereis dumerilii larva." bioRxiv 2020.08.21.260984 (2020)', 'https://doi.org/10.1101/2020.08.21.260984')]
+icon_hash = '5f442ee618e8352373c0991d'
+upstream_license = ("CC BY 4.0", "https://creativecommons.org/licenses/by/4.0/")
+upstream_prefix = 'https://cdn.elifesciences.org/articles/97964'
+# Figure 2-source data 1: the connectome graph as an R tbl_graph (igraph)
+# object, saved with saveRDS()
+files = [('elife-97964-fig2-data1-v1.zip:Figure2_source_data1.rds', 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:
+            d = igraph_from_rdata(read_rds(f.read()))
+        def vattr(k):
+            x = d["vattrs"][k]
+            return x[0] if isinstance(x, tuple) else x
+        g = Graph(directed=d["directed"])
+        g.add_vertex(d["n"])
+        g.ep.weight = g.new_ep("int")
+        w = numpy.array(d["eattrs"]["weight"], dtype="int")
+        g.add_edge_list(numpy.column_stack((numpy.array(d["edges"], dtype="int"), w)),
+                        eprops=[g.ep.weight])
+        g.vp.name = g.new_vp("string", vals=vattr("names"))
+        g.vp.skid = g.new_vp("int", vals=[int(x) for x in vattr("skids")])
+        g.vp.celltype = g.new_vp("string", vals=vattr("celltype_annotation"))
+        g.vp["class"] = g.new_vp("string", vals=vattr("class"))
+        g.vp.segment = g.new_vp("string", vals=vattr("segment"))
+        g.vp.side = g.new_vp("string", vals=vattr("side"))
+        g.vp.module = g.new_vp("int", vals=[int(x) for x in vattr("partition")])
+        g.vp.module_name = g.new_vp("string", vals=vattr("partition_name"))
+        yield alt, g