| subset_drugbank_dvobject | R Documentation |
Subset a DrugBank dvobject by a vector of DrugBank IDs
subset_drugbank_dvobject(dvobject, drug_ids)
dvobject |
The dvobject from 'parseDrugBank()'. |
drug_ids |
A character vector of 'drugbank_id' values to keep. |
Intelligently filters a DrugBank dvobject to retain only the data associated with a specified list of drugbank_ids. It correctly handles the deep, multi-level nested structure of the entire object, including the complex relationships within the 'cett' list.
A new, smaller dvobject with the same structure and attributes.
Other utility:
add_database_info(),
get_genes_for_phenotype(),
get_source_metadata(),
search_phenotypes(),
show_dvobject_metadata(),
subset_onsides_dvobject()
## Not run:
library(dbparser)
one_drug <- subset_drugbank_dvobject(dvobject = dbdataset::drugbank,
drug_ids = "DB00001")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.