Skip to content
Snippets Groups Projects
Commit 853c2dd9 authored by Ian Longden's avatar Ian Longden
Browse files

small fixes for new input format

parent 73b9be6a
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ my $xref_password = "ensembl";
sub dump_seqs{
my ($self, $xref) = @_;
$self->dump_ensembl($slice);
$self->dump_ensembl();
$self->dump_xref($xref);
}
......@@ -96,7 +96,7 @@ sub dump_xref{
$sql .= "where p.xref_id = x.xref_id and ";
$sql .= " p.sequence_type ='dna' and ";
$sql .= " x.species_id = ".$species_id." ";
$sth = dbi()->prepare($sql);
$sth = $xref->dbi()->prepare($sql);
$sth->execute();
my $i = 0;
while(my @row = $sth->fetchrow_array()){
......@@ -120,7 +120,7 @@ ENDDNA:
$sql .= "where p.xref_id = x.xref_id and ";
$sql .= " p.sequence_type ='peptide' and ";
$sql .= " x.species_id = ".$species_id." ";
$sth = dbi()->prepare($sql);
$sth = $xref->dbi()->prepare($sql);
$sth->execute();
$i = 0;
while(my @row = $sth->fetchrow_array()){
......
......@@ -73,7 +73,7 @@ sub dbi {
my $self = shift;
my $dbi = DBI->connect("dbi:mysql:host=".$self->host().";port=".$self->port().";database="$self->database(),
my $dbi = DBI->connect("dbi:mysql:host=".$self->host().";port=".$self->port().";database=".$self->dbname(),
$self->user,
$self->password,
{'RaiseError' => 1}) || die "Can't connect to database";
......
......@@ -9,7 +9,7 @@ dir=./xref
species=homo_sapiens
host=ecs2
port=3365
dbname=homo_sapiens_core_24_34e
dbname=homo_sapiens_core_25_34e
user=ensro
password=
dir=./test
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment