Skip to contents

Interaction partners for one gene

Usage

string_partners(symbol, species = STRING_HUMAN, limit = 25, ...)

Arguments

symbol

A gene symbol.

species

An NCBI taxon id. Defaults to human.

limit

How many partners to return.

...

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

Value

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

On STRING's content type

STRING serves JSON as text/json rather than application/json. A client that trusts the content-type header rejects a perfectly good body. biohttp parses with check_type = FALSE, so this works, but it is the reason not to "tidy" that up.

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_partners("TP53"))
#> # A tibble: 25 × 6
#>    partner score experimental database coexpression textmining
#>    <chr>   <dbl>        <dbl>    <dbl>        <dbl>      <dbl>
#>  1 SIRT1   0.999        0.999     0.9         0          0.886
#>  2 MAPK1   0.999        0.999     0.9         0.052      0.68 
#>  3 AURKA   0.999        0.999     0.75        0.075      0.679
#>  4 CSNK2A1 0.999        0.999     0.5         0.075      0.282
#>  5 STUB1   0.999        0.999     0           0.063      0.64 
#>  6 DDX5    0.999        0.999     0           0          0.588
#>  7 MAPK14  0.999        0.999     0.9         0.052      0.639
#>  8 TBP     0.999        0.999     0.4         0.064      0.578
#>  9 CUL9    0.999        0.999     0           0          0.331
#> 10 RPA1    0.999        0.999     0.4         0.1        0.394
#> # ℹ 15 more rows
# }