get_net_app | R Documentation |
Function to get the network from specific proteins. This function is totally based on the function plot_network from the STRINGdb package, but it now return the plot (using ggdraw) or return an interactive image (using plotly).
get_net_app(
string_ids,
payload_id = NULL,
required_score = NULL,
inter = FALSE,
add_link = TRUE,
network_flavor = "evidence",
add_summary = TRUE
)
string_ids |
The STRING ids of the proteins you want to plot the network |
payload_id |
An identifier of payload data on the STRING server (see method post_payload for additional information) |
required_score |
A threshold on the score that overrides the default score_threshold, that we use only for the picture |
inter |
A logical to tell if you want to return an interactive image with plotly |
add_link |
Whether you want to generate and add a short link to the relative page in STRING. As default this option is active but we suggest to deactivate it in case one is generating many images (e.g. in a loop). Deactivating this option avoids to generate and store a lot of short-urls on our server. |
network_flavor |
Specify the flavor of the network ("evidence", "confidence" or "actions". default "evidence"). |
add_summary |
Parameter to specify whether you want to add a summary text to the picture. This summary includes a p-value and the number of proteins/interactions. |
The network
STRINGdb
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.