forked from azroger/cyverse_agave_apps
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvelveth_wrapper_test.sh
98 lines (91 loc) · 2.07 KB
/
velveth_wrapper_test.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#!/bin/bash
#wrapper script for the velveth assembler
#more stuff from Roger Barthelson
stuffx=''
junk1=''
junk2=''
junk3=''
junk4=''
junk5=''
junk6=''
runthis=''
# Output="${Output}"
# kmer="${kmer}"
Output=TestOut
kmer=39
strandSpecific="${strandSpecific}"
#####################################
readtype1=-shortPaired
#format1="${format1}"
format1=-fastq
#reads1="${reads1}"
reads1='/iplant/home/rogerab/test_dir/frag_pr.fastq'
#######################
readtype2=-shortPaired2
#format2="${format2}"
format2=-fastq
#reads2="${reads2}"
reads2='/iplant/home/rogerab/test_dir/shortjump_pr.fastq'
#######################
readtype3=-longPaired
format3="${format3}"
reads3="${reads3}"
########################
readtype4=-short
#format4="${format4}"
format4=-fasta
#reads4="${reads5}"
reads4='/iplant/home/rogerab/test_dir/frag.fa'
#########################
readtype5=-long
format5="${format5}"
reads5="${reads5}"
#########################
readtype6=-reference
format6=-fasta
reads6="${reads6}"
###########################################################################
stuffx=""${Output}" "${kmer}" "${strandSpecific}""
module purge
module load TACC
module load irods
module load velvet/1.2.08
if [ "${reads1}" != '' ] ;
then
iget -fT "${reads1}"
INPUT_F1=$(basename ${reads1})
junk1=" -shortPaired "${format1}" "${INPUT_F1}""
fi
if [ "${reads2}" != '' ] ;
then
iget -fT "${reads2}"
INPUT_F2=$(basename ${reads2})
junk2=" -shortPaired2 "${format2}" "${INPUT_F2}""
fi
if [ "${reads3}" != '' ] ;
then
iget -fT "${reads3}"
INPUT_F3=$(basename ${reads3})
junk3=" -longPaired "${format3}" "${INPUT_F3}""
fi
if [ "${reads4}" != '' ] ;
then
iget -fT "${reads4}"
INPUT_F4=$(basename ${reads4})
junk4=" -short "${format4}" "${INPUT_F4}""
fi
if [ "${reads5}" != '' ] ;
then
iget -fT "${reads5}"
INPUT_F5=$(basename ${reads5})
junk5=" -long "${format5}" "${INPUT_F5}""
fi
if [ "${reads6}" != '' ] ;
then
iget -fT "${reads6}"
INPUT_F5=$(basename ${reads6})
junk6=" -reference "${INPUT_F6}""
fi
runthis="${stuffx}""${junk6}""${junk1}""${junk2}""${junk3}""${junk4}""${junk5}"
export OMP_NUM_THREADS=6
echo $runthis | xargs velveth