extractIds {paxtoolsr}R Documentation

Extract IDs from an Extended SIF

Description

Extract IDs from an Extended SIF

Usage

extractIds(nodes, participantType = "ProteinReference",
  idType = "hgnc symbol")

Arguments

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

Details

IMPORTANT: Only the first matching ID will be returned. In some cases, multiple IDs will exist.

Value

a named vector of the first matches for the given ID type

Examples

tmp <- readSifnx(system.file("extdata", "test_sifnx.txt", package="paxtoolsr"))
results <- extractIds(tmp$nodes)


[Package paxtoolsr version 1.14.0 Index]