Skip to contents

Maps each queried symbol to STRING's own preferredName. Needed to interpret network edges; see string_reconcile_edges().

Usage

string_map_ids(symbols, species = STRING_HUMAN, ...)

Arguments

symbols

Gene symbols.

species

An NCBI taxon id. Defaults to human.

...

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

Value

A biohttp envelope whose data is the tibble described in string_parse_ids().

References

Szklarczyk et al. (2023). The STRING database in 2023: protein-protein association networks and functional enrichment analyses for any sequenced genome of interest. Nucleic Acids Research 51(D1), D638-D646. doi:10.1093/nar/gkac1000

Service documentation: https://string-db.org/

Examples

# \donttest{
biohttp::body_or_null(string_map_ids(c("SEPTIN9", "TP53")))
#> # A tibble: 2 × 3
#>   query   preferred string_id           
#>   <chr>   <chr>     <chr>               
#> 1 SEPTIN9 SEPTIN9   9606.ENSP00000391249
#> 2 TP53    TP53      9606.ENSP00000269305
# }