Overview

The DrugBank database is a unique bioinformatics and cheminformatics resource that combines detailed drug (i.e. chemical, pharmacological and pharmaceutical) data with comprehensive drug target (i.e. sequence, structure, and pathway) information. Unknown values are coded as zero.

Wishart DS, Knox C, Guo AC, Shrivastava S, Hassanali M, Stothard P, Chang Z, Woolsey J. DrugBank: a comprehensive resource for in silico drug discovery and exploration. Nucleic Acids Res. 2006 Jan 1;34(Database issue):D668-72. 16381955

Downloads

Download all of the following files.

Usage

Begin by adding the above JAR file to your classpath. This library has 1 function you can use.
import corgis.drug_bank.DrugBankLibrary;

public class ExampleClass {
    public static void main(String[] args) {
        // Get access to the library
        DrugBankLibrary drugBankLibrary = new DrugBankLibrary();
        // Access data inside the library
        ArrayList<Drug> list_of_drug = drugBankLibrary.getDrugs(false);
    }
}
Additionally, some of the functions can optionally return Big Data using the last argument (setting it to true). If you use this Big Data, it may be much slower. Wait until you are sure your code is correct before using these examples.
import corgis.drug_bank.DrugBankLibrary;

public class ExampleClass {
    public static void main(String[] args) {
        // Get access to the library
        DrugBankLibrary drugBankLibrary = new DrugBankLibrary();
        // Access data inside the library
        ArrayList<Drug> list_of_drug = drugBankLibrary.getDrugs(true);
    }
}

Documentation

We provide full JavaDoc for this library. Alternatively, you may refer to the below:

 drugBankLibrary.getDrugs(test)

Returns data about all the drugs in the database.