<html>
	<head>
		<title>
			ANISEED - Est cluster sequence (Ciona intestinalis)
		</title>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<meta name="description"
			content="You will find on this page the nucleotide sequence and the amino-acid sequence of Halocynthia or Ciona of Est cluster. For more info, contact aniseed@ibdm.univ-mrs.fr">
		<meta name="keywords"
			content="Ciona intestinalis est cluster, nucleotide sequence sequence, amino acid sequence, Ciona intestinalis, Halocynthia roretzi, ascidian database, ciona intestinalis database, Ensembl, JGI, Kyoto.">
		<meta name="robots" content="index, follow, all">
		<meta http-equiv="Content-Language" content="EN">
	</head>

<?php
/*
 ANISEED, NISEED System and Database
 Copyright (C) 2007 Olivier Tassy, Fabrice Daian, Patrick Lemaire

 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.

 */
	include("connection.php");
	//Title before frames_header
	include("frames_header.php");
	
	function formatSequence($sequence)
	{
		$sequence = chunk_split($sequence, 80, "\n");
		return $sequence;
	}
?>

<?php
	$idCluster = $_GET["cluster_id"];
	$queryClusterSequence = "SELECT \"cluster_name\", \"sequence_prot\", \"sequence_nuc\"
		FROM \"EST_CLUSTER\"
		WHERE \"cluster_id\"=$idCluster;";
	$resultClusterSequence = pg_query($c,$queryClusterSequence);
	if($arrayClusterSequence=pg_fetch_array($resultClusterSequence))
	{
		$nameCluster = $arrayClusterSequence["cluster_name"];
		$sequenceProt = trim($arrayClusterSequence["sequence_prot"]);
		$sequenceNuc = trim($arrayClusterSequence["sequence_nuc"]);
		print '<title>ANISEED - EST cluster sequence: '.$nameCluster.'</title>';
		print '<br />';
		//////////////////////////////////////////PROTEIC SEQUENCE/////////////////////////////////////////////
		print "<br /><br /><font color=\"#D64242\" size=\"3\"><b>EST cluster ".$nameCluster."</b></font></h2>";
		print "<br /><u><font color=\"#456898\" size=\"3\"><b>Consensus amino-acid sequence</b></font></u><br /><strong>Length: </strong>".strlen($sequenceProt)."<br /><br /><pre><font color=\"#000000\" face=\"Courier New, Courier, mono\" size=\"2\">&gt;$nameCluster<br />".formatSequence($sequenceProt)."</font></pre>";
		//////////////////////////////////////////SEQUENCE/////////////////////////////////////////////
		print "<br /><br /><u><font color=\"#456898\" size=\"3\"><b>Consensus nucleotide sequence</b></font></u><br /><br /><strong>Length: </strong>".strlen($sequenceNuc)."<br /><br /><pre><font color=\"#000000\"face=\"Courier New, Courier, mono\" size=\"2\">&gt;$nameCluster<br />".formatSequence($sequenceNuc)."</font></pre>";
	}
?>

<?php
	include("frames_footer.php");
?> 
