#!/bin/bash
if [ -z "$1" ]; then export PREFIX=../data; else export PREFIX=$1; fi
if [ -z $BIN ]; then export BIN=vargibbs; fi
if [ -z $VER ]; then export VER=./; fi
set -e
export WD=${VER}OW04-local
mkdir -pv $WD

$BIN  -zlog=0 -cl=10 -me=3000 -minmethod=gsl -mm=3 -o=${WD}/OW04-local \
-par=${PREFIX}/init_ow04.par \
-parid=test -calc=minlocal -v=1 -data=${PREFIX}/D-OW04-1020.dat \
-var=AT_AT:entropy,AT_CG:entropy,AT_GC:entropy,AT_TA:entropy,CG_AT:entropy,CG_CG:entropy,CG_GC:entropy,GC_AT:entropy,GC_CG:entropy,TA_AT:entropy,AT_AT:enthalpy,AT_CG:enthalpy,AT_GC:enthalpy,AT_TA:enthalpy,CG_AT:enthalpy,CG_CG:enthalpy,CG_GC:enthalpy,GC_AT:enthalpy,GC_CG:enthalpy,TA_AT:enthalpy,terminal_CG_enthalpy,terminal_CG_entropy,terminal_AT_enthalpy,terminal_AT_entropy

$BIN  -o=${WD}/OW04-local-prediction -par=${WD}/OW04-local.par \
-calc=prediction -v=1 -data=${PREFIX}/D-OW04-1020.dat
