Author: Andreas Tille <tille@debian.org>
Last-Update: 2015-12-07
Description: Check command line arguments before processing

--- a/database_clustering/get_all_vfdb.sh
+++ b/database_clustering/get_all_vfdb.sh
@@ -5,6 +5,11 @@
 #example usage:
 #/srst2/database_clustering/get_all_vfdb.sh ./CP_VFs.ffn ./VFDB
 
+if [ $# != 2 ] ; then
+  echo "Usage: `basename $0` <vfdbfile> <outputfolder>"
+  exit 1
+fi
+
 VFDBFILE=$(readlink -e $1)
 OUTPUTFOLDER=$2
 #get the srst2/database_clustering folder where all the other python scripts live side-by-side with this one
--- a/database_clustering/get_genus_vfdb.sh
+++ b/database_clustering/get_genus_vfdb.sh
@@ -4,6 +4,11 @@
 #example usage:
 #/srst2/database_clustering/get_genus_vfdb.sh ./CP_VFs.ffn Bacillus ./VFDB
 
+if [ $# != 3 ] ; then
+  echo "Usage: `basename $0` <vfdbfile> <genus> <outputfolder>"
+  exit 1
+fi
+
 VFDBFILE=$(readlink -e $1)
 GENUS=$2
 OUTPUTFOLDER=$3
