changeset 1:856b5b718d21 draft

Uploaded
author davidvanzessen
date Mon, 18 Aug 2014 04:42:59 -0400
parents 74d2bc479bee
children 2f4298673519
files mutation_analysis.xml wrapper.sh
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mutation_analysis.xml	Mon Aug 18 04:04:37 2014 -0400
+++ b/mutation_analysis.xml	Mon Aug 18 04:42:59 2014 -0400
@@ -1,7 +1,7 @@
 <tool id="mutation_analysis_shm" name="Mutation Analysis" version="1.0">
 	<description></description>
 	<command interpreter="bash">
-		wrapper.sh $in_file $out_file $out_file.files_path
+		wrapper.sh $in_file $out_file $out_file.files_path ${in_file.name}
 	</command>
 	<inputs>
 		<param name="in_file" type="data" label="IMGT zip file to be analysed" />
--- a/wrapper.sh	Mon Aug 18 04:04:37 2014 -0400
+++ b/wrapper.sh	Mon Aug 18 04:42:59 2014 -0400
@@ -4,6 +4,7 @@
 input=$1
 output=$2
 outdir=$3
+title=$4
 mkdir $outdir
 
 unzip $input -d $PWD/files/ > $PWD/unziplog.log
@@ -74,7 +75,7 @@
 all_n=`cat $outdir/n.txt`
 
 
-echo "<html><table border='1'>" > $output
+echo "<html><center><h1>$title</h1></center><table border='1'>" > $output
 echo "<tr><th>info</th>" >> $output
 echo "<th><a href='identification/ca.txt'>ca (N = $ca_n)</a></th>" >> $output
 echo "<th><a href='identification/ca1.txt'>ca1 (N = $ca1_n)</a></th>" >> $output