From: miles Date: Thu, 11 Oct 2012 22:01:09 +0000 (+0000) Subject: check boxes for removing species from the heat map X-Git-Url: http://gitweb.planteome.org/?a=commitdiff_plain;h=25deca7972e77dd36d606dc0f75de70098ae7084;p=old-jaiswallab-svn%2F.git check boxes for removing species from the heat map svn path=/; revision=400 --- diff --git a/Personnel/miles/Web Page/Main Page.html b/Personnel/miles/Web Page/Main Page.html index c040e72..03fd56d 100644 --- a/Personnel/miles/Web Page/Main Page.html +++ b/Personnel/miles/Web Page/Main Page.html @@ -14,9 +14,7 @@ Click "Submit" when done:

- - + diff --git a/Personnel/miles/Web Page/heatMap.php b/Personnel/miles/Web Page/heatMap.php index f539ce9..c3bd403 100644 --- a/Personnel/miles/Web Page/heatMap.php +++ b/Personnel/miles/Web Page/heatMap.php @@ -5,7 +5,10 @@ "; + +$excludedSpecies = ""; +if(isset($_POST['param'])) $excludedSpecies = $_POST['param']; + $input = ""; if (!isset($_POST["geneIDs"])) { echo "Heatmap "; @@ -18,15 +21,8 @@ if(!preg_match("/[a-zA-Z0-9\.]/", substr($input,-1))) { $input = substr_replace($input ,"",-1); } } -$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 . "
"; -$excludedSpecies = trim($_POST["excludedSpecies"]); $finalInput = "webpage " . $excludedSpecies . ";" . $input; -echo $finalInput . "
"; exec("java -Djava.awt.headless=true -jar Heatmap.jar " . "\"" . $finalInput . "\"", $output); //main heatmap data parsing @@ -125,11 +121,29 @@ Click on a species name, cluster number, or cell for more information.
There are " . $speciesCount . " species in the heatmap."; ?> -

- + + +
+ +

+If you do not wish to view any of the species in the final heat map, click on the checkbox next to the correct species names and then click 'submit' to reload the heat map. +

+
+ + + +\n"; +echo $allSpecies[$i] . "\n"; +} +?> +

+

+
@@ -500,6 +514,19 @@ function generateImage() { document.infoForm.submit(); } +function resubmitSpecies() { +var eliminatedSpecies = ""; + + document.redraw.param.value = eliminatedSpecies; + document.redraw.submit(); +} + drawMap(true); canvas.addEventListener('mouseup', showInfo, false);