-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtophat_mapping_y.qsub
26 lines (20 loc) · 1.03 KB
/
tophat_mapping_y.qsub
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
#!/bin/bash -l
# Now let's keep track of some information just in case anything goes wrong
echo "=========================================================="
echo "Starting on : $(date)"
echo "Running on node : $(hostname)"
echo "Current directory : $(pwd)"
echo "Current job ID : $JOB_ID"
echo "Current job name : $JOB_NAME"
echo "Task index number : $SGE_TASK_ID"
echo "=========================================================="
module load python/2.7.5
module load bowtie2/2.2.9
module load boost/1.58.0
module load tophat/2.1.1
#module load parallel # don't use parallel of the parallelled threads, instead use 'batch' submission to distribute jobs on SCC nodes to better utilze the resources
module load samtools/1.4
INFILE=`find ./*_R1_001.fastq.gz | sed 's/_R1_001.fastq.gz$//'| head -${SGE_TASK_ID} |tail -1`
echo "NOW in TASK ${SGE_TASK_ID} : PROCESSING $INFILE ..."
# call tophat for individual file distributed by task id
tophat -p $NSLOTS -G ./genes.gtf -o ${INFILE}_thout ./hg38 ${INFILE}_R1_001.fastq.gz ${INFILE}_R2_001.fastq.gz