History of macaque_visual_cortex
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/macaque_visual_cortex/__init__.py b/entries/macaque_visual_cortex/__init__.py
index 670df72..e2cc102 100644
--- a/entries/macaque_visual_cortex/__init__.py
+++ b/entries/macaque_visual_cortex/__init__.py
@@ -34,7 +34,7 @@ tags = ['Biological', 'Connectome', 'Unweighted']
url = 'https://sites.google.com/site/bctnet/datasets'
citation = [('D. J. Felleman, D. C. Van Essen, "Distributed hierarchical processing in the primate cerebral cortex." Cerebral Cortex 1(1), 1-47 (1991)', 'https://doi.org/10.1093/cercor/1.1.1'),
('M. Rubinov, O. Sporns, "Complex network measures of brain connectivity: Uses and interpretations." NeuroImage 52(3), 1059-1069 (2010)', 'https://doi.org/10.1016/j.neuroimage.2009.10.003')]
-icon_hash = '56a85c8e26855e083a2f7928'
+date_added = '2026-10-25'
upstream_license = None
# The file attachments of the Brain Connectivity Toolbox site were lost when
# the site was migrated; they are obtained from the Internet Archive.
[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/macaque_visual_cortex/__init__.py b/entries/macaque_visual_cortex/__init__.py
index 2dd09e3..670df72 100644
--- a/entries/macaque_visual_cortex/__init__.py
+++ b/entries/macaque_visual_cortex/__init__.py
@@ -29,7 +29,7 @@ These matrices were used e.g. by Sporns et al. (Cereb. Cortex 10, 127, 2000) and
The networks have the following properties:
-- `name`: the name of the cortical area."""
+- (Node) `name`: the name of the cortical area."""
tags = ['Biological', 'Connectome', 'Unweighted']
url = 'https://sites.google.com/site/bctnet/datasets'
citation = [('D. J. Felleman, D. C. Van Essen, "Distributed hierarchical processing in the primate cerebral cortex." Cerebral Cortex 1(1), 1-47 (1991)', 'https://doi.org/10.1093/cercor/1.1.1'),
[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_visual_cortex/__init__.py b/entries/macaque_visual_cortex/__init__.py
index 17bd12f..2dd09e3 100644
--- a/entries/macaque_visual_cortex/__init__.py
+++ b/entries/macaque_visual_cortex/__init__.py
@@ -56,7 +56,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: macaque_visual_cortex 4f0c48f
diff --git a/entries/macaque_visual_cortex/__init__.py b/entries/macaque_visual_cortex/__init__.py
new file mode 100644
index 0000000..17bd12f
--- /dev/null
+++ b/entries/macaque_visual_cortex/__init__.py
@@ -0,0 +1,72 @@
+#! /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 *
+from scipy.io import loadmat
+
+title = "Macaque visual cortex connectivity (Felleman-Van Essen, 1991)"
+description = """Directed networks of anatomical connections among the visual areas of the macaque monkey cerebral cortex, from the compilation of Felleman and Van Essen, as distributed with the Brain Connectivity Toolbox (contributed by O. Sporns). Felleman and Van Essen collated the results of anatomical tract-tracing studies published until 1991 into a matrix of corticocortical pathways between the areas of their parcellation of the macaque cortex. Nodes are cortical areas (e.g. "V1", "MT", "LIP", "FEF" or "46") and a directed edge $i\\to j$ indicates a reported axonal projection from area $i$ to area $j$ (an entry $a_{ij}=1$ of the source matrix, following the Brain Connectivity Toolbox convention).
+
+- `fve30`: 30 visual areas, including the frontal areas FEF and 46 associated with visual function; 311 connections.
+- `fve32`: as `fve30`, with the two additional parietal areas MIP and MDP; 315 connections (the toolbox documentation states 320).
+
+These matrices were used e.g. by Sporns et al. (Cereb. Cortex 10, 127, 2000) and Sporns and Kötter (PLoS Biol. 2, e369, 2004).
+
+The networks have the following properties:
+
+- `name`: the name of the cortical area."""
+tags = ['Biological', 'Connectome', 'Unweighted']
+url = 'https://sites.google.com/site/bctnet/datasets'
+citation = [('D. J. Felleman, D. C. Van Essen, "Distributed hierarchical processing in the primate cerebral cortex." Cerebral Cortex 1(1), 1-47 (1991)', 'https://doi.org/10.1093/cercor/1.1.1'),
+ ('M. Rubinov, O. Sporns, "Complex network measures of brain connectivity: Uses and interpretations." NeuroImage 52(3), 1059-1069 (2010)', 'https://doi.org/10.1016/j.neuroimage.2009.10.003')]
+icon_hash = '56a85c8e26855e083a2f7928'
+upstream_license = None
+# The file attachments of the Brain Connectivity Toolbox site were lost when
+# the site was migrated; they are obtained from the Internet Archive.
+upstream_prefix = 'https://web.archive.org/web/2020id_/https://sites.google.com/site/bctnet/Home/functions'
+files = [('fve30.mat', 'fve30', None),
+ ('fve32.mat', 'fve32', None)]
+archived_urls = {
+ 'fve30.mat':
+ 'https://web.archive.org/web/20201022115531id_/https://sites.google.com/site/bctnet/Home/functions/fve30.mat?attredirects=0',
+ 'fve32.mat':
+ 'https://web.archive.org/web/20201022115531id_/https://sites.google.com/site/bctnet/Home/functions/fve32.mat?attredirects=0'}
+
+def fetch_upstream(force=False):
+ # The Internet Archive URLs carry a query string, so the files are
+ # fetched from them directly.
+ return fetch_archived_files(__name__.split(".")[-1], archived_urls, 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", seekable=True) as f:
+ m = loadmat(f)
+ A = m["CIJ"]
+ g = Graph(directed=True)
+ g.add_vertex(A.shape[0])
+ i, j = numpy.nonzero(A)
+ g.add_edge_list(numpy.column_stack((i, j)))
+ g.vp.name = g.new_vp("string", vals=[str(s).strip() for s in m["Names"]])
+ yield alt, g