Skip to content
Snippets Groups Projects
Commit 56025656 authored by Magali Ruffier's avatar Magali Ruffier
Browse files

ENSCORESW-1731: remove synonyms if not from display xref

parent 01aa35f5
No related branches found
No related tags found
No related merge requests found
...@@ -718,6 +718,15 @@ DXS ...@@ -718,6 +718,15 @@ DXS
$reset_status_sth->execute(); $reset_status_sth->execute();
$reset_status_sth->finish; $reset_status_sth->finish;
#
# Clean up synonyms linked to xrefs which are not the display xref
# Synonyms are only used as alternative gene names, so should be synonyms of the gene symbol chosen
#
my $syn_clean_sth = $self->core->dbc->prepare("DELETE es FROM external_synonym es, xref x LEFT JOIN gene g ON g.display_xref_id = x.xref_id WHERE es.xref_id = x.xref_id AND isnull(g.display_xref_id)");
$syn_clean_sth->execute();
$syn_clean_sth->finish();
} }
......
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