BioPHP: PHP for Biocomputing


[ Listing of Web Scripts ] [ Parameter Page ] [ Home Page ]

Source Code Listing for charge_res.php

Note: This uses unreleased BioPHP 1.1 code. Attempting to run this with 1.0 may result in some unexplained or unpredictable behavior.
// This code was written by Serge Gregorio, Jr. (serge525@hotmail.com) 
// and is under the General Public License (GPL) 2.0 license.

<html>
<head>
   <title>Charge and Chemgrp Example</title>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFCC" text="#000000">
   <H1>Charge/Chemgroup String - Result Page</H1>
   <table>
      <tr>
         <td>
            <br><B>INPUT SEQUENCE:</B><BR>
            <textarea name="nucseq" rows=15 cols=80 align=right>
            <?php
               require_once("seq.inc");
               require_once("etc.inc");

              $amseq = strtoupper($amseq);
              $fmt_amseq = preg_replace("/[^GAVLISTNQFYWCMPDEKRH*X]/", "", $amseq);
              $seqo = new Seq();
              $seqo->sequence = $fmt_amseq;
              @$charge_string = $seqo->charge();	
              @$chemgrp_string = $seqo->chemgrp();
              print $fmt_amseq;
           ?>
           </textarea>
         </td>
      </tr>

      <tr>
         <td>
            <BR><B>CHARGE STRING:</B><BR>
            <textarea name="charge_string" rows=15 cols=80>
            <?php
               print $charge_string;
            ?>
            </textarea>
         </td>
      </tr>

      <tr>
         <td>
            <BR><B>CHEMGRP STRING:</B><BR>
            <textarea name="chemgrp_string" rows=15 cols=80>
            <?php
               print $chemgrp_string;
            ?>
            </textarea>
         </td>
      </tr>
   </table>
	
   <p>Back to <a href='charge_par.html'>Parameter Page</a> </p>
</body>

</html>

[ Listing of Web Scripts ] [ Parameter Page ] [ Home Page ] 

 


Copyright © 2003 by Sergio Gregorio, Jr.
All rights reserved.