Skip to contents

This function will retrieve Sting interaction pairs among your input protein ids, with the combined score and separate score for each STRING score channels. You can further expand your network to a defined size by providing "add_node" parameter.


  species = NULL,
  required_score = NULL,
  add_nodes = NULL,
  network_type = "functional",



Your protein IDs. It is strongly recommended to supply STRING IDs. See rba_string_map_ids for more information.


Numeric: NCBI Taxonomy identifier; Human Taxonomy ID is 9606. (Recommended, but optional if your input is less than 100 IDs.)


Numeric: A minimum of interaction score for an interaction to be included in the image. if not supplied, the threshold will be applied by STRING Based in the network. (low Confidence = 150, Medium Confidence = 400, High Confidence = 700, Highest confidence = 900)


Numeric: Number of neighboring proteins to be added to the network. If none supplied by the user, this argument value will depend on the number of supplied "ids" argument:

  1. Single id: add_node will be set to 10 to retrieve the interaction neighborhood of you input protein.

  2. Multiple ids: add_node will be set to 0, thus the output will be the interactions between your input proteins.


should be one of:

  • "functional": (default) The edge's indicate both physical and functional associations.

  • "physical": The edges indicate that two proteins have a physical interaction or are parts of a complex.


rbioapi option(s). See rba_options's arguments manual for more information on available options.


A data frame which each row is a network interaction and the columns contains interactor information and interaction scores:

  • stringId_A: STRING identifier (protein A)

  • stringId_B:STRING identifier (protein B)

  • preferredName_A: common protein name (protein A)

  • preferredName_B: common protein name (protein B)

  • ncbiTaxonId: NCBI taxon identifier

  • score: combined score

  • nscore: gene neighborhood score

  • fscore: gene fusion score

  • pscore: phylogenetic profile score

  • ascore: co-expression score

  • escore: experimental score

  • dscore: database score

  • tscore: textmining score


Note that this function will return interactions between your set of supplied proteins, or at most, expand the interaction network by the given parameters. TO retrieve a list of all possible interacting proteins with your given input, see rba_string_interaction_partners.

Corresponding API Resources

"POST[output-format]/network?identifiers= [your_identifiers]&[optional_parameters]"


  • Damian Szklarczyk, Annika L Gable, Katerina C Nastou, David Lyon, Rebecca Kirsch, Sampo Pyysalo, Nadezhda T Doncheva, Marc Legeay, Tao Fang, Peer Bork, Lars J Jensen, Christian von Mering, The STRING database in 2021: customizable protein–protein networks, and functional characterization of user-uploaded gene/measurement sets, Nucleic Acids Research, Volume 49, Issue D1, 8 January 2021, Pages D605–D612,

  • STRING API Documentation

  • Citations note on STRING website


# \donttest{
rba_string_interactions_network(ids = c("9606.ENSP00000269305",
    network_type = "functional")
# }
# \donttest{
rba_string_interactions_network(ids = c("9606.ENSP00000269305",
    species = 9606,
    add_nodes = 10)
# }