Paragraph here
";
$input = trim($_POST["genelist"]);
}
else {
echo "Click on a Species, Cluster, or Cell for more details.
Click on a gene name to see which cell it belongs to.";
$input = preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", " ", $_POST["geneIDs"]);
if(!preg_match("/[a-zA-Z0-9\.]/", substr($input,-1))) {
$input = substr_replace($input ,"",-1);
}
}
$finalInput = "webpage " . implode(" ",$includedSpecies) . ";" . $input;
exec("java -Djava.awt.headless=true -jar Heatmap.jar " . "\"" . $finalInput . "\"", $output);
//main heatmap data parsing
$tmp;
for ($i = 0; $i < sizeof($output); $i ++) {
$tmp[$i] = explode(",", $output[$i]);
}
$allSpecies;
for ($s = 0; $s < sizeof($tmp) - 2; $s ++) // the last array in tmp is the list of cluster IDs
{
$allSpecies[$s] = $tmp[$s][0];
}
if(!isset($includedSpecies)) {
$allSpecies; //TODO remove all mention of included species after java has been run
}
$allClusterIDs;
for ($c = 0; $c < sizeof($tmp[sizeof($tmp) - 2]); $c ++)
{
$allClusterIDs[$c] = $tmp[sizeof($tmp) - 2][$c];
}
$heatMapData;
for ($s = 0; $s < (sizeof($tmp) - 2); $s ++)
{
for ($c = 0; $c < sizeof($allClusterIDs); $c ++)
{
$heatMapData[$s][$c] = $tmp[$s][$c+1];
}
}
$geneIDs = explode(" ", $input);
$maxCount = $output[sizeof($output)-1];
$clusterCount = sizeof($allClusterIDs);
$speciesCount = sizeof($allSpecies);
$finalHeatMapData;
for ($i = 0; $i < sizeof($heatMapData); $i ++)
{
$finalHeatMapData[$i] = implode(",", $heatMapData[$i]);
}
?>
The following species have been included in 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).