The site has moved. Please update your bookmarks.

If you are not redirected, click here to access the PDSP IMS site.




pdspView(); $this->numCols = 12; } // override this if you have a different column setup function printAverageRow($kiTotal, $kiNum) { //print("printing average row: ".$kiTotal.", ".$kiNum."
"); $colorTD = ""; if ($kiNum > 0) { print("".$colorTD." "); if ($kiNum == 1) { print("colspan=\"".$this->numCols."\"> "); } else { $ave = sprintf("%.2f", ($kiTotal/$kiNum)); print("colspan=5>Average".$colorTD." colspan=1>". $ave."".$colorTD." colspan=6> "); } print("\n"); } else { print("".$colorTD." "); print("colspan=\"".$this->numCols."\"> "); } } // override for more (or less) columns function printHeaderRow() { print("ID". "Receptor/Aliases". "UniGene". "Test Ligand Name/Aliases". "Test Ligand Image". "NCI". "Ki (nM)". "PubChem". "Hot Ligand/Aliases". "Species". "Source". "Reference"); } // this is the other method you want to override for pdspImg! function printRow($queryRow) { $this->printKiKey($queryRow); $this->printRecAlias($queryRow); $this->printHGS($queryRow); $this->printTestAlias($queryRow); $this->printTestImage($queryRow); //$this->printRecAlias($queryRow); $this->printNCI($queryRow); $this->printKi($queryRow); $this->printPCC($queryRow); $this->printPCS($queryRow); $this->printHotAlias($queryRow); $this->printSpecies($queryRow); $this->printSource($queryRow); $this->printReference($queryRow); } function printTestImage($queryRow) { print($this->td); if (!strcmp(trim($queryRow['tstImgFile']), "") == 0) { // $imageString = "".$tstName.""; $imageString = "\"".$queryRow['thisAliasString']."\""; } else { $imageString = "N/A"; } print($imageString); print(""); } } ?>fp = fopen($fileToRead, $accessType); } // returns the next line from a string, or NULL if the end of file was reached function readLine() { if ($this->fp) { if (!feof($this->fp)) { return fgets($this->fp, 4096); } } else { print("File pointer invalid!"); } return NULL; } // returns a string representation of the file, or NULL if the file pointer was invalid // most of the time that just means it didn't open correctly, the file might not exist, etc function getFileContents() { $fileContents = ""; if ($this->fp) { while (!feof($this->fp)) { $buffer = fgets($this->fp, 4096); $fileContents.=$buffer; } } else { print("File pointer invalid!"); $fileContents = NULL; } return $fileContents; } function closeFile() { fclose($this->fp); } } ?>