logo Netzschleuder network catalog, repository, and centrifuge

History of tumor_virus_host

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/tumor_virus_host/__init__.py b/entries/tumor_virus_host/__init__.py
index f0516d4..727f4d5 100644
--- a/entries/tumor_virus_host/__init__.py
+++ b/entries/tumor_virus_host/__init__.py
@@ -30,7 +30,7 @@ The network has the following properties:
 tags = ['Biological', 'Protein interactions', 'Unweighted', 'Metadata']
 url = 'https://web.archive.org/web/2017/http://interactome.dfci.harvard.edu/V_hostome/index.php?page=download'
 citation = [('O. Rozenblatt-Rosen, R. C. Deo, M. Padi, G. Adelmant, M. A. Calderwood, T. Rolland, et al., "Interpreting cancer genomes using systematic host network perturbations by tumour virus proteins." Nature 487(7408), 491-495 (2012)', 'https://doi.org/10.1038/nature11288')]
-icon_hash = '56a85c8e26855e083a2f794a'
+date_added = '2026-10-25'
 upstream_license = None
 # The CCSB site is offline; the file is obtained from the Internet Archive.
 upstream_prefix = 'https://web.archive.org/web/2017id_/http://interactome.dfci.harvard.edu:80/V_hostome/docs'
[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/tumor_virus_host/__init__.py b/entries/tumor_virus_host/__init__.py
index 25a335a..f0516d4 100644
--- a/entries/tumor_virus_host/__init__.py
+++ b/entries/tumor_virus_host/__init__.py
@@ -24,9 +24,9 @@ description = """A bipartite network of binary protein-protein interactions betw
 
 The network has the following properties:
 
-- `is_viral`: whether the node is a viral protein (otherwise it is a human protein).
-- `name`: the name of the viral protein, as virus and protein (e.g. "EBV-EBNA1", "HPV16-E6"), or the gene symbol of the human protein.
-- `entrez_id`: the Entrez Gene ID of the human protein (-1 for viral proteins)."""
+- (Node) `is_viral`: whether the node is a viral protein (otherwise it is a human protein).
+- (Node) `name`: the name of the viral protein, as virus and protein (e.g. "EBV-EBNA1", "HPV16-E6"), or the gene symbol of the human protein.
+- (Node) `entrez_id`: the Entrez Gene ID of the human protein (-1 for viral proteins)."""
 tags = ['Biological', 'Protein interactions', 'Unweighted', 'Metadata']
 url = 'https://web.archive.org/web/2017/http://interactome.dfci.harvard.edu/V_hostome/index.php?page=download'
 citation = [('O. Rozenblatt-Rosen, R. C. Deo, M. Padi, G. Adelmant, M. A. Calderwood, T. Rolland, et al., "Interpreting cancer genomes using systematic host network perturbations by tumour virus proteins." Nature 487(7408), 491-495 (2012)', 'https://doi.org/10.1038/nature11288')]
[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/tumor_virus_host/__init__.py b/entries/tumor_virus_host/__init__.py
index 61d269b..25a335a 100644
--- a/entries/tumor_virus_host/__init__.py
+++ b/entries/tumor_virus_host/__init__.py
@@ -46,7 +46,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 by Tiago de Paula Peixoto 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/tumor_virus_host/__init__.py b/entries/tumor_virus_host/__init__.py
index b142600..61d269b 100644
--- a/entries/tumor_virus_host/__init__.py
+++ b/entries/tumor_virus_host/__init__.py
@@ -20,7 +20,7 @@ from .. import *
 import io
 
 title = "Tumour virus-human protein interactions (2012)"
-description = """A bipartite network of binary protein-protein interactions between proteins of DNA tumour viruses and human proteins, from Rozenblatt-Rosen et al. (2012), as distributed by the Center for Cancer Systems Biology (CCSB, Dana-Farber Cancer Institute). Open reading frames of viral proteins (from Epstein-Barr virus, adenovirus 5, polyomavirus SV40, and the human papillomaviruses HPV5, HPV6b, HPV8, HPV11, HPV16, HPV18 and HPV33) were screened by yeast two-hybrid (Y2H) assays against a library of human open reading frames (the human ORFeome). Nodes are viral and human proteins, and an undirected edge connects a viral protein to a human protein with which it interacts (454 interactions between 53 viral and 307 human proteins).
+description = """A bipartite network of binary protein-protein interactions between proteins of DNA tumor viruses and human proteins, from Rozenblatt-Rosen et al. (2012), as distributed by the Center for Cancer Systems Biology (CCSB, Dana-Farber Cancer Institute). Open reading frames of viral proteins (from Epstein-Barr virus, adenovirus 5, polyomavirus SV40, and the human papillomaviruses HPV5, HPV6b, HPV8, HPV11, HPV16, HPV18 and HPV33) were screened by yeast two-hybrid (Y2H) assays against a library of human open reading frames (the human ORFeome). Nodes are viral and human proteins, and an undirected edge connects a viral protein to a human protein with which it interacts (454 interactions between 53 viral and 307 human proteins).
 
 The network has the following properties:
 
[entries] New entry: tumor_virus_host by Tiago de Paula Peixoto ca90a73
diff --git a/entries/tumor_virus_host/__init__.py b/entries/tumor_virus_host/__init__.py
new file mode 100644
index 0000000..b142600
--- /dev/null
+++ b/entries/tumor_virus_host/__init__.py
@@ -0,0 +1,71 @@
+#! /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 *
+import io
+
+title = "Tumour virus-human protein interactions (2012)"
+description = """A bipartite network of binary protein-protein interactions between proteins of DNA tumour viruses and human proteins, from Rozenblatt-Rosen et al. (2012), as distributed by the Center for Cancer Systems Biology (CCSB, Dana-Farber Cancer Institute). Open reading frames of viral proteins (from Epstein-Barr virus, adenovirus 5, polyomavirus SV40, and the human papillomaviruses HPV5, HPV6b, HPV8, HPV11, HPV16, HPV18 and HPV33) were screened by yeast two-hybrid (Y2H) assays against a library of human open reading frames (the human ORFeome). Nodes are viral and human proteins, and an undirected edge connects a viral protein to a human protein with which it interacts (454 interactions between 53 viral and 307 human proteins).
+
+The network has the following properties:
+
+- `is_viral`: whether the node is a viral protein (otherwise it is a human protein).
+- `name`: the name of the viral protein, as virus and protein (e.g. "EBV-EBNA1", "HPV16-E6"), or the gene symbol of the human protein.
+- `entrez_id`: the Entrez Gene ID of the human protein (-1 for viral proteins)."""
+tags = ['Biological', 'Protein interactions', 'Unweighted', 'Metadata']
+url = 'https://web.archive.org/web/2017/http://interactome.dfci.harvard.edu/V_hostome/index.php?page=download'
+citation = [('O. Rozenblatt-Rosen, R. C. Deo, M. Padi, G. Adelmant, M. A. Calderwood, T. Rolland, et al., "Interpreting cancer genomes using systematic host network perturbations by tumour virus proteins." Nature 487(7408), 491-495 (2012)', 'https://doi.org/10.1038/nature11288')]
+icon_hash = '56a85c8e26855e083a2f794a'
+upstream_license = None
+# The CCSB site is offline; the file is obtained from the Internet Archive.
+upstream_prefix = 'https://web.archive.org/web/2017id_/http://interactome.dfci.harvard.edu:80/V_hostome/docs'
+files = [('SupplementaryTable2.xlsx', None, None)]
+archived_urls = {'SupplementaryTable2.xlsx':
+                 'https://web.archive.org/web/20170421084633id_/http://interactome.dfci.harvard.edu:80/V_hostome/docs/SupplementaryTable2.xlsx'}
+
+def fetch_upstream(force=False):
+    return fetch_archived_files(__name__.split(".")[-1], archived_urls, force,
+                                tries=4)
+
+@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:
+            wb = load_workbook(io.BytesIO(f.read()), read_only=True, data_only=True)
+            rows = list(wb.worksheets[0].iter_rows(values_only=True))
+        # Columns: CEGS Protein Name (viral), Human Entrez Gene ID, Human Gene
+        # Symbol
+        rows = [r for r in rows[1:] if r[0] is not None]
+        viral = sorted(set(r[0] for r in rows))
+        human = sorted(set((int(r[1]), r[2]) for r in rows))
+        vidx = {v: i for i, v in enumerate(viral)}
+        hidx = {h[0]: len(viral) + i for i, h in enumerate(human)}
+        g = Graph(directed=False)
+        g.add_vertex(len(viral) + len(human))
+        g.add_edge_list([(vidx[r[0]], hidx[int(r[1])]) for r in rows])
+        g.vp.is_viral = g.new_vp("bool")
+        g.vp.is_viral.a[:len(viral)] = 1
+        g.vp.name = g.new_vp("string", vals=viral + [h[1] for h in human])
+        g.vp.entrez_id = g.new_vp("int", vals=[-1] * len(viral) + [h[0] for h in human])
+        yield alt, g