queryDB: Query DrugBank SQLite database.

Description Usage Arguments Value

View source: R/queries.R

Description

This function can be used to

1. get the entire drugbank dataframe

2. get all the drugbank ids

3. given drugbank ids, determine whether the drugs are FDA approved

4. given drugbank ids, get their targets ids (DrugBank_id, UniProt_id, symbol...).

Usage

1
queryDB(ids = NULL, type, db_path)

Arguments

ids

character vector, represents DrugBank IDs.

type

one of "getAll","getIDs","whichFDA","getTargets"

  • getAll: get the entire drugbank dataframe, argument ids is ignored

  • getIDs: get all the drugbank ids, argument ids is ignored

  • whichFDA: given drugbank ids, determine whether they are FDA approved

  • getTargets: given drugbank ids, get their targets ids (DrugBank_id, UniProt_id, symbol...).

db_path

Character(1), path to the DrugBank SQLite database generated from dbxml2df and df2SQLite function

Value

getAll: drugbank dataframe

getIDs: character vector of all the drugbank ids

whichFDA: logical vector

getTargets: data.frame containing DrugBank_id, UniProt_id, UniProt_name and gene_symbol of the targets of the query drugs


yduan004/drugbankR documentation built on Aug. 10, 2021, 5:21 p.m.