-
Notifications
You must be signed in to change notification settings - Fork 1
/
tophatMapJob.sh
executable file
·51 lines (26 loc) · 1.13 KB
/
tophatMapJob.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
#!/bin/bash
#PBS -v SAMPLENAME,LFILELIST,RFILELIST,SCRIPTDIR
sampleName=$SAMPLENAME
lfilelist=$LFILELIST
rfilelist=$RFILELIST
scriptDir=$SCRIPTDIR
cd $scriptDir
source $scriptDir/initvars.sh
source $configDir/tophat.config.sh
sampleOutputDir=$tophatOutputDir/$sampleName
stdout_file=$sampleOutputDir/tophat.stdout
stderr_file=$sampleOutputDir/tophat.stderr
if [ ! -d $sampleOutputDir ]; then
mkdir $sampleOutputDir
fi
cd $mergedsolfqDir
lfilelist=`echo $lfilelist | tr "|" ","`
rfilelist=`echo $rfilelist | tr "|" ","`
command="tophat $solexa_quality_flag $butterfly_search_flag $microexon_search_flag $no_novel_juncs_flag --mate-inner-dist $mate_inner_dist --mate-std-dev $mate_std_dev --min-anchor-length $min_anchor_length --min-isoform-fraction $min_isoform_fraction --num-threads $num_threads --max-multihits $max_multihits $GFF_flag $raw_junc_flag $other_options --output-dir $sampleOutputDir $ebwt_base $lfilelist $rfilelist >> $stdout_file 2>> $stderr_file"
echo $command > $stdout_file
echo $command > $stderr_file
date >> $stdout_file
date >> $stderr_file
#eval $command
date >> $stdout_file
date >> $stderr_file