Description Usage Arguments Value Examples
Search for nodes by name (exact match or using regular expressions)
or which match supplied semantic types. Perform anti-matching by
setting match = FALSE
. Capitalization is ignored.
1 |
obj |
Either the SemMed graph or a node set ( |
pattern |
Regular expression used to find matches in node names |
names |
Character vector of exact node names |
semtypes |
Character vector of semantic types |
match |
If |
A vertex sequence of matching nodes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | data(g_mini)
find_nodes(g_mini, pattern = "cortisol")
find_nodes(g_mini, pattern = "cortisol$")
find_nodes(g_mini, pattern = "stress")
find_nodes(g_mini, pattern = "stress") %>%
find_nodes(pattern = "disorder", match = FALSE)
find_nodes(g_mini, names = "Serum cortisol")
find_nodes(g_mini, names = "Chronic Stress")
find_nodes(g_mini, semtypes = "dsyn")
find_nodes(g_mini, semtypes = c("dsyn", "fndg"))
## pattern and semtypes are combined via OR:
find_nodes(g_mini, pattern = "cortisol", semtypes = "horm")
## To make an AND query, chain find_nodes sequenctially:
find_nodes(g_mini, pattern = "cortisol") %>%
find_nodes(semtypes = "horm")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.