[Bio] / FigKernelPackages / FIGGenDB.pm Repository:
ViewVC logotype

View of /FigKernelPackages/FIGGenDB.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (download) (as text) (annotate)
Thu Jul 14 15:53:54 2005 UTC (14 years, 10 months ago) by redwards
Branch: MAIN
CVS Tags: caBIG-dataload-0, caBIG-00-00-00
Changes since 1.4: +3 -0 lines
Fixed lost username in protein.cgi and removed Bound/Find uncalled gene from FIGGenDB.pm

package FIGGenDB;

use FIG;
use strict;

use Fcntl qw/:flock/;  # import LOCK_* constants
use CGI;
use POSIX;
use IPC::Open2;

use DBrtns;
use FIG_Config;


use constant GENDB_CGI => "/GENDB/cgi-bin/";


sub linkPEGGenDB {
    my ($peg) = @_;
    $peg =~ /fig\|(.+)\.peg/;
    my $taxon = $1;

    my $cgi = &FIG::plug_url(GENDB_CGI);
    
    return q(<a target="_blank" href=") . $cgi .
	"seed_interface.cgi?action=view".
	"&region=$peg&taxon_id=$taxon\">To View in GenDB</a>\n";
}

sub importOrganismGenDB {
    my ($peg) = @_;
    $peg =~ /fig\|(.+)\.peg/;
    my $taxon = $1;

    my $cgi = &FIG::plug_url(GENDB_CGI);

    return q(<a target="_blank" href=") . $cgi .
        "seed_interface.cgi?action=import".
        "&taxon_id=$taxon\">Import Organism into GenDB</a>\n";

}

sub linkClusterGenDB {
    my ($peg, $taxon) = @_;
    # RAE: just return undef here so that we don't display the form for the Bounds as people think that this is working
    return undef;

    my $cgi = &FIG::plug_url(GENDB_CGI);
    my $html = "<form target=\"_blank\" action=\"${cgi}seed_interface.cgi\">\n
                Bound1<input type=\"text\" id=\"bound1\" name=\"bound1\"/>\n
                Bound2<input type=\"text\" id=\"bound2\" name=\"bound2\"/>\n
                Candidate(s):<input type=\"text\" id=\"candidates\" name=\"candidates\"/>\n
		Threshold<input type=\"text\" name=\"fmgth\" value=\"1e-20\"/>\n
                <input type=\"hidden\" name=\"action\" value=\"predict\"/>\n
		<input type=\"hidden\" name=\"peg_id\" value=\"$peg\"/>\n
		<input type=\"submit\" name=\"GenDB\" value=\"Find uncalled Gene\"/>\n 
                </form>";
    return $html;
}



1;

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3