--- /dev/null
+#!/bin/bash
+
+if [ "$1" == "cluster" ]; then
+ file=wham_T280K_ave.pdb
+else
+ exit 1
+fi
+
+# Check if file exist
+if [ ! -f $file ]; then
+ echo "CRITICAL: out $file does not exist"
+ exit 2
+fi
+
+fam=`grep THERE clust_clust.out_000|awk '{print $3}'`
+grep THERE clust_clust.out_000
+grep REMARK wham*[1-9].pdb
+
+ if [ "$fam" != "5" ]; then
+ echo 'ERROR: number of families not equal 5'
+ exit 1
+ fi
+