$originalSpecies = explode(" ", $_POST['originalSpecies']);
}
$excludedSpecies = "";
-if(isset($_POST['param'])) $excludedSpecies = $_POST['param'];
+if(isset($_POST['excluded'])) {
+ $excludedSpecies = $_POST['excluded'];
+ }
$input = "";
if (!isset($_POST["geneIDs"])) {
}
$finalInput = "webpage " . $excludedSpecies . ";" . $input;
+//echo $finalInput;
+
exec("java -Djava.awt.headless=true -jar Heatmap.jar " . "\"" . $finalInput . "\"", $output);
//main heatmap data parsing
?>
-<br> <br> <br> <br> <br> <br>
+<br> <br> <br> <br> <br>
+
+The following species have been excluded from the heat map: <?php echo $excludedSpecies; ?>
+
+
+<br> <br>
Click on a species name, cluster number, or cell for more information.
<br> Scroll down to see more clusters, right to see more species (if any exist).
<br>
<input type="hidden" name="param">
</form>
+
+<!--
<br> <br>
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.
<br> <br>
<form action="heatMap.php" name="redraw" method="post">
-<input type="hidden" name="param">
+<input type="hidden" name="excluded" value = "">
<input type="hidden" name="genelist" value="<?php if(isset($_POST['genelist'])) echo $_POST['genelist'] ?>" >
-<input type="hidden" name="geneIDs" value="<?php echo $_POST['geneIDs'] ?>" >
+<input type="hidden" name="geneIDs" value="<?php if(isset($_POST['geneIDs'])) echo $_POST['geneIDs'] ?>" >
<input type="hidden" name="originalSpecies" value="<?php echo implode(" ", $originalSpecies) ?>" >
<?php
for($i = 0; $i < sizeof($originalSpecies); $i++) {
<p>
<input type="button" value="Submit" onClick="resubmitSpecies()">
</form>
+-->
Your browser does not support the canvas element.
</canvas> </div>
-<div id="scrollDiv" style="overflow: auto; float: left; height: 515px; width: 25px;" onscroll="drawMap();">
-<canvas id="nothing" width="25" height="<?php echo 250 + sizeof($allClusterIDs)*25 ?>"> </canvas>
+<div id="scrollDiv" style="overflow: auto; float: left; height: 515px; width: 15px;" onscroll="drawMap();">
+<canvas id="nothing" width="1" height="<?php echo 250 + sizeof($allClusterIDs)*25 ?>"> </canvas>
</div>
<form name="downloadImage" >
}
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) {
echo "} \n";
}
?>
- document.redraw.param.value = eliminatedSpecies;
+ document.redraw.excluded.value = eliminatedSpecies;
+ alert(eliminatedSpecies);
document.redraw.submit();
}
<!--
-
--->
+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