Every read takes a species and most take required_score, so the same protein set can produce very different networks depending on the confidence cut — that threshold belongs in whatever you write up, not just in the call. get_network_image and get_enrichment_figure return image URLs rather than bytes, with svg, highres and download_image deciding the form, which keeps asking for a picture cheap in context. get_functional_enrichment is the one that accepts background_identifiers, and supplying it is the difference between enrichment against the whole genome and enrichment against the set you actually assayed.
A STRING database client with 11 tools covering identifier mapping, interaction networks and partners, functional annotation and enrichment, homology, and the rendered network and enrichment figures.
- map_identifiers resolves protein identifiers to STRING IDs for a species, which is the form the other tools expect.
- get_network_interactions returns interaction edges for a protein set, filtered by network_type and required_score, with add_nodes to widen the network beyond what you named.
- get_interaction_partners returns the partners of given proteins under the same score and network-type filters.
- get_functional_enrichment runs GO and pathway enrichment over a protein set, optionally against a background set you supply through background_identifiers.
- get_functional_annotation returns all functional annotations for proteins, with allow_pubmed and only_pubmed controlling the literature side.
- get_ppi_enrichment returns protein-protein interaction enrichment statistics for a set.
- Homology: get_homology within a species, and get_homology_best for the best matches against a second species.
- Figures as URLs: get_network_image with network_flavor, node colouring, svg and highres, and get_enrichment_figure with a category, colour palette, axis choice and similarity grouping.
- get_version_info returns the STRING database version behind every answer.
Nothing — no account, no key.
One command — pip install string-mcp
