name "BlastDB - Install/Update BLAST Databases"
icon "$BIRCH/pkg/NCBI/NCBI_tiny.png"
tip "Choose which databases to install or update [+] - database files already installed. [-] - database files not currently installed."

var "ftpsite"
    type        combobox
    label       "Download from"
    default     0
    choices
        "NCBI, USA" "ftp.ncbi.nih.gov"
        "Human Genome Center, Tokyo, Japan" "ftp.hgc.jp"

tabset
    # - - - - - - - - - - - - - - - - - - - - - - -
    tab "Nucleotide"
<DBTYPE=n>
        var "<DBNAME>"
            type        chooser
            label       "[ <INSTALLSYMBOL> ] <DBTAG>"
            default     <INSTALLSTATE>
            choices
                "Do nothing"        ""
                "Install/Update"    "<DBFILEPREFIX>"

</DBTYPE>

    # - - - - - - - - - - - - - - - - - - - - - - -
    tab "Protein"
<DBTYPE=p>
        var "<DBNAME>"
            type        chooser
            label       "[ <INSTALLSYMBOL> ] <DBTAG>"
            default     <INSTALLSTATE>
            choices
                "Do nothing"        ""
                "Install/Update"    "<DBFILEPREFIX>"

</DBTYPE>

    # - - - - - - - - - - - - - - - - - - - - - - -
    tab "High-Throughput"
<DBTYPE=N,P>
        var "<DBNAME>"
            type        chooser
            label       "[ <INSTALLSYMBOL> ] <DBTAG>"
            default     <INSTALLSTATE>
            choices
                "Do nothing"        ""
                "Install/Update"    "<DBFILEPREFIX>"

</DBTYPE>

    # - - - - - - - - - - - - - - - - - - - - - - -
    tab "Other"
<DBTYPE=O>
        var "<DBNAME>"
            type        chooser
            label       "[ <INSTALLSYMBOL> ] <DBTAG>"
            default     <INSTALLSTATE>
            choices
                "Do nothing"        ""
                "Install/Update"    "<DBFILEPREFIX>"

</DBTYPE>

panel        
    var "Run"
        type    button
        label   "Run"
        shell "($BIRCH/script/blastdbkit.sh --update --ftpsite %FTPSITE% --dblist <BLASTDBLIST>)&"
        close true

    var "Help"
        type        button
        label       "Help"
        shell       "$BL_Browser $doc/BIRCH/birchadmin/blastdb/BLASTDB.html"
        close       false

