getInteractionMatches: Identifies user-defined keywords and sentences containing...

Description Usage Arguments Details Value Examples

Description

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.

Usage

1

Arguments

data

a character vector of sentences separated by '|'.

keywords

a list of keywords to identify protein-protein interactions.

Details

This function requires the quanteda library.

Value

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 '|'.

Examples

1
2
## identifiying sentences contiaing specific keywords
interaction_info <- getInteractionMatches(data, keywords)

andreysoares/nlpUtilityBelt documentation built on May 6, 2019, 8:57 p.m.