-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcuffLinkJob.sh
executable file
·63 lines (31 loc) · 1.02 KB
/
cuffLinkJob.sh
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
#PBS -v SAMPLENAME,SCRIPTDIR,SAMFILE
sampleName=$SAMPLENAME
scriptDir=$SCRIPTDIR
samFile=$SAMFILE
cd $scriptDir
source $scriptDir/initvars.sh
source $configDir/cufflink.config.sh
if [ ! -d $cuffLinkOutputDir ]; then
mkdir $cuffLinkOutputDir
fi
sampleOutputDir=$cuffLinkOutputDir/$sampleName
stdout_file=$sampleOutputDir/cufflink.stdout
stderr_file=$sampleOutputDir/cufflink.stderr
if [ ! -d $sampleOutputDir ]; then
mkdir $sampleOutputDir
fi
cd $sampleOutputDir
command="cufflinks -m $inner_dist_mean -s $inner_dist_std_dev -I $max_intron_length -F $min_isoform_fraction -j $pre_mran_fraction -p $num_threads -Q $min_mapqual -L $label $GFFFlag $samFile >> $stdout_file 2>> $stderr_file"
echo $command > $stdout_file
echo $command > $stderr_file
echo "set current dir to" >> $stdout_file
echo "set current dir to" >> $stderr_file
pwd >> $stdout_file
pwd >> $stderr_file
#echo $SAMFILE >> $stderr_file
date >> $stdout_file
date >> $stderr_file
eval $command
date >> $stdout_file
date >> $stderr_file