comparison mutspecNmf_wrapper.sh @ 4:916846f73e25 draft

Uploaded
author iarc
date Fri, 29 Apr 2016 05:11:28 -0400
parents 8c682b3a7c5b
children 097ae310ced0
comparison
equal deleted inserted replaced
3:14fe7238c6d7 4:916846f73e25
1 #!/bin/bash 1 #!/bin/bash
2 2
3 ######################################### 3 #########################################
4 ### SPECIFY THE NUMBER OF CPU ### 4 ### SPECIFY THE NUMBER OF CPU ###
5 ######################################### 5 #########################################
6 cpu=1 6 cpu=8
7 7
8 8
9 9
10 10
11 html=$1;shift 11 html=$1;shift
12 parameters=$1;shift 12 parameters=$1;shift
13 source=$1;shift 13 source=$1;shift
14 input=$1 14 input=$1
15 15
16 if [[ $source == "html" ]] 16 if [[ $source == "html" ]]
17 then input=${input%%.*}_files/Mutational_Analysis/Figures/Input_NMF/Input_NMF_Count.txt 17 then input=${input%%.*}_files/Mutational_Analysis/Figures/Input_NMF/Input_NMF_Count.txt
18 fi 18 fi
19 19
20 output_dir=${html%%.*}_files 20 output_dir=${html%%.*}_files
21 mkdir $output_dir 21 mkdir $output_dir
42 if [[ ! -e "$output_dir/NMF/Figures/Heatmap_MixtureCoeff.png" ]]; then 42 if [[ ! -e "$output_dir/NMF/Figures/Heatmap_MixtureCoeff.png" ]]; then
43 echo "WARNING: NMF package can't plot the heatmap when the samples size is above 300. <br/>" >> $html 43 echo "WARNING: NMF package can't plot the heatmap when the samples size is above 300. <br/>" >> $html
44 else 44 else
45 echo "<td> <center> <a href="NMF/Figures/Heatmap_MixtureCoeff.png">" >> $html 45 echo "<td> <center> <a href="NMF/Figures/Heatmap_MixtureCoeff.png">" >> $html
46 echo "<img src="NMF/Figures/Heatmap_MixtureCoeff.png" /></a> <center> </td>" >> $html 46 echo "<img src="NMF/Figures/Heatmap_MixtureCoeff.png" /></a> <center> </td>" >> $html
47 fi 47 fi
48 echo "</tr>" >> $html 48 echo "</tr>" >> $html
49 echo "</table>" >> $html 49 echo "</table>" >> $html
50 50
51 echo "<br/><br/>" >> $html 51 echo "<br/><br/>" >> $html
52 52