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

fix to make sure species is checked

parent 2eeff044
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ sub create_xrefs {
my $species_id_check = $name2species_id{$species};
# skip xrefs for species that aren't in the species table
if (defined ($species_id) and $species_id = $species_id_check) {
if (defined ($species_id) and $species_id == $species_id_check) {
my ($acc) = $entry =~ /ACCESSION\s+(\S+)/;
my ($ver) = $entry =~ /VERSION\s+(\S+)/;
......
......@@ -101,7 +101,7 @@ sub create_xrefs {
my $species_id_check = $name2species_id{$species};
# skip xrefs for species that aren't in the species table
if (defined($species_id) and $species_id = $species_id_check) {
if (defined($species_id) and $species_id == $species_id_check) {
my ($acc_no_ver,$ver) = split (/\./,$acc);
$xref->{ACCESSION} = $acc_no_ver;
......
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