Description Usage Arguments Details Value Examples
The function "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 PPIs |
This function requires the packages "quanteda".
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 gene A, gene B, and one or more of the keywords, separated by '|' |
kws |
Matched keywords from int_sentences, separated by '|' |
1 2 3 4 5 6 7 | ## Not run:
## identifiying sentences contiaing specific keywords
interaction_info <- getInteractionMatches(sentences c('interaction, association, binding'))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.