:78 Function create_function() is deprecated [8192]

generalizing the PBS submission script example by using environment variables to specify certain locations

Marcelo Ponce [2019-06-05 19:18:24]
generalizing the PBS submission script example by using environment variables to specify certain locations
Filename
hpc/submission.pbs
hpc/submission.sbatch
diff --git a/hpc/submission.pbs b/hpc/submission.pbs
index b6ea980..f34140d 100644
--- a/hpc/submission.pbs
+++ b/hpc/submission.pbs
@@ -6,6 +6,19 @@

 # load modules, ie. to use, eg. SamTools and BWA
 module load samtools/1.3.1 bwakit
+
+
+# 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
+

 # DIRECTORY TO RUN - $PBS_O_WORKDIR is directory job was submitted from
 cd $PBS_O_WORKDIR
@@ -15,9 +28,9 @@ cd $PBS_O_WORKDIR
 # data subdirectory containing data files: INPUT and IP files
 # refs subdirectory containing reference files: fasta and gff3 files
 # the pipeline will attempt to use RAMDisk (/dev/shm) and autodetect maximum number of cores to use
-($SCRATCH/RACS/core/countReads.sh        \
-        data/SSCH1-1_Input_S2_R1_001.fastq.gz  data/SSCH1-1_ChIP_S1_R1_001.fastq.gz       \
-        refs/T_thermophila_June2014_assembly.fasta  refs/T_thermophila_June2014.gff3  /dev/shm  \
+($RACS/core/countReads.sh        \
+        $DATA/SSCH1-1_Input_S2_R1_001.fastq.gz  $DATA/SSCH1-1_ChIP_S1_R1_001.fastq.gz       \
+        $REFS/T_thermophila_June2014_assembly.fasta  $REFS/T_thermophila_June2014.gff3  $RAMDISK  \
         >& output.log) &

 wait
diff --git a/hpc/submission.sbatch b/hpc/submission.sbatch
index 7446676..6195b40 100644
--- a/hpc/submission.sbatch
+++ b/hpc/submission.sbatch
@@ -7,7 +7,7 @@
 #SBATCH --mail-user=YOURemailHERE
 #SBATCH --mail-type=ALL

-# define some environment variables to generaliz the script
+# define some environment variables to generalize the submission script
 # RACS location
 RACS=PATHtoRACS
 # INPUT and IP files location
ViewGit