Mercurial > repos > md-anderson-bioinformatics > matrix_manipulation
comparison Matrix_Manipulation.sh @ 1:f1bcd79cd923 draft default tip
Uploaded
author | insilico-bob |
---|---|
date | Tue, 27 Nov 2018 14:20:40 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:7f12c81e2083 | 1:f1bcd79cd923 |
---|---|
1 #echo "1: " $1 # tool directory | |
2 #echo "2: " $2 # manipulation option | |
3 #echo "3: " $3 # input file | |
4 #echo "4: " $4 # output file | |
5 #echo "5: " $5 # choice | |
6 #echo "6: " $6 # thresh | |
7 #echo "7: " $7 # axis | |
8 #echo "8: " $8 # transpose | |
9 #echo "9: " $9 # input2 | |
10 #echo "10: " ${10} # offsetvalue | |
11 #echo "11: " ${11} # scalevalue | |
12 #echo "12: " ${12} | |
13 #echo "13: " ${13} | |
14 #echo "14: " ${14} | |
15 #echo "15: " ${15} | |
16 #echo "16: " ${16} | |
17 | |
18 #echo "tool directory is: " $1 | |
19 if [ "$2" = "Matrix_Filters" ]; then | |
20 echo "filter chosen" | |
21 #python $__tool_directory__/Matrix_Filters.py '$p_input '${manipulation.extra.choice}' '${manipulation.extra.thresh}' '${manipulation.axis}' '$output_file' | |
22 python $1/Matrix_Filters.py $3 $5 $6 $7 $4 | |
23 elif [ "$2" = "Matrix_Multiply" ]; then | |
24 echo "multiply chosen" | |
25 #python '$__tool_directory__/Matrix_Multiply.py' '$p_input' '${manipulation.extra.transpose}' '${manipulation.extra.input2}' '${manipulation.extra.choice}' '$output_file' | |
26 python $1/Matrix_Multiply.py $3 $8 $9 $5 $4 | |
27 elif [ "$2" = "Matrix_Statistics" ]; then | |
28 echo "statistics chosen" | |
29 #python '$__tool_directory__/Matrix_Statistics.py' '$p_input' '$choice' '$cutoff' '$axis' '$out_file' | |
30 python $1/Matrix_Statistics.py $3 $5 $6 $7 $4 | |
31 elif [ "$2" = "Matrix_Transformations" ]; then | |
32 echo "transform chosen" | |
33 #python '$__tool_directory__/Matrix_Transformations.py' '$p_input' '$choice' '$axis' '$scalevalue' '$offsetvalue' '$output_file' | |
34 python $1/Matrix_Transformations.py $3 $5 $7 ${11} ${10} $4 | |
35 elif [ "$2" = "Matrix_Validations" ]; then | |
36 echo "validations chosen" | |
37 #python '$__tool_directory__/Matrix_Validations.py' '$p_input' '${manipulation.extra.choice}' '${manipulation.extra.axis}' '$output_file' | |
38 python $1/Matrix_Validations.py $3 $5 $7 $4 | |
39 else | |
40 echo "no valid choice made" | |
41 fi | |
42 |