get_svg.Rdget_svg is a modified version of STRINGdb's get_png.
It returns a SVG image of a STRING network with the given identifiers.
get_svg( string_db, string_ids, required_score = NULL, network_flavor = c("evidence", "confidence", "actions"), file = NULL, payload_id = NULL )
| string_db | An instantiated STRINGdb reference class. See |
|---|---|
| string_ids | A vector of STRING IDs. |
| required_score | An integer. The minimum STRING combined score of the interactions. |
| network_flavor | One of "evidence", "confidence", "actions", specify the flavor of the network |
| file | Optional. Specify the file for the image. |
| payload_id | Optional. See Payload Mechanism in |
Return a XML document and a SVG file if file is specified.
# extract the most significant 200 genes hits <- example1_mapped$STRING_id[1:200] # save the XML document in a variable for downstream manipulation xml <- get_svg(string_db, hits) if (FALSE) { # print a SVG file get_svg(string_db, hits, file = "my_network.svg") }