methods-Relations: Relations methods

Description Usage Arguments Value Examples

Description

Methods to work with Relations. getRelations gets a Relations. Contains the papers that relate the given entities with the relating sentences.

Usage

1
2
3
4
5
6
"methods-Relations"(papers, entities)

getRelations(papers, entities)

## S4 method for signature 'list,character'
getRelations(papers, entities)

Arguments

papers

a list of Paper objects to search for relations.

entities

a character vector of entities to query for.

Value

Relations objects.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Create a PaperDownloader to query for two entities relations
entities <- c('terminal differentiation', 'basal-like');
pprDldr <- PaperDownloader(entities=entities, papersDir='/tmp/pmcERR/');

## Get the number of papers possible to download, updating the pprDldr
pprDldr <- getPapersIds(pprDldr);

## Download the first 3 papers
pprDldr <- downloadPapers(pprDldr, n=3);

## Get the first 3 papers
papers <- getPapers(pprDldr, n=3);

relations <- getRelations(papers, entities);

jcrodriguez1989/pmcERR documentation built on May 20, 2019, 10:20 p.m.