History of macaque_markov
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] Remove superfluous details of the upstream distribution from the descriptions dc07aa0
The descriptions mentioned incidental details of how the upstream data are made available: the file formats (CSV, JSON, XML, GEXF, SBML, HIF, Pajek, UCINET, ...), file names, where the files were published or obtained from (Zenodo, figshare, Kaggle, the Pajek datasets page, the Internet Archive), and that some networks are only available in the gt format. These are left out; caveats about the data themselves are kept, referring to "the data" instead of "the file". The description of sp_baboons now lists its properties instead of the upstream columns, and says that events without a recipient are left out.
diff --git a/entries/macaque_markov/__init__.py b/entries/macaque_markov/__init__.py
index 55e4dcc..d2353eb 100644
--- a/entries/macaque_markov/__init__.py
+++ b/entries/macaque_markov/__init__.py
@@ -23,9 +23,9 @@ description = """Directed networks of the macaque (*Macaca mulatta* and *M. fasc
- `flne`: the connectivity of 29 injected areas from all 91 areas (Markov et al., Cerebral Cortex 2014). There is one edge for each injection and each source area with labeled neurons, so that areas injected in several animals are connected by parallel edges (1,989 edges, 1,615 distinct connections). Edge properties: `flne`, the extrinsic fraction of labeled neurons (the number of neurons labeled in the source area divided by the total number labeled outside the injected area); `neurons`, the number of labeled neurons; `case`, the injection case number; `monkey`, the identifier of the animal and hemisphere; `status`, whether the projection was previously reported in the literature ("Known") or newly found ("NFP"); `references`, the reference numbers (in the original publication) of previous reports of the projection, or "NA".
- `sln`: the projections to 11 injected areas of the visual cortex (Markov et al., J. Comp. Neurol. 2014), annotated with the laminar origin of the projecting neurons, used to derive the hierarchy of visual areas. Edge properties: `sln`, the percentage of labeled neurons in the supragranular layers (SLN; high values indicate feedforward and low values feedback projections); `distance`, the white-matter distance between the two areas, in millimeters.
-- `distances`: the estimated white-matter distances, in millimeters (edge property `distance`), from every area to each of the 29 injected areas (Markov et al., PNAS 2013). This network contains all such pairs, whether or not the areas are connected, and is therefore a distance matrix rather than a connectivity network; in this file some areas are grouped differently (e.g. "INSULA", "TEMPORAL_POLE").
+- `distances`: the estimated white-matter distances, in millimeters (edge property `distance`), from every area to each of the 29 injected areas (Markov et al., PNAS 2013). This network contains all such pairs, whether or not the areas are connected, and is therefore a distance matrix rather than a connectivity network; in these data some areas are grouped differently (e.g. "INSULA", "TEMPORAL_POLE").
-All networks have the vertex property `name`, the name of the cortical area. The networks were obtained from the authors' Core-Nets data site via OpenConnectome. The data were obtained from the graph collection of the Open Connectome Project (now NeuroData), whose servers are offline, via the Internet Archive."""
+All networks have the vertex property `name`, the name of the cortical area."""
tags = ['Biological', 'Connectome', 'Weighted', 'Multigraph', 'Metadata']
url = 'https://web.archive.org/web/20160420202242/http://openconnecto.me/graph-services/download/'
citation = [('N. T. Markov et al., "A Weighted and Directed Interareal Connectivity Matrix for Macaque Cerebral Cortex." Cerebral Cortex 24(1), 17-36 (2014)', 'https://doi.org/10.1093/cercor/bhs270'),
[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/macaque_markov/__init__.py b/entries/macaque_markov/__init__.py
index 2a71240..55e4dcc 100644
--- a/entries/macaque_markov/__init__.py
+++ b/entries/macaque_markov/__init__.py
@@ -31,7 +31,7 @@ url = 'https://web.archive.org/web/20160420202242/http://openconnecto.me/graph-s
citation = [('N. T. Markov et al., "A Weighted and Directed Interareal Connectivity Matrix for Macaque Cerebral Cortex." Cerebral Cortex 24(1), 17-36 (2014)', 'https://doi.org/10.1093/cercor/bhs270'),
('N. T. Markov et al., "Anatomy of hierarchy: Feedforward and feedback pathways in macaque visual cortex." Journal of Comparative Neurology 522(1), 225-259 (2014)', 'https://doi.org/10.1002/cne.23458'),
('N. T. Markov et al., "The role of long-range connections on the specificity of the macaque interareal cortical network." Proceedings of the National Academy of Sciences 110(13), 5187-5192 (2013)', 'https://doi.org/10.1073/pnas.1218972110')]
-icon_hash = ['56a85c8e26855e083a2f78c8', '56a85c8e26855e083a2f78c7', '56a85c8e26855e083a2f78c9']
+date_added = '2026-10-25'
upstream_license = None
# Internet Archive copies of the OpenConnectome graph files (see archived_urls)
upstream_prefix = 'https://web.archive.org/web'
[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/macaque_markov/__init__.py b/entries/macaque_markov/__init__.py
index 3e8123c..2a71240 100644
--- a/entries/macaque_markov/__init__.py
+++ b/entries/macaque_markov/__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/macaque_markov/__init__.py b/entries/macaque_markov/__init__.py
index a74a4c5..3e8123c 100644
--- a/entries/macaque_markov/__init__.py
+++ b/entries/macaque_markov/__init__.py
@@ -19,11 +19,11 @@
from .. import *
title = 'Macaque interareal cortical networks of Markov et al. (2013-2014)'
-description = """Directed networks of the macaque (*Macaca mulatta* and *M. fascicularis*) cerebral cortex, from the retrograde tract-tracing experiments of Markov, Kennedy and collaborators. In each experiment a retrograde tracer was injected into one cortical area (the target), and the labelled neurons projecting to it were counted in each of the 91 areas (the sources) of the authors' M132 atlas parcellation. Edges point from the source area to the injected target area, so only the injected areas have incoming edges.
+description = """Directed networks of the macaque (*Macaca mulatta* and *M. fascicularis*) cerebral cortex, from the retrograde tract-tracing experiments of Markov, Kennedy and collaborators. In each experiment a retrograde tracer was injected into one cortical area (the target), and the labeled neurons projecting to it were counted in each of the 91 areas (the sources) of the authors' M132 atlas parcellation. Edges point from the source area to the injected target area, so only the injected areas have incoming edges.
-- `flne`: the connectivity of 29 injected areas from all 91 areas (Markov et al., Cerebral Cortex 2014). There is one edge for each injection and each source area with labelled neurons, so that areas injected in several animals are connected by parallel edges (1,989 edges, 1,615 distinct connections). Edge properties: `flne`, the extrinsic fraction of labelled neurons (the number of neurons labelled in the source area divided by the total number labelled outside the injected area); `neurons`, the number of labelled neurons; `case`, the injection case number; `monkey`, the identifier of the animal and hemisphere; `status`, whether the projection was previously reported in the literature ("Known") or newly found ("NFP"); `references`, the reference numbers (in the original publication) of previous reports of the projection, or "NA".
-- `sln`: the projections to 11 injected areas of the visual cortex (Markov et al., J. Comp. Neurol. 2014), annotated with the laminar origin of the projecting neurons, used to derive the hierarchy of visual areas. Edge properties: `sln`, the percentage of labelled neurons in the supragranular layers (SLN; high values indicate feedforward and low values feedback projections); `distance`, the white-matter distance between the two areas, in millimetres.
-- `distances`: the estimated white-matter distances, in millimetres (edge property `distance`), from every area to each of the 29 injected areas (Markov et al., PNAS 2013). This network contains all such pairs, whether or not the areas are connected, and is therefore a distance matrix rather than a connectivity network; in this file some areas are grouped differently (e.g. "INSULA", "TEMPORAL_POLE").
+- `flne`: the connectivity of 29 injected areas from all 91 areas (Markov et al., Cerebral Cortex 2014). There is one edge for each injection and each source area with labeled neurons, so that areas injected in several animals are connected by parallel edges (1,989 edges, 1,615 distinct connections). Edge properties: `flne`, the extrinsic fraction of labeled neurons (the number of neurons labeled in the source area divided by the total number labeled outside the injected area); `neurons`, the number of labeled neurons; `case`, the injection case number; `monkey`, the identifier of the animal and hemisphere; `status`, whether the projection was previously reported in the literature ("Known") or newly found ("NFP"); `references`, the reference numbers (in the original publication) of previous reports of the projection, or "NA".
+- `sln`: the projections to 11 injected areas of the visual cortex (Markov et al., J. Comp. Neurol. 2014), annotated with the laminar origin of the projecting neurons, used to derive the hierarchy of visual areas. Edge properties: `sln`, the percentage of labeled neurons in the supragranular layers (SLN; high values indicate feedforward and low values feedback projections); `distance`, the white-matter distance between the two areas, in millimeters.
+- `distances`: the estimated white-matter distances, in millimeters (edge property `distance`), from every area to each of the 29 injected areas (Markov et al., PNAS 2013). This network contains all such pairs, whether or not the areas are connected, and is therefore a distance matrix rather than a connectivity network; in this file some areas are grouped differently (e.g. "INSULA", "TEMPORAL_POLE").
All networks have the vertex property `name`, the name of the cortical area. The networks were obtained from the authors' Core-Nets data site via OpenConnectome. The data were obtained from the graph collection of the Open Connectome Project (now NeuroData), whose servers are offline, via the Internet Archive."""
tags = ['Biological', 'Connectome', 'Weighted', 'Multigraph', 'Metadata']
[entries] New entry: macaque_markov 2498700
diff --git a/entries/macaque_markov/__init__.py b/entries/macaque_markov/__init__.py
new file mode 100644
index 0000000..a74a4c5
--- /dev/null
+++ b/entries/macaque_markov/__init__.py
@@ -0,0 +1,83 @@
+#! /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 = 'Macaque interareal cortical networks of Markov et al. (2013-2014)'
+description = """Directed networks of the macaque (*Macaca mulatta* and *M. fascicularis*) cerebral cortex, from the retrograde tract-tracing experiments of Markov, Kennedy and collaborators. In each experiment a retrograde tracer was injected into one cortical area (the target), and the labelled neurons projecting to it were counted in each of the 91 areas (the sources) of the authors' M132 atlas parcellation. Edges point from the source area to the injected target area, so only the injected areas have incoming edges.
+
+- `flne`: the connectivity of 29 injected areas from all 91 areas (Markov et al., Cerebral Cortex 2014). There is one edge for each injection and each source area with labelled neurons, so that areas injected in several animals are connected by parallel edges (1,989 edges, 1,615 distinct connections). Edge properties: `flne`, the extrinsic fraction of labelled neurons (the number of neurons labelled in the source area divided by the total number labelled outside the injected area); `neurons`, the number of labelled neurons; `case`, the injection case number; `monkey`, the identifier of the animal and hemisphere; `status`, whether the projection was previously reported in the literature ("Known") or newly found ("NFP"); `references`, the reference numbers (in the original publication) of previous reports of the projection, or "NA".
+- `sln`: the projections to 11 injected areas of the visual cortex (Markov et al., J. Comp. Neurol. 2014), annotated with the laminar origin of the projecting neurons, used to derive the hierarchy of visual areas. Edge properties: `sln`, the percentage of labelled neurons in the supragranular layers (SLN; high values indicate feedforward and low values feedback projections); `distance`, the white-matter distance between the two areas, in millimetres.
+- `distances`: the estimated white-matter distances, in millimetres (edge property `distance`), from every area to each of the 29 injected areas (Markov et al., PNAS 2013). This network contains all such pairs, whether or not the areas are connected, and is therefore a distance matrix rather than a connectivity network; in this file some areas are grouped differently (e.g. "INSULA", "TEMPORAL_POLE").
+
+All networks have the vertex property `name`, the name of the cortical area. The networks were obtained from the authors' Core-Nets data site via OpenConnectome. The data were obtained from the graph collection of the Open Connectome Project (now NeuroData), whose servers are offline, via the Internet Archive."""
+tags = ['Biological', 'Connectome', 'Weighted', 'Multigraph', 'Metadata']
+url = 'https://web.archive.org/web/20160420202242/http://openconnecto.me/graph-services/download/'
+citation = [('N. T. Markov et al., "A Weighted and Directed Interareal Connectivity Matrix for Macaque Cerebral Cortex." Cerebral Cortex 24(1), 17-36 (2014)', 'https://doi.org/10.1093/cercor/bhs270'),
+ ('N. T. Markov et al., "Anatomy of hierarchy: Feedforward and feedback pathways in macaque visual cortex." Journal of Comparative Neurology 522(1), 225-259 (2014)', 'https://doi.org/10.1002/cne.23458'),
+ ('N. T. Markov et al., "The role of long-range connections on the specificity of the macaque interareal cortical network." Proceedings of the National Academy of Sciences 110(13), 5187-5192 (2013)', 'https://doi.org/10.1073/pnas.1218972110')]
+icon_hash = ['56a85c8e26855e083a2f78c8', '56a85c8e26855e083a2f78c7', '56a85c8e26855e083a2f78c9']
+upstream_license = None
+# Internet Archive copies of the OpenConnectome graph files (see archived_urls)
+upstream_prefix = 'https://web.archive.org/web'
+files = [('rhesus_cerebral.cortex_1.graphml', 'flne', None),
+ ('rhesus_brain_2.graphml', 'sln', None),
+ ('rhesus_interareal.cortical.network_2.graphml', 'distances', None)]
+archived_urls = {
+ 'rhesus_cerebral.cortex_1.graphml':
+ 'https://web.archive.org/web/20160707132306id_/http://awesome.cs.jhu.edu/data/static/graphs/macaque/rhesus_cerebral.cortex_1.graphml',
+ 'rhesus_brain_2.graphml':
+ 'https://web.archive.org/web/20141016013057id_/http://openconnecto.me/data/public/graphs/macaque/rhesus_brain_2.graphml',
+ 'rhesus_interareal.cortical.network_2.graphml':
+ 'https://web.archive.org/web/20141016013107id_/http://openconnecto.me/data/public/graphs/macaque/rhesus_interareal.cortical.network_2.graphml',
+}
+
+def fetch_upstream(force=False):
+ # The OpenConnectome graph servers (openconnecto.me, awesome.cs.jhu.edu)
+ # are offline; the files are obtained from the Internet Archive, which
+ # is sometimes slow or refuses connections, hence the retries.
+ return fetch_archived_files(__name__.split(".")[-1], archived_urls, force,
+ tries=5, timeout=600)
+
+@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
+ g = load_oc_graph(name, fname)
+ if alt == "flne":
+ for k, n in [("FLNe", "flne"), ("NEURONS", "neurons"),
+ ("CASE", "case"), ("MONKEY", "monkey"),
+ ("STATUS", "status"), ("BIBLIOGRAPHY", "references")]:
+ g.ep[n] = g.ep[k]
+ del g.ep[k]
+ g.ep.neurons = g.ep.neurons.copy("int")
+ g.ep.case = g.ep.case.copy("int")
+ elif alt == "sln":
+ g.ep.sln = g.ep["SLN_perc"]
+ g.ep.distance = g.ep["Dist_mm"]
+ del g.ep["SLN_perc"]
+ del g.ep["Dist_mm"]
+ else:
+ g.ep.distance = g.ep.weight
+ del g.ep["weight"]
+ yield alt, g