5 use CXGN
::DB
::Connection
;
9 my $sequence_name = shift;
11 my $dbh = CXGN
::DB
::Connection
->new() or die "cannot connect: $!\n";
13 my $sequence = &get_sequence_1
($sequence_name,$dbh);
14 if ($sequence eq "") {
15 $sequence = &get_sequence_2
($sequence_name,$dbh);
18 $dbh->disconnect(42) or die "cannot disconnect: $!\n";
24 my ($sequence_name,$dbh) = @_;
26 my $select = "select seq from unigene join unigene_member using "
27 . "(unigene_id) join est using (est_id) where sequence_name = '$sequence_name';";
28 my $sth = $dbh->prepare("$select");
30 my $sequence = $sth->fetchrow();
37 my ($sequence_name,$dbh) = @_;
39 my $select = "select seq from unigene_consensi join unigene "
40 . "using (consensi_id) where sequence_name = '$sequence_name';";
41 my $sth = $dbh->prepare("$select");
43 my $sequence = $sth->fetchrow();