#!/bin/csh
# talos_setup2.csh
# script for converting prot file to TALOS input file
#
# version 0.1 010604 BFV bvolkman@mcw.edu

set basename=$argv[1]
echo "-- unfolding $basename.prot"
prot_unfold $basename.seq $basename.prot > temp
mv temp $basename.prot

echo "-- generating shift list in TALOS format" 
echo " "

cat << EOF > init.cya

# This file is read automatically when starting CYANA.

cyanalib                 # read standard library
read seq $basename.seq       # read protein sequence
read prot $basename.prot
quit
EOF

cyana 
taloslist $basename.tab

#echo " "
#echo "-- converting $basename.bmrb to TALOS input file $basename.tab"
#bmrb2talos $basename.bmrb $basename.tab 

#talos.tcl -in $basename.tab > talos.out &

