extractIds {paxtoolsr} | R Documentation |
Extract IDs from an Extended SIF
extractIds(nodes, participantType = "ProteinReference", idType = "hgnc symbol")
nodes |
extended SIF nodes entries as a data.table (from convertToDT) |
participantType |
a vector of types of participants to search; useful to only search protein (ProteinReference) or small molecule (SmallMoleculeReference) related entries. |
idType |
the type of ID to search for; case-insensitive |
IMPORTANT: Only the first matching ID will be returned. In some cases, multiple IDs will exist.
a named vector of the first matches for the given ID type
tmp <- readSifnx(system.file("extdata", "test_sifnx.txt", package="paxtoolsr")) results <- extractIds(tmp$nodes)