PPIfinder_getInteractionMatches: Protein-Protein Interaction Identifier Functions

Description Usage Arguments Details Value Examples

Description

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.

Usage

1

Arguments

data

a character vector of sentences separated by '|'

keywords

a list of keywords to identify PPIs

Details

This function requires the packages "quanteda".

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 gene A, gene B, and one or more of the keywords, separated by '|'

kws

Matched keywords from int_sentences, separated by '|'

Examples

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)

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