subset_drugbank_dvobject: Subset a DrugBank dvobject by a vector of DrugBank IDs
Description
Subset a DrugBank dvobject by a vector of DrugBank IDs
Usage
subset_drugbank_dvobject(dvobject, drug_ids)
Value
A new, smaller dvobject with the same structure and attributes.
Arguments
dvobject
The dvobject from `parseDrugBank()`.
drug_ids
A character vector of `drugbank_id` values to keep.
Details
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.
See Also
Other utility:
add_database_info(),
get_genes_for_phenotype(),
get_source_metadata(),
search_phenotypes(),
show_dvobject_metadata(),
subset_onsides_dvobject()