Skip to contents

High-confidence edges among the genes you asked about, with the endpoints reconciled back to your symbols.

Usage

string_network(
  symbols,
  species = STRING_HUMAN,
  required_score = STRING_MIN_SCORE,
  reconcile = TRUE,
  ...
)

Arguments

symbols

Gene symbols. At least two, since one gene has no network.

species

An NCBI taxon id. Defaults to human.

required_score

STRING's 0-1000 combined-score threshold.

reconcile

Whether to fetch the identifier map and translate edge endpoints back into your symbols. Costs one extra request and is skipped automatically when there are no edges to translate.

...

Passed to biohttp::get_json(), for example throttle.

Value

A biohttp envelope whose data is a list of edges (see string_parse_network()), queried, n_query, truncated, and n_dropped.

Knowing what was asked

The result carries queried, the exact symbol set STRING was asked about after the 500-identifier cap, plus truncated and n_dropped. That is what lets a caller tell a gene measured to have no partners from a gene that was never sent. Reporting the second as the first would invent a negative result.

Examples

if (FALSE) { # \dontrun{
res <- string_network(c("TP53", "NF1", "EGFR"))
biohttp::body_or_null(res)$edges
} # }