From: miles Date: Fri, 19 Oct 2012 23:24:32 +0000 (+0000) Subject: Species elimination finally working, only from Main Page though. now X-Git-Url: http://gitweb.planteome.org/?a=commitdiff_plain;h=7fe3d9a9d7dea4999a874b64b42930208a2a9940;p=old-jaiswallab-svn%2F.git Species elimination finally working, only from Main Page though. now should be usable for further publications. svn path=/; revision=404 --- diff --git a/Personnel/miles/Web Page/Heatmap.jar b/Personnel/miles/Web Page/Heatmap.jar index afcfb49..0a9dbd4 100644 Binary files a/Personnel/miles/Web Page/Heatmap.jar and b/Personnel/miles/Web Page/Heatmap.jar differ diff --git a/Personnel/miles/Web Page/heatMap.php b/Personnel/miles/Web Page/heatMap.php index 2683896..09bc8c3 100644 --- a/Personnel/miles/Web Page/heatMap.php +++ b/Personnel/miles/Web Page/heatMap.php @@ -10,7 +10,9 @@ if(isset($_POST['originalSpecies'])) { $originalSpecies = explode(" ", $_POST['originalSpecies']); } $excludedSpecies = ""; -if(isset($_POST['param'])) $excludedSpecies = $_POST['param']; +if(isset($_POST['excluded'])) { + $excludedSpecies = $_POST['excluded']; + } $input = ""; if (!isset($_POST["geneIDs"])) { @@ -26,6 +28,8 @@ if(!preg_match("/[a-zA-Z0-9\.]/", substr($input,-1))) { } $finalInput = "webpage " . $excludedSpecies . ";" . $input; +//echo $finalInput; + exec("java -Djava.awt.headless=true -jar Heatmap.jar " . "\"" . $finalInput . "\"", $output); //main heatmap data parsing @@ -102,8 +106,13 @@ $height = 25 * $clusterCount + 200; ?> -





+




+ +The following species have been excluded from the heat map: + + +

Click on a species name, cluster number, or cell for more information.
Scroll down to see more clusters, right to see more species (if any exist).
@@ -113,13 +122,15 @@ Click on a species name, cluster number, or cell for more information. + + @@ -143,8 +155,8 @@ echo $originalSpecies[$i] . "\n"; Your browser does not support the canvas element. -
- +
+
@@ -232,6 +244,8 @@ function drawClusters(startCluster) { } function drawMap(init) { + document.getElementById("canvasDiv").scrollLeft = leftScrollOffset; + document.getElementById("canvasDiv").scrollTop = topScrollOffset; scrolledLeft = document.getElementById("scrollDiv").scrollLeft - leftScrollOffset; scrolledTop = document.getElementById("scrollDiv").scrollTop - topScrollOffset +25; // NOTE the 25 accounts for the scrollbar offset allowing for scrolling up/left if(scrolledLeft > speciesCount*cellSize - maxCols*cellSize) { @@ -438,7 +452,8 @@ var eliminatedSpecies = ""; echo "} \n"; } ?> - document.redraw.param.value = eliminatedSpecies; + document.redraw.excluded.value = eliminatedSpecies; + alert(eliminatedSpecies); document.redraw.submit(); } @@ -452,5 +467,9 @@ canvas.addEventListener('mouseup', showInfo, false); +1. Possibility of species exclusion dynamically from heatMap.php +2. Possibility of putting exclude species forms in a table on Main Page +3. Updating links given by Pankaj +4. Improve downloaded image to match with heat map generated +5. Improve efficiency of species elimination call +--> \ No newline at end of file diff --git a/Personnel/miles/Web Page/upload.php b/Personnel/miles/Web Page/upload.php index 9bfc741..af35d80 100644 --- a/Personnel/miles/Web Page/upload.php +++ b/Personnel/miles/Web Page/upload.php @@ -37,6 +37,7 @@ else if($goToNode10){ ?> +