From: miles Date: Wed, 15 Aug 2012 19:09:12 +0000 (+0000) Subject: Final modifications. Working download link and image generation. Notes X-Git-Url: http://gitweb.planteome.org/?a=commitdiff_plain;h=9a5c2dc1ebf8a37e3811737c7e2ebcb7ff4c48bc;p=old-jaiswallab-svn%2F.git Final modifications. Working download link and image generation. Notes for future: Downloadable image doesn't have special grey and gold squares representing 0 and 1 genes, respectively. Possibility of modification later. If the visual effects of the scroll bars on heatMap.php page becomes an issue, consider surrounding current div tag with an additional div tag in order to simulate scrolling. svn path=/; revision=376 --- diff --git a/Personnel/miles/Web Page/ClusterInfo.php b/Personnel/miles/Web Page/ClusterInfo.php index dda7d0f..af1718e 100644 --- a/Personnel/miles/Web Page/ClusterInfo.php +++ b/Personnel/miles/Web Page/ClusterInfo.php @@ -16,15 +16,19 @@ $password="inparanoid-read-user_pw"; $database="inparanoid_data"; $url="floret.cgrb.oregonstate.edu:3306"; +$info = explode(",",$_POST['param']); + $connection=mysql_connect($url,$username,$password); mysql_select_db($database); -$query="select species, gene from super_clust where super_id=" . $_POST['param'] . " order by species"; +$query="select species, gene from super_clust where super_id=" . $info[0] . " order by species"; $results=mysql_query($query); +$numRows = mysql_num_rows($results); + if(!$results) { echo "DB Error, could not list tables"; } -echo "Genes contained within this cluster:

"; +echo "Cluster " . $info[1] . " contains " . $numRows . " genes:

"; $row = mysql_fetch_row($results); while($row != null) { diff --git a/Personnel/miles/Web Page/ClusterSpeciesInfo.php b/Personnel/miles/Web Page/ClusterSpeciesInfo.php index 98a8c97..0602cb3 100644 --- a/Personnel/miles/Web Page/ClusterSpeciesInfo.php +++ b/Personnel/miles/Web Page/ClusterSpeciesInfo.php @@ -15,6 +15,7 @@ $info=explode(",", $_POST['param']); $cluster=$info[0]; $species=$info[1]; $clusterIndex=$info[2]; +$count = $info[3]; $connection=mysql_connect($url,$username,$password); mysql_select_db($database); @@ -26,7 +27,7 @@ if(!$results) { echo "DB Error, could not list tables"; } -echo str_replace("_", " ", $species) . " has the following genes in cluster " . $clusterIndex . ":

"; +echo str_replace("_", " ", $species) . " has " . $count . " genes in cluster " . $clusterIndex . ":

"; $row = mysql_fetch_row($results); while($row != null) { diff --git a/Personnel/miles/Web Page/Heatmap.jar b/Personnel/miles/Web Page/Heatmap.jar index fa7e9ec..a39e06f 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/SpeciesInfo.php b/Personnel/miles/Web Page/SpeciesInfo.php index 15a317c..62c8e94 100644 --- a/Personnel/miles/Web Page/SpeciesInfo.php +++ b/Personnel/miles/Web Page/SpeciesInfo.php @@ -40,10 +40,12 @@ mysql_select_db($database); $query="select gene,super_id from super_clust where species=\"" . $species . "\" and (" . $clusters . ")"; $results=mysql_query($query); +$numRows = mysql_num_rows($results); + if(!$results) { echo "DB Error, could not list tables"; } -echo str_replace("_"," ",$species) . " has the following genes:

"; +echo str_replace("_"," ",$species) . " has " . $numRows . " genes in the surveyed clusters:

"; echo "GENE ID -------------------- CLUSTER ID
"; diff --git a/Personnel/miles/Web Page/heatMap.php b/Personnel/miles/Web Page/heatMap.php index 294e0f7..e3124c7 100644 --- a/Personnel/miles/Web Page/heatMap.php +++ b/Personnel/miles/Web Page/heatMap.php @@ -18,7 +18,8 @@ if(!preg_match("/[a-zA-Z0-9\.]/", substr($input,-1))) { $input = substr_replace($input ,"",-1); } } -exec("java -jar Heatmap.jar " . $input, $output); +$finalInput = "webpage " . $input; +exec("java -Djava.awt.headless=true -jar Heatmap.jar " . $finalInput, $output); //main heatmap data parsing $tmp; @@ -111,8 +112,6 @@ $height = 25 * $clusterCount + 200 + 20 * sizeof($clickableGenes);





- - 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).
@@ -127,12 +126,17 @@ Click on a species name, cluster number, or cell for more information. -
Your browser does not support the canvas element. - +
+ +
+ +
+ +