logo Netzschleuder network catalog, repository, and centrifuge

History of funcoup_cancer

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 by Tiago de Paula Peixoto 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/funcoup_cancer/__init__.py b/entries/funcoup_cancer/__init__.py
index e360931..b09014a 100644
--- a/entries/funcoup_cancer/__init__.py
+++ b/entries/funcoup_cancer/__init__.py
@@ -19,7 +19,7 @@
 from .. import *
 
 title = "Human functional gene coupling network (2014)"
-description = """A global network of functional couplings between human genes, used by S. K. Merid, D. Goranskaya and A. Alexeyenko for the network enrichment analysis of somatic mutations in glioblastoma and ovarian cancer genomes (named `merged6_and_wir1_HC2` by the authors). Nodes represent genes (or their protein products), and an undirected edge between two genes means that they are predicted or known to be functionally coupled, e.g. by physical interaction, membership in the same pathway or protein complex, or regulation. The network was built by merging a higher-confidence version (FClim_HC2) of the FunCoup network, which integrates diverse high-throughput evidence (e.g. protein interactions, co-expression, sub-cellular co-localization) from human and other eukaryotes via orthologs, with curated functional links from CORUM (protein complex membership), PhosphoSite (kinase-substrate pairs), KEGG (pathways and protein complexes) and MSigDB (pairs of genes regulated by the same transcription factor), and with a network of regulatory links reverse-engineered by the authors from cancer data (wir1). Among the networks benchmarked by the authors, this one best recovered known members of cancer-related gene sets. The types, origins and confidence of the links are not included in the distributed file. The network contains self-loops (genes coupled to themselves, as given in the source data).
+description = """A global network of functional couplings between human genes, used by S. K. Merid, D. Goranskaya and A. Alexeyenko for the network enrichment analysis of somatic mutations in glioblastoma and ovarian cancer genomes (named `merged6_and_wir1_HC2` by the authors). Nodes represent genes (or their protein products), and an undirected edge between two genes means that they are predicted or known to be functionally coupled, e.g. by physical interaction, membership in the same pathway or protein complex, or regulation. The network was built by merging a higher-confidence version (FClim_HC2) of the FunCoup network, which integrates diverse high-throughput evidence (e.g. protein interactions, co-expression, sub-cellular co-localization) from human and other eukaryotes via orthologs, with curated functional links from CORUM (protein complex membership), PhosphoSite (kinase-substrate pairs), KEGG (pathways and protein complexes) and MSigDB (pairs of genes regulated by the same transcription factor), and with a network of regulatory links reverse-engineered by the authors from cancer data (wir1). Among the networks benchmarked by the authors, this one best recovered known members of cancer-related gene sets. The types, origins and confidence of the links are not given in the data. The network contains self-loops (genes coupled to themselves, as given in the source data).
 
 The network has the following properties:
 
[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/funcoup_cancer/__init__.py b/entries/funcoup_cancer/__init__.py
index 6a2f198..e360931 100644
--- a/entries/funcoup_cancer/__init__.py
+++ b/entries/funcoup_cancer/__init__.py
@@ -29,7 +29,7 @@ The network has the following properties:
 tags = ['Biological', 'Protein interactions', 'Unweighted']
 url = 'https://web.archive.org/web/20240415205044/https://research.scilifelab.se/andrey_alexeyenko/downloads/test_data/merged6_and_wir1_HC2'
 citation = [('S. K. Merid, D. Goranskaya, A. Alexeyenko, "Distinguishing between driver and passenger mutations in individual cancer genomes by network enrichment analysis." BMC Bioinformatics 15, 308 (2014)', 'https://doi.org/10.1186/1471-2105-15-308')]
-icon_hash = '5ed9b76dc12b3c8702b4bd1e'
+date_added = '2026-10-25'
 upstream_license = None
 upstream_prefix = 'https://web.archive.org/web/20240415205044id_/https://research.scilifelab.se/andrey_alexeyenko/downloads/test_data'
 files = [('merged6_and_wir1_HC2', None, '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/funcoup_cancer/__init__.py b/entries/funcoup_cancer/__init__.py
index f1d1f02..6a2f198 100644
--- a/entries/funcoup_cancer/__init__.py
+++ b/entries/funcoup_cancer/__init__.py
@@ -23,7 +23,7 @@ description = """A global network of functional couplings between human genes, u
 
 The network has the following properties:
 
-- Nodes: `name`, the gene symbol, in lower case (as in the source data; the symbol of SEPT11 appears in the date-converted form "11-sep").[^icon]
+- (Node) `name`: the gene symbol, in lower case (as in the source data; the symbol of SEPT11 appears in the date-converted form "11-sep").[^icon].
 
 [^icon]: Description obtained in part from the [ICON](https://icon.colorado.edu) project."""
 tags = ['Biological', 'Protein interactions', 'Unweighted']
[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/funcoup_cancer/__init__.py b/entries/funcoup_cancer/__init__.py
index 91a3267..f1d1f02 100644
--- a/entries/funcoup_cancer/__init__.py
+++ b/entries/funcoup_cancer/__init__.py
@@ -42,7 +42,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: funcoup_cancer by Tiago de Paula Peixoto 6bb5782
diff --git a/entries/funcoup_cancer/__init__.py b/entries/funcoup_cancer/__init__.py
new file mode 100644
index 0000000..91a3267
--- /dev/null
+++ b/entries/funcoup_cancer/__init__.py
@@ -0,0 +1,54 @@
+#! /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 = "Human functional gene coupling network (2014)"
+description = """A global network of functional couplings between human genes, used by S. K. Merid, D. Goranskaya and A. Alexeyenko for the network enrichment analysis of somatic mutations in glioblastoma and ovarian cancer genomes (named `merged6_and_wir1_HC2` by the authors). Nodes represent genes (or their protein products), and an undirected edge between two genes means that they are predicted or known to be functionally coupled, e.g. by physical interaction, membership in the same pathway or protein complex, or regulation. The network was built by merging a higher-confidence version (FClim_HC2) of the FunCoup network, which integrates diverse high-throughput evidence (e.g. protein interactions, co-expression, sub-cellular co-localization) from human and other eukaryotes via orthologs, with curated functional links from CORUM (protein complex membership), PhosphoSite (kinase-substrate pairs), KEGG (pathways and protein complexes) and MSigDB (pairs of genes regulated by the same transcription factor), and with a network of regulatory links reverse-engineered by the authors from cancer data (wir1). Among the networks benchmarked by the authors, this one best recovered known members of cancer-related gene sets. The types, origins and confidence of the links are not included in the distributed file. The network contains self-loops (genes coupled to themselves, as given in the source data).
+
+The network has the following properties:
+
+- Nodes: `name`, the gene symbol, in lower case (as in the source data; the symbol of SEPT11 appears in the date-converted form "11-sep").[^icon]
+
+[^icon]: Description obtained in part from the [ICON](https://icon.colorado.edu) project."""
+tags = ['Biological', 'Protein interactions', 'Unweighted']
+url = 'https://web.archive.org/web/20240415205044/https://research.scilifelab.se/andrey_alexeyenko/downloads/test_data/merged6_and_wir1_HC2'
+citation = [('S. K. Merid, D. Goranskaya, A. Alexeyenko, "Distinguishing between driver and passenger mutations in individual cancer genomes by network enrichment analysis." BMC Bioinformatics 15, 308 (2014)', 'https://doi.org/10.1186/1471-2105-15-308')]
+icon_hash = '5ed9b76dc12b3c8702b4bd1e'
+upstream_license = None
+upstream_prefix = 'https://web.archive.org/web/20240415205044id_/https://research.scilifelab.se/andrey_alexeyenko/downloads/test_data'
+files = [('merged6_and_wir1_HC2', None, 'csv')]
+
+def fetch_upstream(force=False):
+    return retry_download(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 open_upstream_file(name, fnames, "r") as f:
+            edges = [line.rstrip("\n").split("\t") for line in f if line.strip()]
+        g = Graph(directed=False)
+        g.vp.name = g.add_edge_list(edges, hashed=True, hash_type="string")
+        yield alt, g