File: trinity_pbs.p3

package info (click to toggle)
trinityrnaseq 2.11.0%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 417,528 kB
  • sloc: perl: 48,420; cpp: 17,749; java: 12,695; python: 3,124; sh: 1,030; ansic: 983; makefile: 688; xml: 62
file content (38 lines) | stat: -rw-r--r-- 1,788 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
##################################################################################################################################
##########################                                                                ########################################
##########################     Trinity PBS job submission with multi part dependencies    ########################################
##########################                                                                ########################################
##################################################################################################################################
### Author: Josh Bowden, Alexie Papanicolaou, CSIRO
### Version 1.0
### Chrysalis P3 script (only run if Chrysalis P3 has not completed)
##################################################################################################################################

if [[ $MEM_P3 =~ ^([0-9]+) ]]; then
        let MEM_BASE="${BASH_REMATCH[1]}"
        let ALIGN_MEM=$MEM_BASE-5
        if [ $ALIGN_MEM -le 0 ];then
                let ALIGN_MEM=$MEM_BASE-2
                if [ $ALIGN_MEM -le 0 ];then
			echo "Memory requested for MEM_P3 is too low. Ask for at least 5 gigabytes"
			exit 1
                fi
        fi
        ALIGN_MEM="$ALIGN_MEM"G
else
        echo No memory given: "$MEM_P3"
        exit 1
fi

JOBSTRING3=""$HASHBANG"
"$NODESCPUS"
 cd "$OUTPUTDIR"
 ulimit -s unlimited
 export OMP_NUM_THREADS="$NCPU_P3"
 export KMP_AFFINITY=scatter
 # this runs Chrysalis::ReadsToTranscripts if it has not completed in the previous step
 "$STANDARD_JOB_DETAILS" --JM "$ALIGN_MEM" --CPU "$NCPU_P3" --no_run_quantifygraph
"

# Write the JOBSTRING3 to a file for later execution
echo "${JOBSTRING3}" | cat -> ""$JOBNAME3".sh"