Rewrite edge endpoints back into the queried symbol space
Source:R/string.R
string_reconcile_edges.RdPure, and it exists because of a real and quiet failure.
Arguments
- edges
An edge tibble from
string_parse_network().- id_map
An identifier map from
string_parse_ids(), orNULL.
Details
STRING's canonical preferredName lags HGNC. Query SEPTIN9 and the edges
come back naming SEPT9, and the network endpoint does not echo the
query term. A caller matching edges against the symbols it asked about
therefore finds nothing for that gene and records it as having no partners,
which is indistinguishable from a real isolate.
Passing the map from string_map_ids() through here translates the endpoints
back. An endpoint with no mapping is left alone, and an empty map leaves the
edges untouched, so reconciliation can never turn a good answer into a worse
one.