History of mosquito_ppi
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/mosquito_ppi/__init__.py b/entries/mosquito_ppi/__init__.py
index 2d4e677..6d93907 100644
--- a/entries/mosquito_ppi/__init__.py
+++ b/entries/mosquito_ppi/__init__.py
@@ -30,7 +30,7 @@ tags = ['Biological', 'Protein interactions', 'Weighted', 'Metadata']
url = ['https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-11-380',
'https://europepmc.org/article/PMC/PMC3091628']
citation = [('X. Guo, Y. Xu, G. Bian, A. D. Pike, Y. Xie, Z. Xi, "Response of the mosquito protein interaction network to dengue infection." BMC Genomics 11, 380 (2010)', 'https://doi.org/10.1186/1471-2164-11-380')]
-icon_hash = '5dc0f9a148da354f03d3a239'
+date_added = '2026-10-25'
upstream_license = ('Creative Commons Attribution 2.0 (CC BY 2.0)', 'https://creativecommons.org/licenses/by/2.0/')
# The publisher's and PMC's file servers refuse automated downloads, so the
# supplementary files are obtained from the Europe PMC web service (as a zip
[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/mosquito_ppi/__init__.py b/entries/mosquito_ppi/__init__.py
index 4b42e38..2d4e677 100644
--- a/entries/mosquito_ppi/__init__.py
+++ b/entries/mosquito_ppi/__init__.py
@@ -23,9 +23,9 @@ description = """A network of predicted protein-protein interactions of the yell
The network has the following properties:
-- `name`: the VectorBase gene identifier of the protein (e.g. "AAEL010168").
-- `confidence`: the confidence score of the predicted interaction, between 0 and 1 (average 0.32).
-- `origin`: the model organism(s) from which the interaction was transferred ("yeast", "fly", "worm", or combinations such as "yeast/fly")."""
+- (Node) `name`: the VectorBase gene identifier of the protein (e.g. "AAEL010168").
+- (Edge) `confidence`: the confidence score of the predicted interaction, between 0 and 1 (average 0.32).
+- (Edge) `origin`: the model organism(s) from which the interaction was transferred ("yeast", "fly", "worm", or combinations such as "yeast/fly")."""
tags = ['Biological', 'Protein interactions', 'Weighted', 'Metadata']
url = ['https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-11-380',
'https://europepmc.org/article/PMC/PMC3091628']
[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/mosquito_ppi/__init__.py b/entries/mosquito_ppi/__init__.py
index 964ed8d..4b42e38 100644
--- a/entries/mosquito_ppi/__init__.py
+++ b/entries/mosquito_ppi/__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] New entry: mosquito_ppi e0e084d
diff --git a/entries/mosquito_ppi/__init__.py b/entries/mosquito_ppi/__init__.py
new file mode 100644
index 0000000..964ed8d
--- /dev/null
+++ b/entries/mosquito_ppi/__init__.py
@@ -0,0 +1,67 @@
+#! /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 = "Mosquito predicted protein interactions (2010)"
+description = """A network of predicted protein-protein interactions of the yellow fever mosquito *Aedes aegypti*, the main vector of dengue virus, from Guo et al. The interactions were predicted with the interolog method: experimentally determined interactions in three model organisms, the yeast *S. cerevisiae* (47,783 interactions from co-immunoprecipitation and yeast two-hybrid screens), the fruit fly *D. melanogaster* (20,405 two-hybrid interactions) and the nematode *C. elegans* (4,736 literature-mined and two-hybrid interactions), were transferred to the mosquito proteins orthologous to the interacting proteins. Nodes are mosquito proteins (genes), and an undirected edge connects two proteins predicted to interact, weighted by the confidence of the prediction. The confidence scores combine the confidence of the original interaction in the model organism (estimated from statistical and topological predictors) with the InParanoid orthology score. The network has 64,449 predicted interactions among 6,263 proteins; 316 of the edges are self-loops (proteins predicted to interact with themselves).
+
+The network has the following properties:
+
+- `name`: the VectorBase gene identifier of the protein (e.g. "AAEL010168").
+- `confidence`: the confidence score of the predicted interaction, between 0 and 1 (average 0.32).
+- `origin`: the model organism(s) from which the interaction was transferred ("yeast", "fly", "worm", or combinations such as "yeast/fly")."""
+tags = ['Biological', 'Protein interactions', 'Weighted', 'Metadata']
+url = ['https://bmcgenomics.biomedcentral.com/articles/10.1186/1471-2164-11-380',
+ 'https://europepmc.org/article/PMC/PMC3091628']
+citation = [('X. Guo, Y. Xu, G. Bian, A. D. Pike, Y. Xie, Z. Xi, "Response of the mosquito protein interaction network to dengue infection." BMC Genomics 11, 380 (2010)', 'https://doi.org/10.1186/1471-2164-11-380')]
+icon_hash = '5dc0f9a148da354f03d3a239'
+upstream_license = ('Creative Commons Attribution 2.0 (CC BY 2.0)', 'https://creativecommons.org/licenses/by/2.0/')
+# The publisher's and PMC's file servers refuse automated downloads, so the
+# supplementary files are obtained from the Europe PMC web service (as a zip
+# archive).
+upstream_prefix = 'https://www.ebi.ac.uk/europepmc/webservices/rest/PMC3091628'
+files = [('supplementaryFiles:zip:1471-2164-11-380-S1.XLS', None, None)]
+
+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 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:
+ sheets = read_xls(f)
+ rows = list(sheets.values())[0]
+ # Title line, an empty line, and the header (Gene1, Gene2,
+ # Confidence Score, Origin)
+ i0 = [i for i, r in enumerate(rows) if r[0] == "Gene1"][0] + 1
+ edges = [(cell_str(r[0]), cell_str(r[1]), float(r[2]), cell_str(r[3]))
+ for r in rows[i0:] if r[0] is not None]
+ g = Graph(directed=False)
+ g.ep.confidence = g.new_ep("double")
+ g.ep.origin = g.new_ep("string")
+ g.vp.name = g.add_edge_list(edges, hashed=True, hash_type="string",
+ eprops=[g.ep.confidence, g.ep.origin])
+ yield alt, g