name        "Import Foreign Format"
icon    "$BIRCH/public_html/images/birch_black_ico.png"
tip    "Import sequences using READSEQ"
var "outputfile"
    type        tempfile
    direction   out
    format      fasta
var "inputfile"
    type        file
    label       "Name of foreign file?"
panel
    var "Run"
        type        button
        label       "Run"
        shell       "cat %INPUTFILE% | sed 's/^\(>gi|[0-9][0-9]*\)\(\|\)\(.*\)/\1 \3/' > OUTFILE.tmp; readseq -a -ffasta -o=%outputfile% OUTFILE.tmp; $RM_CMD -f OUTFILE.tmp"
        close       true
    var "Help"
        type        button
        label       "Help"
        shell       "$BIRCH/script/chooseviewer.py $BIRCH/readseq.help"
        close       false
