Description Usage Arguments Details Value Examples
getInteractionMatches
searches among each sentence that contains two proteins using a user provided list of keywords for matches. If a match is found, the sentences containing the keywords and the matched keywords are returned as a nested list.
1 | getInteractionMatches(data, keywords)
|
data |
a character vector of sentences separated by '|'. |
keywords |
a list of keywords to identify protein-protein interactions. |
This function requires the quanteda
library.
The function getInteractionMatches
returns a nested list with two lists: sentences containing keywords, keywords. If matched sentences do not contain any of the provided keywords the cell will contain "No keywords found in sentence" and or "No keywords". The nested list will contain the following sub-lists: sents-Sentences from abstract containing a matched symbol and one or more of the keywords, separated by '|'; kws-Matched keywords from int_sentences, separated by '|'.
1 2 | ## identifiying sentences contiaing specific keywords
interaction_info <- getInteractionMatches(data, keywords)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.