:78 Function create_function() is deprecated [8192]

using an environment file to set env.variables to be used in submission scripts

Marcelo Ponce [2019-06-06 13:51:27]
using an environment file to set env.variables to be used in submission scripts
Filename
hpc/setup.env
hpc/submission.sbatch
diff --git a/hpc/setup.env b/hpc/setup.env
new file mode 100644
index 0000000..acefb89
--- /dev/null
+++ b/hpc/setup.env
@@ -0,0 +1,12 @@
+
+# define some environment variables to generalize the submission script
+# RACS location
+RACS=PATHtoRACS
+# INPUT and IP files location
+DATA=PAHTtoDATA
+# REFerence files, eg. gff3 and fasta for T.T.
+REFS=PATHtoREFS
+
+# location of RAMDISK, typically /dev/shm or /tmp
+RAMDISK=/dev/shm
+
diff --git a/hpc/submission.sbatch b/hpc/submission.sbatch
index 6195b40..fadccd2 100644
--- a/hpc/submission.sbatch
+++ b/hpc/submission.sbatch
@@ -7,16 +7,9 @@
 #SBATCH --mail-user=YOURemailHERE
 #SBATCH --mail-type=ALL

-# define some environment variables to generalize the submission script
-# RACS location
-RACS=PATHtoRACS
-# INPUT and IP files location
-DATA=PAHTtoDATA
-# REFerence files, eg. gff3 and fasta for T.T.
-REFS=PATHtoREFS
-
-# location of RAMDISK, typically /dev/shm or /tmp
-RAMDISK=/dev/shm
+# load definitions from some environment variables to generalize the submission script,
+# such as:  RACS location, datafiles location, RAMdisk, ...
+. setup.env

 # load needed modules // RACS repository located on $SCRATCH
 . $RACS/hpc/modules
ViewGit