annotate heatmap_advanced.sh @ 6:1f13d304ddbd draft

Uploaded
author insilico-bob
date Thu, 20 Jun 2019 11:36:53 -0400
parents 19382473a76b
children c5489978071a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
1 #echo "1: " $1 " 2: " $2 " 3: " $3 " 4: " $4 " 5: " $5 " 6: " $6 " 7: " $7 " 8: " $8 " 9: " $9 " 10: " ${10}
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
2 #echo "11: " ${11} " 12: " ${12} 13: " ${13} 14: " ${14} " 15: " ${15} " 16: " ${16} " 17: " ${17} " 18: " ${18} " 19: " ${19} " 20: " ${20}
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
3 #echo "21: "${21}" 22: "${22}" 23: "${23}" 24: "${24}" 25: "${25}" 26: "${26}" 27: "${27}" 28: "${28}" 29: "${29}" 30: "${30}
0
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
4
6
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
5 #Count total number of parameters, dataLayer parameters, and classification parameters
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
6 parmSize=0
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
7 classSize=0
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
8 dataLayerSize=0
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
9 attribSize=0
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
10 for i in "$@"; do
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
11 currParm=$(cut -d'|' -f1 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
12 parmSize=$((parmSize+1))
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
13 if [ $currParm = "classification" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
14 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
15 classSize=$((classSize+1))
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
16 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
17 if [ $currParm = "matrix_files" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
18 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
19 dataLayerSize=$((dataLayerSize+1))
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
20 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
21 if [ $currParm = "attribute" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
22 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
23 attribSize=$((attribSize+1))
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
24 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
25 done
2
19382473a76b Uploaded
insilico-bob
parents: 1
diff changeset
26
6
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
27 if [ $dataLayerSize -lt 1 ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
28 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
29 noDataLayer="ERROR: No Heat Map Matrices provided. Please add at least one Heat Map Matrix to your request and try again."
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
30 echo $noDataLayer
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
31 exit $noDataLayer
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
32 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
33
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
34 #Get tool data and tool install directories
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
35 tooldir=$1
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
36 tooldata=$2
0
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
37 #create temp directory for row and col order and dendro files.
2
19382473a76b Uploaded
insilico-bob
parents: 1
diff changeset
38 tdir=$tooldata/$(date +%y%m%d%M%S)
0
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
39 mkdir $tdir
6
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
40 #echo "tdir: "$tdir
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
41
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
42 #Extract parameters for row and column order and dendro files
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
43 rowOrderFile=$tdir/ROfile.txt
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
44 rowDendroFile=$tdir/RDfile.txt
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
45 colOrderFile=$tdir/COfile.txt
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
46 colDendroFile=$tdir/CDfile.txt
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
47 rowOrderJson='"order_file": "'$rowOrderFile'",'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
48 rowDendroJson='"dendro_file": "'$rowDendroFile'",'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
49 colOrderJson='"order_file": "'$colOrderFile'",'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
50 colDendroJson='"dendro_file": "'$colDendroFile'",'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
51
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
52 #BEGIN: Construct JSON for all non-repeating parameters
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
53 parmJson='{'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
54 rowConfigJson='"row_configuration": {'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
55 colConfigJson='"col_configuration": {'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
56
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
57 ctr=0
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
58 for i in "$@"; do
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
59 if [ $ctr -gt 1 ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
60 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
61 currParm=$(cut -d'|' -f1 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
62 if [ $currParm != "matrix_files" ] && [ $currParm != "row_configuration" ] && [ $currParm != "col_configuration" ] && [ $currParm != "classification" ] && [ $currParm != "attribute" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
63 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
64 #Parse pipe-delimited parameter parameter
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
65 parmJson=$parmJson' "'$(cut -d'|' -f1 <<< $i)'":"'$(cut -d'|' -f2 <<< $i)'",'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
66 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
67 if [ $currParm = "row_configuration" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
68 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
69 rowOrder=$(cut -d'|' -f3 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
70 rowDistance=$(cut -d'|' -f5 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
71 rowAgglomeration=$(cut -d'|' -f7 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
72 rowCuts=$(cut -d'|' -f9 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
73 rowLabels=$(cut -d'|' -f11 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
74 rowDataTypeJson='"'$(cut -d'|' -f10 <<< $i)'":["'$rowLabels'"],'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
75 rowCutType=$(cut -d'|' -f16 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
76 rowTopItemsJson=''
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
77 rowTopItems=$(cut -d'|' -f13 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
78 if [ $rowTopItems != "None" ] && [ $rowTopItems != "" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
79 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
80 rowTopItemsJson='"'$(cut -d'|' -f12 <<< $i)'": ['
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
81 rowTopItems=${rowTopItems//,/'","'}
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
82 rowTopItemsJson=$rowTopItemsJson'"'$rowTopItems'"],'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
83 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
84 rowCutsJson=''
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
85 if [ $rowCutType != "none" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
86 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
87 cutValues=$(cut -d'|' -f15 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
88 if [ $cutValues != "None" ] && [ $cutValues != "0" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
89 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
90 if [ $rowCutType = "treecuts" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
91 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
92 rowCutsJson=$rowCutsJson'"tree_cuts": "'$cutValues'",'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
93 rowCutsJson=$rowCutsJson'"cut_width": "5",'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
94 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
95 if [ $rowCutType = "positional" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
96 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
97 rowCutErrorVal=0
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
98 [[ $cutValues != ?(-)+([0-9,]) ]] && rowCutErrorVal=$((rowCutErrorVal+1))
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
99 if [ $rowCutErrorVal -gt 0 ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
100 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
101 echo "GALAXY PARAMETER WARNING: Non-numeric values found for Row Fixed Gap Locations. Ignoring parameter value: "$cutValues
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
102 else
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
103 rowCutsJson=$rowCutsJson'"cut_locations": ['$cutValues'],'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
104 rowCutsJson=$rowCutsJson'"cut_width": "5",'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
105 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
106 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
107 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
108 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
109 rowConfigJson=$rowConfigJson$rowDataTypeJson$rowCutsJson$rowTopItemsJson
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
110 if [ $rowOrder = 'Hierarchical' ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
111 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
112 rowConfigJson=$rowConfigJson$rowOrderJson$rowDendroJson
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
113 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
114 rowConfigJson=$rowConfigJson' "'$(cut -d'|' -f2 <<< $i)'":"'$(cut -d'|' -f3 <<< $i)'","'$(cut -d'|' -f4 <<< $i)'":"'$(cut -d'|' -f5 <<< $i)'","'$(cut -d'|' -f6 <<< $i)'":"'$(cut -d'|' -f7 <<< $i)'","'$(cut -d'|' -f17 <<< $i)'":"'$(cut -d'|' -f18 <<< $i)'","'$(cut -d'|' -f19 <<< $i)'":"'$(cut -d'|' -f20 <<< $i)'"},'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
115 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
116 if [ $currParm = "col_configuration" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
117 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
118 colOrder=$(cut -d'|' -f3 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
119 colDistance=$(cut -d'|' -f5 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
120 colAgglomeration=$(cut -d'|' -f7 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
121 colCuts=$(cut -d'|' -f9 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
122 colLabels=$(cut -d'|' -f11 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
123 colDataTypeJson='"'$(cut -d'|' -f10 <<< $i)'":["'$colLabels'"],'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
124 colCutType=$(cut -d'|' -f16 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
125 colTopItemsJson=''
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
126 colTopItems=$(cut -d'|' -f13 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
127 if [ $colTopItems != "None" ] && [ $colTopItems != "" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
128 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
129 colTopItemsJson='"'$(cut -d'|' -f12 <<< $i)'": ['
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
130 colTopItems=${colTopItems//,/'","'}
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
131 colTopItemsJson=$colTopItemsJson'"'$colTopItems'"],'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
132 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
133 colCutsJson=''
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
134 if [ $colCutType != "none" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
135 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
136 cutValues=$(cut -d'|' -f15 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
137 if [ $cutValues != "None" ] && [ $cutValues != "0" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
138 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
139 if [ $colCutType = "treecuts" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
140 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
141 colCutsJson=$colCutsJson'"tree_cuts": "'$cutValues'",'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
142 colCutsJson=$colCutsJson'"cut_width": "5",'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
143 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
144 if [ $colCutType = "positional" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
145 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
146 colCutErrorVal=0
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
147 [[ $cutValues != ?(-)+([0-9,]) ]] && colCutErrorVal=$((colCutErrorVal+1))
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
148 if [ $colCutErrorVal -gt 0 ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
149 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
150 echo "GALAXY PARAMETER WARNING: Non-numeric values found for Column Fixed Gap Locations. Ignoring parameter value: "$cutValues
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
151 else
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
152 colCutsJson=$colCutsJson'"cut_locations": ['$cutValues'],'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
153 colCutsJson=$colCutsJson'"cut_width": "5",'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
154 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
155 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
156 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
157 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
158 colConfigJson=$colConfigJson$colDataTypeJson$colCutsJson$colTopItemsJson
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
159 if [ $colOrder = 'Hierarchical' ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
160 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
161 colConfigJson=$colConfigJson$colOrderJson$colDendroJson
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
162 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
163 colConfigJson=$colConfigJson' "'$(cut -d'|' -f2 <<< $i)'":"'$(cut -d'|' -f3 <<< $i)'","'$(cut -d'|' -f4 <<< $i)'":"'$(cut -d'|' -f5 <<< $i)'","'$(cut -d'|' -f6 <<< $i)'":"'$(cut -d'|' -f7 <<< $i)'","'$(cut -d'|' -f17 <<< $i)'":"'$(cut -d'|' -f18 <<< $i)'","'$(cut -d'|' -f19 <<< $i)'":"'$(cut -d'|' -f20 <<< $i)'"},'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
164 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
165 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
166 ctr=$((ctr+1))
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
167 done
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
168
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
169 #END: Construct JSON for all non-repeating parameters
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
170 #echo "rowOrder: "$rowOrder
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
171 #echo "rowDistance: "$rowDistance
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
172 #echo "rowAgglomeration: "$rowAgglomeration
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
173 #echo "rowCuts: "$rowCuts
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
174 #echo "rowLabels: "$rowLabels
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
175 #echo "ROW CONFIG JSON: "$rowConfigJson
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
176 #echo "colOrder: "$colOrder
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
177 #echo "colDistance: "$colDistance
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
178 #echo "colAgglomeration: "$colAgglomeration
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
179 #echo "colCuts: "$colCuts
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
180 #echo "colLabels: "$colLabels
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
181 #echo "COL CONFIG JSON: "$colConfigJson
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
182
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
183 #BEGIN: Construct JSON for data layers
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
184 matrixJson='"matrix_files": [ '
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
185 inputMatrix=''
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
186 dataLayerIter=0
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
187 dataLayerNames=''
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
188 for i in "$@"; do
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
189 currParm=$(cut -d'|' -f1 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
190 if [ $currParm = "matrix_files" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
191 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
192 if [ $dataLayerIter -lt 1 ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
193 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
194 inputMatrix=$(cut -d'|' -f3 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
195 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
196 currMatrixName=$(cut -d'|' -f5 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
197 dataLayerIter=$((dataLayerIter+1))
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
198 if [[ $dataLayerNames =~ $currMatrixName ]]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
199 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
200 currMatrixName=$currMatrixName$dataLayerIter
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
201 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
202 dataLayerNames=$dataLayerNames$currMatrixName
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
203 colorPref=$(cut -d'|' -f16 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
204 colorMapJson=''
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
205 if [ $colorPref = "defined" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
206 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
207 #validations to place leading zero on first breakpoint (if necessary)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
208 b1=$(cut -d'|' -f20 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
209 b1first=$(cut -d'.' -f1 <<< $b1)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
210 if [ $b1first = "-" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
211 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
212 b1="-0."$(cut -d'.' -f2 <<< $b1)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
213 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
214 if [ "$b1first" = "" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
215 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
216 b1="0"$b1
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
217 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
218 #validations to place leading zero on second breakpoint (if necessary)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
219 b2=$(cut -d'|' -f21 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
220 b2first=$(cut -d'.' -f1 <<< $b2)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
221 if [ $b2first = "-" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
222 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
223 b2="-0."$(cut -d'.' -f2 <<< $b2)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
224 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
225 if [ "$b2first" = "" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
226 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
227 b2="0"$b2
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
228 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
229 #validations to place leading zero on third breakpoint (if necessary)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
230 b3=$(cut -d'|' -f22 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
231 b3first=$(cut -d'.' -f1 <<< $b3)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
232 if [ $b3first = "-" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
233 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
234 b3="-0."$(cut -d'.' -f2 <<< $b3)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
235 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
236 if [ "$b3first" = "" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
237 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
238 b3="0"$b3
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
239 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
240 #validation to ensure that all entered breakpoints are numeric values
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
241 regExp='^[+-]?([0-9]+\.?|[0-9]*\.[0-9]+)$'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
242 if [[ $b1 =~ $regExp ]] && [[ $b2 =~ $regExp ]] && [[ $b3 =~ $regExp ]]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
243 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
244 colorMapJson=$colorMapJson'"color_map": {"colors": ["'$(cut -d'|' -f17 <<< $i)'","'$(cut -d'|' -f18 <<< $i)'","'$(cut -d'|' -f19 <<< $i)'"],'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
245 colorMapJson=$colorMapJson'"thresholds": ['$b1','$b2','$b3'],'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
246 colorMapJson=$colorMapJson'"missing":"'$(cut -d'|' -f23 <<< $i)'"},'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
247 else
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
248 echo "GALAXY PARAMETER WARNING: Not all user-defined breakpoints are numbers. Defined breakpoints and colors will be ignored."
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
249 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
250 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
251 #Parse pipe-delimited parameter parameter
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
252 matrixJson=$matrixJson' {'$colorMapJson'"'$(cut -d'|' -f2 <<< $i)'":"'$(cut -d'|' -f3 <<< $i)'","'$(cut -d'|' -f4 <<< $i)'":"'$currMatrixName'","'$(cut -d'|' -f6 <<< $i)'":"'$(cut -d'|' -f7 <<< $i)'","'$(cut -d'|' -f8 <<< $i)'":"'$(cut -d'|' -f9 <<< $i)'","'$(cut -d'|' -f10 <<< $i)'":"'$(cut -d'|' -f11 <<< $i)'","'$(cut -d'|' -f12 <<< $i)'":"'$(cut -d'|' -f13 <<< $i)'","'$(cut -d'|' -f14 <<< $i)'":"'$(cut -d'|' -f15 <<< $i)'"}'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
253 if [ $dataLayerIter -lt $dataLayerSize ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
254 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
255 matrixJson=$matrixJson','
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
256 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
257 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
258 done
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
259 matrixJson=$matrixJson"],"
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
260 #END: Construct JSON for data layers
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
261 #echo "DATA LAYER JSON: "$matrixJson
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
262 #echo "INPUT MATRIX: "$inputMatrix
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
263
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
264 #BEGIN: Construct JSON for attributes
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
265 attribJson='"chm_attributes": [ '
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
266 attribIter=0
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
267 for i in "$@"; do
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
268 currParm=$(cut -d'|' -f1 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
269 if [ $currParm = "attribute" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
270 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
271 attribIter=$((attribIter+1))
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
272 attribParam=$(cut -d'|' -f2 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
273 #Parse pipe-delimited 2-part data layer parameter
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
274 attribJson=$attribJson' {"'$(cut -d':' -f1 <<< $attribParam)'":"'$(cut -d':' -f2 <<< $attribParam)'"}'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
275 if [ $attribIter -lt $attribSize ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
276 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
277 attribJson=$attribJson','
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
278 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
279 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
280 done
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
281 attribJson=$attribJson'],'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
282 #END: Construct JSON for attributes
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
283 #echo "ATTRIB JSON: "$attribJson
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
284
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
285 #BEGIN: Construct JSON for classification files
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
286 classJson='"classification_files": [ '
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
287 colCutClass=''
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
288 rowCutClass=''
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
289 if [ $rowCuts -gt 1 ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
290 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
291 rowCutClass='{"name": "Class", "path": "'$tdir'/ROfile.txt.cut","position": "row", "color_map": {"type": "discrete"}, "bar_type": "color_plot"}'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
292 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
293
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
294 if [ $colCuts -gt 1 ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
295 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
296 if [ $rowCuts -gt 1 ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
297 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
298 rowCutClass=$rowCutClass','
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
299 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
300 colCutClass='{"name": "Class", "path": "'$tdir'/COfile.txt.cut","position": "column", "color_map": {"type": "discrete"}, "bar_type": "color_plot"}'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
301 if [ $classSize -gt 0 ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
302 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
303 colCutClass=$colCutClass','
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
304 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
305 else
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
306 if [ $rowCuts -gt 1 ] && [ $classSize -gt 0 ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
307 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
308 rowCutClass=$rowCutClass','
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
309 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
310 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
311
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
312 classJson=$classJson$rowCutClass$colCutClass
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
313 classIter=0
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
314 for i in "$@"; do
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
315 currParm=$(cut -d'|' -f1 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
316 if [ $currParm = "classification" ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
317 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
318 classIter=$((classIter+1))
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
319 className=$(cut -d'|' -f3 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
320 #Parse pipe-delimited 3-part classification bar parameter
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
321 classJson=$classJson' {"'$(cut -d'|' -f2 <<< $i)'":"'$(cut -d'|' -f3 <<< $i)'","'$(cut -d'|' -f4 <<< $i)'":"'$(cut -d'|' -f5 <<< $i)'","'$(cut -d'|' -f8 <<< $i)'":"'$(cut -d'|' -f9 <<< $i)'","'$(cut -d'|' -f12 <<< $i)'":"'$(cut -d'|' -f13 <<< $i)'","'$(cut -d'|' -f14 <<< $i)'":"'$(cut -d'|' -f15 <<< $i)'"'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
322 classCat=$(cut -d'|' -f7 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
323 classColorType=$(cut -d'_' -f2 <<< $classCat)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
324 classJson=$classJson','
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
325 classHeight=$(cut -d'|' -f11 <<< $i)
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
326 heightErrorVal=0
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
327 [[ $classHeight != ?(-)+([0-9]) ]] && heightErrorVal=$((heightErrorVal+1))
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
328 if [ $heightErrorVal -gt 0 ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
329 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
330 echo 'GALAXY PARAMETER WARNING: Non-numeric values found for covariate bar ('$className') height. Height value ignored and default of 15 used: '$classHeight
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
331 else
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
332 classJson=$classJson'"height": "'$classHeight'",'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
333 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
334 classJson=$classJson' "position":"'$(cut -d'_' -f1 <<< $classCat)'","color_map": {"type":"'$classColorType'"}}'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
335 if [ $classIter -lt $classSize ]
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
336 then
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
337 classJson=$classJson','
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
338 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
339 fi
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
340 done
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
341 classJson=$classJson']'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
342 #END: Construct JSON for classification files
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
343 #echo "CLASSIFICATION JSON: "$classJson
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
344
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
345 #Complete construction of Parameter JSON file by adding all JSON sections created above
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
346 parmJson=$parmJson$rowConfigJson$colConfigJson$attribJson$matrixJson$classJson
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
347 parmJson=$parmJson'}'
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
348 #echo "COMPLETED PARAMETER JSON: "$parmJson
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
349
0
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
350 #run R to cluster matrix
6
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
351 output="$(R --slave --vanilla --file=$tooldir/CHM_Advanced.R --args $inputMatrix $rowOrder $rowDistance $rowAgglomeration $colOrder $colDistance $colAgglomeration $rowOrderFile $colOrderFile $rowDendroFile $colDendroFile $rowCuts $colCuts $rowLabels $colLabels 2>&1)"
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
352 # Check for errors from R step, log them if found, and exit script
0
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
353 rc=$?;
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
354 if [ $rc != 0 ]
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
355 then
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
356 echo $output;
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
357 if [ `echo "$output" | grep -c "Inf in foreign function call"` -gt 0 ]
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
358 then
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
359 echo "";
6
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
360 echo "NOTE 1: This error can occur when a covariate file has inadvertently been selected as an Input Matrix. Check your Input Matrix entry.";
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
361 echo "NOTE 2: This error can occur when there is no variation in a data rows or columns in the input matrix. Try a different distance measure or remove rows/columns without variation.";
0
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
362 fi
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
363 exit $rc;
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
364 fi
1
603f99d9e776 Version 2.2.1 embedded viewer
insilico-bob
parents: 0
diff changeset
365
6
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
366 #Call java program to generate NGCHM viewer files.
1f13d304ddbd Uploaded
insilico-bob
parents: 2
diff changeset
367 java -jar $tooldir/GalaxyMapGen.jar "$parmJson"
0
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
368 #clean up tempdir
8893ea2915cc Initial Version of Advanced Heat Map Tool
insilico-bob
parents:
diff changeset
369 rm -rf $tdir