Query protein-protein and gene interaction databases (STRING, BioGRID, IntAct, SIGNOR, Reactome, HuRI, HuMAP, OmniPath). Encodes the decision matrix (which resource for which question), STRING v12 channel semantics and confidence tiers, SIGNOR as the only major signed/directed signaling resource, OmniPath as the modern meta-database, BioGRID's HT-vs-LT distinction, per-resource license constraints (commercial restrictions on ConsensusPathDB and PhosphoSitePlus), and the STRING version-pinning trap (v11.5 deprecated 2023).
pip install requests pandas networkx
# Optional:
pip install omnipath # OmniPath Python client (cleaner than raw REST)
# R alternatives: STRINGdb, OmnipathR (Bioconductor)
BioGRID requires a free API key from https://webservice.thebiogrid.org/. All other listed resources are key-free.
"I want only physically interacting proteins for a 10-gene set, publication-grade. Don't use STRING's combined score (which mixes textmining). Use IntAct or BioGRID filtered to LT physical systems (Affinity Capture-MS, Two-hybrid, Reconstituted Complex)."
"Get STRING v12 interactions for my gene list at score 700. Return the full per-channel breakdown (escore, dscore, tscore, ascore, etc.) so I can see whether each edge is supported by experiments vs textmining vs coexpression."
"I need signed, directed signaling for a TP53 pathway analysis. STRING and BioGRID won't do -- they're undirected. Use SIGNOR, which has direction, effect (up/down-regulates), and mechanism (phosphorylation, etc.)."
"Build a union network across STRING (high confidence), OmniPath, and BioGRID LT physical. Track sources per edge; flag edges supported by multiple resources as highest confidence."
"I'm building a commercial product. Query OmniPath with license=commercial to filter to commercially-permissive sources only. Audit each source's license before adding to the pipeline."
"Resolve gene symbols to UniProt accessions before querying. MARCH1 was renamed to MARCHF1 in 2020 by HGNC. Some interaction resources updated; some haven't."
caller_identity and pin to v12 URL; pick confidence threshold from the use case (700+ for publication).THROUGHPUT='Low Throughput' and physical experimental systems for high-quality calls.sources and references per edge for provenance.version-12-0.string-db.org/api as of 2024. Older version-11-5 URLs were deprecated 2023.caller_identity is requested for usage attribution and rate-limit allocation; non-compliant clients get throttled first.escore (experiments channel) for physical-only.THROUGHPUT flag is the most important quality filter -- LT (low-throughput) is curated and high-confidence; HT (high-throughput screens) has higher FP rates.nx.DiGraph not nx.Graph to preserve direction.