logo Netzschleuder network catalog, repository, and centrifuge

History of scn_functional_networks

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/scn_functional_networks/__init__.py b/entries/scn_functional_networks/__init__.py
index c69c3ef..f2eccfd 100644
--- a/entries/scn_functional_networks/__init__.py
+++ b/entries/scn_functional_networks/__init__.py
@@ -34,7 +34,7 @@ The networks have the following properties:
 tags = ['Biological', 'Connectome', 'Weighted', 'Metadata']
 url = 'https://github.com/JohnAbel/scn-resynchronization-data-2016'
 citation = [('J. H. Abel, K. Meeker, D. Granados-Fuentes, P. C. St. John, T. J. Wang, B. B. Bales, F. J. Doyle, E. D. Herzog, L. R. Petzold, "Functional network inference of the suprachiasmatic nucleus." Proceedings of the National Academy of Sciences 113(16), 4512-4517 (2016)', 'https://doi.org/10.1073/pnas.1521178113')]
-icon_hash = '573cb30b3d097b601f7bab13'
+date_added = '2026-10-25'
 upstream_license = None
 upstream_prefix = 'https://raw.githubusercontent.com/JohnAbel/scn-resynchronization-data-2016/c835ba14ceabfea6407433b51b16b4613e3778c8'
 files = [((f'raw_mic_scores/mic_indiv_scn{i}.csv',
[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/scn_functional_networks/__init__.py b/entries/scn_functional_networks/__init__.py
index c87ae0b..c69c3ef 100644
--- a/entries/scn_functional_networks/__init__.py
+++ b/entries/scn_functional_networks/__init__.py
@@ -28,8 +28,9 @@ Two cells are connected if the maximal information coefficient (MIC) between the
 
 The networks have the following properties:
 
-- Nodes: `pos`, the (x, y) location of the cell in the image; `bioluminescence`, the time series of the bioluminescence of the cell during the TTX washout, with one sample per hour.
-- Edges: `mic`, the maximal information coefficient between the two cells."""
+- (Node) `pos`: the (x, y) location of the cell in the image.
+- (Node) `bioluminescence`: the time series of the bioluminescence of the cell during the TTX washout, with one sample per hour.
+- (Edge) `mic`: the maximal information coefficient between the two cells."""
 tags = ['Biological', 'Connectome', 'Weighted', 'Metadata']
 url = 'https://github.com/JohnAbel/scn-resynchronization-data-2016'
 citation = [('J. H. Abel, K. Meeker, D. Granados-Fuentes, P. C. St. John, T. J. Wang, B. B. Bales, F. J. Doyle, E. D. Herzog, L. R. Petzold, "Functional network inference of the suprachiasmatic nucleus." Proceedings of the National Academy of Sciences 113(16), 4512-4517 (2016)', 'https://doi.org/10.1073/pnas.1521178113')]
[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/scn_functional_networks/__init__.py b/entries/scn_functional_networks/__init__.py
index 34bb9af..c87ae0b 100644
--- a/entries/scn_functional_networks/__init__.py
+++ b/entries/scn_functional_networks/__init__.py
@@ -52,7 +52,6 @@ def fetch_upstream(force=False):
 @coerce_props()
 @annotate()
 def parse(alts=None):
-    global files
     name = __name__.split(".")[-1]
     for fnames, alt, fmt in files:
         if alts is not None and alt not in alts:
[entries] New entry: scn_functional_networks by Tiago de Paula Peixoto e4bd507
diff --git a/entries/scn_functional_networks/__init__.py b/entries/scn_functional_networks/__init__.py
new file mode 100644
index 0000000..34bb9af
--- /dev/null
+++ b/entries/scn_functional_networks/__init__.py
@@ -0,0 +1,75 @@
+#! /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 = "Mouse suprachiasmatic nucleus functional networks (2016)"
+description = """Functional networks between the neurons of the suprachiasmatic nucleus (SCN) of mice, the master circadian clock located in the hypothalamus, inferred by Abel et al. from single-cell bioluminescence recordings. Slices of the SCN of five mice expressing a bioluminescent reporter of the clock protein PERIOD2 (PER2::LUC) were imaged at a rate of one sample per hour, and the cells were tracked over time. The neurons were desynchronized by blocking their communication with the neurotoxin tetrodotoxin (TTX), which was then washed out, and the network was inferred from the bioluminescence traces of the individual cells while they resynchronized after the washout.
+
+Two cells are connected if the maximal information coefficient (MIC) between their bioluminescence traces after the washout exceeds a threshold, which was chosen separately for each SCN (0.949, 0.935, 0.9895, 0.968 and 0.969 for SCNs 1 to 5, respectively), as given by the authors. Cells without any connection above the threshold are kept as isolated nodes.
+
+- `scn1`, ..., `scn5`: the functional networks of the five SCN slices.
+
+The networks have the following properties:
+
+- Nodes: `pos`, the (x, y) location of the cell in the image; `bioluminescence`, the time series of the bioluminescence of the cell during the TTX washout, with one sample per hour.
+- Edges: `mic`, the maximal information coefficient between the two cells."""
+tags = ['Biological', 'Connectome', 'Weighted', 'Metadata']
+url = 'https://github.com/JohnAbel/scn-resynchronization-data-2016'
+citation = [('J. H. Abel, K. Meeker, D. Granados-Fuentes, P. C. St. John, T. J. Wang, B. B. Bales, F. J. Doyle, E. D. Herzog, L. R. Petzold, "Functional network inference of the suprachiasmatic nucleus." Proceedings of the National Academy of Sciences 113(16), 4512-4517 (2016)', 'https://doi.org/10.1073/pnas.1521178113')]
+icon_hash = '573cb30b3d097b601f7bab13'
+upstream_license = None
+upstream_prefix = 'https://raw.githubusercontent.com/JohnAbel/scn-resynchronization-data-2016/c835ba14ceabfea6407433b51b16b4613e3778c8'
+files = [((f'raw_mic_scores/mic_indiv_scn{i}.csv',
+           f'ttx_wash_trajectories/scn{i}_TTXwash_locs.csv',
+           f'ttx_wash_trajectories/scn{i}_TTXwash_data.csv'), f'scn{i}', None)
+         for i in range(1, 6)]
+# MIC thresholds given in the README of the repository, for SCNs 1-5
+thresholds = {'scn1': 0.949, 'scn2': 0.935, 'scn3': 0.9895, 'scn4': 0.968,
+              'scn5': 0.969}
+
+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 fnames, alt, fmt in files:
+        if alts is not None and alt not in alts:
+            continue
+        with ExitStack() as stack:
+            fs = [stack.enter_context(open_upstream_file(name, fn, "r"))
+                  for fn in fnames]
+            M, locs, data = [numpy.loadtxt(f, delimiter=",", ndmin=2) for f in fs]
+        N = M.shape[0]
+        assert M.shape == (N, N) and locs.shape == (N, 2) and data.shape[1] == N
+        g = Graph(directed=False)
+        g.add_vertex(N)
+        i, j = numpy.nonzero(numpy.triu(M, 1) > thresholds[alt])
+        g.ep.mic = g.new_ep("double")
+        g.add_edge_list(numpy.column_stack((i, j, M[i, j])), eprops=[g.ep.mic])
+        g.vp.pos = g.new_vp("vector<double>")
+        g.vp.pos.set_2d_array(locs.T)
+        g.vp.bioluminescence = g.new_vp("vector<double>")
+        g.vp.bioluminescence.set_2d_array(data)
+        yield alt, g