get_edge_list_db: Retrieve edge list from database

Description Usage Arguments Details Value See Also Examples

View source: R/get_edge_list_db.R

Description

retrieves an edge list from the database with the provided list of target PMIDs.

Usage

1
get_edge_list_db(conMysql, pmids, tableName = "EdgeList")

Arguments

conMysql

a MySQL connection

pmids

list of target pmids used to search database.

tableName

string with the name of the table used to store the edge list, defaulting to 'EdgeList'

Details

'get_edge_list_db' will retrieve an edge list from database with the provided list of target PMIDs. An error is generated if the table does not exist in the database.

Value

returns the edge list as a data.frame

See Also

create_edge_list_table for edge list table structure

Examples

1
2
3
4
5
6
## Not run: 
# This will look for PMIDs in 'x' from the DB and get the Source and Target
x <- c(21876761, 311, 29463753, 21876726)
res <- get_edge_list_db(conMysql, x)

## End(Not run)

gdancik/pmc2nc documentation built on May 5, 2019, 7:09 a.m.