A description of the hierarchical chemical classification of the drug; imported from ClassyFire.
1 2 3 4 5 6 7
boolean, save table in database if true.
boolean, save csv version of parsed tibble if true
location to save csv files into it, default is current location, save_csv must be true
override existing csv, if any, in case it is true in the new parse operation
DBI connection object that holds a connection to
user defined database. If
a tibble with 15 variables:
Other identifiers that may be associated with the drug
Either small molecule, or biotech. Biotech is used for any drug that is derived from living systems or organisms, usually composed of high molecular weight mixtures of protein, while small molecule describes a low molecular weight organic compound.
Date that this drug was first added to DrugBank.
Denotes when this drug was last updated in DrugBank.
Descriptions of drug chemical properties, history and regulatory status.
The Chemical Abstracts Service (CAS) registry number assigned to the drug.
Unique Ingredient Identifier (UNII) of this drug.
The weighted average of the isotopic masses of the drug
One of solid, liquid, or gas
The mass of the most abundant isotope of the drug
Citation for synthesis of the drug molecule.
Contains a URL for accessing the uploaded United States Food and Drug Administration (FDA) Monograph for this drug.
Contains a URL for accessing the Material Safety Data Sheet (MSDS) for this drug.
read_drugbank_xml_db function must be called first before any
read_drugbank_xml_db is called before for any reason, so
no need to call it again before calling this function.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
## Not run: # the same parameters and usage will be applied for any parser # return only the parsed tibble run_all_parsers() # will throw an error, as database_connection is NULL run_all_parsers(save_table = TRUE) # save in database in SQLite in memory database and return parsed tibble sqlite_con <- DBI::dbConnect(RSQLite::SQLite()) run_all_parsers(save_table = TRUE, database_connection = sqlite_con) # save parsed tibble as csv if it does not exist in current location, # and return parsed tibble. # if the csv exist before read it and return its data. run_all_parsers(save_csv = TRUE) # save in database, save parsed tibble as csv, # if it does not exist in current location and return parsed tibble. # if the csv exist before read it and return its data. run_all_parsers(save_table = TRUE, save_csv = TRUE, database_connection = sqlite_con) # save parsed tibble as csv if it does not exist in given location, # and return parsed tibble. # if the csv exist before read it and return its data. run_all_parsers(save_csv = TRUE, csv_path = TRUE) # save parsed tibble as csv if it does not exist in current location and # return parsed tibble. # if the csv exist override it and return it. run_all_parsers(save_csv = TRUE, csv_path = TRUE, override = TRUE) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.