annotate Matrix_Manipulation.sh @ 1:f1bcd79cd923 draft default tip

Uploaded
author insilico-bob
date Tue, 27 Nov 2018 14:20:40 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
1 #echo "1: " $1 # tool directory
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
2 #echo "2: " $2 # manipulation option
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
3 #echo "3: " $3 # input file
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
4 #echo "4: " $4 # output file
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
5 #echo "5: " $5 # choice
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
6 #echo "6: " $6 # thresh
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
7 #echo "7: " $7 # axis
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
8 #echo "8: " $8 # transpose
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
9 #echo "9: " $9 # input2
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
10 #echo "10: " ${10} # offsetvalue
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
11 #echo "11: " ${11} # scalevalue
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
12 #echo "12: " ${12}
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
13 #echo "13: " ${13}
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
14 #echo "14: " ${14}
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
15 #echo "15: " ${15}
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
16 #echo "16: " ${16}
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
17
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
18 #echo "tool directory is: " $1
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
19 if [ "$2" = "Matrix_Filters" ]; then
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
20 echo "filter chosen"
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
21 #python $__tool_directory__/Matrix_Filters.py '$p_input '${manipulation.extra.choice}' '${manipulation.extra.thresh}' '${manipulation.axis}' '$output_file'
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
22 python $1/Matrix_Filters.py $3 $5 $6 $7 $4
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
23 elif [ "$2" = "Matrix_Multiply" ]; then
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
24 echo "multiply chosen"
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
25 #python '$__tool_directory__/Matrix_Multiply.py' '$p_input' '${manipulation.extra.transpose}' '${manipulation.extra.input2}' '${manipulation.extra.choice}' '$output_file'
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
26 python $1/Matrix_Multiply.py $3 $8 $9 $5 $4
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
27 elif [ "$2" = "Matrix_Statistics" ]; then
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
28 echo "statistics chosen"
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
29 #python '$__tool_directory__/Matrix_Statistics.py' '$p_input' '$choice' '$cutoff' '$axis' '$out_file'
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
30 python $1/Matrix_Statistics.py $3 $5 $6 $7 $4
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
31 elif [ "$2" = "Matrix_Transformations" ]; then
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
32 echo "transform chosen"
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
33 #python '$__tool_directory__/Matrix_Transformations.py' '$p_input' '$choice' '$axis' '$scalevalue' '$offsetvalue' '$output_file'
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
34 python $1/Matrix_Transformations.py $3 $5 $7 ${11} ${10} $4
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
35 elif [ "$2" = "Matrix_Validations" ]; then
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
36 echo "validations chosen"
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
37 #python '$__tool_directory__/Matrix_Validations.py' '$p_input' '${manipulation.extra.choice}' '${manipulation.extra.axis}' '$output_file'
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
38 python $1/Matrix_Validations.py $3 $5 $7 $4
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
39 else
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
40 echo "no valid choice made"
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
41 fi
f1bcd79cd923 Uploaded
insilico-bob
parents:
diff changeset
42