name   "makeblastdb - create a BLAST-format database from a set of DNA/RNA sequences"
icon   "$BIRCH/pkg/NCBI/NCBI_tiny.png"
tip    "Input is a set of DNA or RNA sequences in FASTA, BLAST, or ASN.1 format. Output is a BLAST foramtted database"


var "infile"
    type        file
    label       "Input DNA/RNA file"

var "intype"
    type        chooser
    label       "     Input file format"
    default     0
    choices
        "FASTA" "fasta"
        "BLAST database" "blastdb"
        "ASN.1 binary" "asn1_bin"
        "ASN.1 text" "asn1_txt"

var "outname"
    type        text
    label       "Basename for output files"

var "outtitle"
    type        text
    label       "    Title for output database"
    default    "$OUTFILE"

panel
    var "Run"
        type        button
        label       "Run"
        shell       "nice makeblastdb -in %INFILE% -input_type %INTYPE% -parse_seqids -dbtype nucl -out %OUTNAME% -title '%OUTTITLE%'"
        close       true
    var "Manual"
        type        button
        label       "Manual"
        shell       "$BIRCH/script/chooseviewer.py $doc/NCBI/makeblastdb.help"
        close       false
