Mercurial > repos > md-anderson-bioinformatics > heat_map_creation_advanced
diff heatmap_advanced.sh @ 2:19382473a76b draft
Uploaded
author | insilico-bob |
---|---|
date | Thu, 08 Feb 2018 14:47:49 -0500 |
parents | 603f99d9e776 |
children | 1f13d304ddbd |
line wrap: on
line diff
--- a/heatmap_advanced.sh Tue Dec 05 14:59:26 2017 -0500 +++ b/heatmap_advanced.sh Thu Feb 08 14:47:49 2018 -0500 @@ -24,12 +24,16 @@ #echo "23: " ${24} #echo $1 $2 $3 $4 $5 $6 $7 $8 $9 ${10} ${11} ${12} ${13} ${14} ${15} ${16} ${17} ${18} ${19} ${20} ${21} ${22} ${23} +#get tool data and tool install directories +tooldir=$(cut -d';' -f1 <<< ${12}) +tooldata=$(cut -d';' -f2 <<< ${12}) + #create temp directory for row and col order and dendro files. -tdir=${12}/$(date +%y%m%d%M%S) +tdir=$tooldata/$(date +%y%m%d%M%S) echo $tdir mkdir $tdir #run R to cluster matrix -output="$(R --slave --vanilla --file=${12}/CHM_Advanced.R --args $4 $5 $6 $7 $8 $9 ${10} $tdir/ROfile.txt $tdir/COfile.txt $tdir/RDfile.txt $tdir/CDfile.txt ${13} ${14} ${15} ${16} 2>&1)" +output="$(R --slave --vanilla --file=$tooldir/CHM_Advanced.R --args $4 $5 $6 $7 $8 $9 ${10} $tdir/ROfile.txt $tdir/COfile.txt $tdir/RDfile.txt $tdir/CDfile.txt ${13} ${14} ${15} ${16} 2>&1)" rc=$?; if [ $rc != 0 ] then @@ -71,6 +75,6 @@ #echo "classifications: " $classifications #call java program to generate NGCHM viewer files. -java -jar ${12}/GalaxyMapGen.jar "${1}" "${2}" "${3}" DataLayer1 $4 linear ${15} ${16} $5 $6 $7 $tdir/ROfile.txt $tdir/RDfile.txt "${17}" "${19}" $8 $9 ${10} $tdir/COfile.txt $tdir/CDfile.txt "${18}" "${20}" ${11} "${21}" $classifications +java -jar $tooldir/GalaxyMapGen.jar "${1}" "${2}" "${3}" DataLayer1 $4 linear ${15} ${16} $5 $6 $7 $tdir/ROfile.txt $tdir/RDfile.txt "${17}" "${19}" $8 $9 ${10} $tdir/COfile.txt $tdir/CDfile.txt "${18}" "${20}" ${11} "${21}" $classifications #clean up tempdir rm -rf $tdir