</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" />
</head>
<body>
<?php
-
+echo $_POST["excludedSpecies"] . "<br>";
$input = "";
if (!isset($_POST["geneIDs"])) {
echo "Heatmap <br\>";
$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;