Skip to content
Snippets Groups Projects
Commit 61f934a1 authored by Andy Yates's avatar Andy Yates
Browse files

get_species() lacked a reference to $self and the method was not invoked as an object method. Fixed

parent 3be66ae1
No related branches found
No related tags found
No related merge requests found
......@@ -178,7 +178,7 @@ sub run {
my $species_name;
if(!defined($species_id)){
($species_id, $species_name) = get_species($file);
($species_id, $species_name) = $self->get_species($file);
}
$self->species_id($species_id) ;
......@@ -1062,7 +1062,7 @@ sub external_source_db_name{
# For UniProt files the filename is the taxonomy ID
sub get_species {
my ($file) = @_;
my ($self, $file) = @_;
my ($taxonomy_id, $extension) = split(/\./, basename($file));
my $sth = $self->dbi()->prepare("SELECT species_id,name FROM species WHERE taxonomy_id=?");
$sth->execute($taxonomy_id);
......
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