Hello!

To see the file structure, click on "tree".

Note that updates take place every 10 minutes, commits may not be seen immediately.
species elimination working, must be known before heatmap is generated.
authormiles <miles@localhost>
Thu, 11 Oct 2012 20:14:15 +0000 (20:14 +0000)
committermiles <miles@localhost>
Thu, 11 Oct 2012 20:14:15 +0000 (20:14 +0000)
next update hopefully will have checkboxes.
`

svn path=/; revision=399

Personnel/miles/Web Page/Heatmap.jar
Personnel/miles/Web Page/Main Page.html
Personnel/miles/Web Page/heatMap.php

index a39e06fda33d376313e7a9076be78eeb90852a05..afcfb49b080c0a1c0c40ed6eb2ed9688e736e631 100644 (file)
Binary files a/Personnel/miles/Web Page/Heatmap.jar and b/Personnel/miles/Web Page/Heatmap.jar differ
index 6fabc80b2707643ed98695c78115ad2a454ddc3e..c040e728c577031a0eb82c897486bacb3deb5107 100644 (file)
@@ -5,17 +5,21 @@
 </head>
 
 <body>
-Please enter all the gene IDs you would like the Heat Map to reference,
-each on its own line. Click "Submit" when done:
+Please enter all the gene IDs you would like the Heat Map to reference, each on its own line in the first box. <br>
+In the second box, enter all species you would like excluded from the final Heat Map. <br>
+Click "Submit" when done:
 </body>
 
 <form enctype="multipart/form-data" method="post" action="heatMap.php">
 <P>
-<TEXTAREA name="geneIDs" rows ="5">
+<TEXTAREA name="geneIDs" rows ="5" value="Gene IDs">
 </TEXTAREA>
 <input type="submit" value="Submit" />
+<TEXTAREA name="excludedSpecies" rows = "3" value="">
+</TEXTAREA>
 </form>
 
+
 <form enctype="multipart/form-data" method="post" action="upload.php">
 <input type="file" name="genelistFile">
 <input type="submit" value="Submit" />
index e3124c7f30f2dea53a5ff654ead6c0596d5ca89d..f539ce9ae5e26b64e5410a6e7879383f5e08a28c 100644 (file)
@@ -5,7 +5,7 @@
 </head>
 <body>
 <?php
-
+echo $_POST["excludedSpecies"] .  "<br>";
 $input = "";
 if (!isset($_POST["geneIDs"])) {
 echo "Heatmap <br\>";
@@ -18,8 +18,16 @@ if(!preg_match("/[a-zA-Z0-9\.]/", substr($input,-1))) {
   $input = substr_replace($input ,"",-1);
   }
 }
-$finalInput = "webpage " . $input;
-exec("java -Djava.awt.headless=true -jar Heatmap.jar " . $finalInput, $output);
+$excludedSpecies = preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", " ", $_POST["excludedSpecies"]);
+if(!preg_match("/[a-zA-Z0-9\.]/", substr($excludedSpecies,-1))) {
+  $excludedSpecies = substr_replace($excludedSpecies ,"",-1);
+  }
+echo $excludedSpecies . "<br>";
+
+$excludedSpecies = trim($_POST["excludedSpecies"]);
+$finalInput = "webpage " . $excludedSpecies . ";" . $input;
+echo $finalInput . "<br>";
+exec("java -Djava.awt.headless=true -jar Heatmap.jar " . "\"" . $finalInput . "\"", $output);
 
 //main heatmap data parsing
 $tmp;