forked from albertwcheng/RNASeqMappingScripts3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tophatMapJobArgListSE.sh
executable file
·54 lines (30 loc) · 1.1 KB
/
tophatMapJobArgListSE.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
#!/bin/bash
if [ $# -lt 3 ]; then
echo $0 sampleName lfilelist scriptDir
exit
fi
sampleName=$1
lfilelist=$2
scriptDir=$3
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 $fastqDir ##use fastq dir the more standard one
#lfilelist=`echo $lfilelist | tr "|" ","`
#rfilelist=`echo $rfilelist | tr "|" ","`
echo BOWTIE_INDEXES=$BOWTIE_INDEXES
#$solexa_quality_flag
command="tophat $butterfly_search_flag $microexon_search_flag $no_novel_juncs_flag --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 >> $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