UNRES-Dock ctest
[unres.git] / ctest / dock / cluster_wham_check.sh
1 #!/bin/bash
2
3 if [ "$1" == "cluster" ]; then
4  file=wham_T280K_ave.pdb
5 else
6  exit 1
7 fi
8
9 # Check if file exist
10 if [ ! -f $file ]; then
11     echo "CRITICAL: out $file does not exist"
12     exit 2
13 fi
14
15 fam=`grep THERE clust_clust.out_000|awk '{print $3}'`
16 grep THERE clust_clust.out_000
17 grep REMARK wham*[1-9].pdb
18
19  if [ "$fam" != "5" ]; then
20   echo 'ERROR: number of families not equal 5'
21   exit 1
22  fi
23