Downloads and processes the STRING protein-protein interaction network, converting it to a simplified igraph object. The function downloads the network from STRING database, filters interactions by confidence score, converts STRING IDs to ENTREZ IDs, and returns the largest connected component as an undirected graph.
get_string_network(
organism = "9606",
score_threshold = 700,
use_default = TRUE
)An igraph object representing the largest connected component of the filtered STRING network, with the following properties:
Undirected edges
No self-loops
No multiple edges
Edge weights (1000 - combined_score)
Vertex names as ENTREZ IDs
Character string specifying the NCBI taxonomy identifier. Default is "9606" (Homo sapiens).
Numeric value between 0 and 1000 specifying the minimum combined score threshold for including interactions. Default is 700.
it will return the default network (9606 and score of 700)
The function performs the following steps:
Downloads protein interactions from STRING database
Filters interactions based on combined score
Downloads and processes STRING ID to ENTREZ ID mappings
Creates an igraph object with filtered interactions
Removes self-loops and multiple edges
Extracts the largest connected component