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

ENSCORESW-1731: remove mislinked synonyms

parent 6773339c
No related branches found
No related tags found
No related merge requests found
......@@ -311,6 +311,16 @@ sub set_display_xrefs_from_stable_table{
}
}
}
#
# 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