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

View of /FigKernelPackages/FIGGenDB.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (download) (as text) (annotate)
Thu Nov 11 04:22:48 2004 UTC (15 years, 6 months ago) by olson
Branch: MAIN
CVS Tags: merge-trunktag-bobdev_news-2, Root-bobdev_news, merge-bobdev_news-1, merge-trunktag-bobdev_news-1, merge-bodev_news-3, merge-bobdev_news-2, merge-trunktag-bodev_news-3
Branch point for: Branch-bobdev_news
Changes since 1.3: +25 -15 lines
GenDB changes.

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) = @_;
    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