Skip to content
Snippets Groups Projects
Unverified Commit b00cbe3f authored by Matthew Laird's avatar Matthew Laird Committed by GitHub
Browse files

Merge pull request #254 from Ensembl/feature/havana_desc

ENSCORESW-2742: clean up descriptions from automatic updates
parents 71dab88b 489a9c0f
No related branches found
No related tags found
2 merge requests!273Master,!273Master
......@@ -227,7 +227,14 @@ sub set_display_xrefs_from_stable_table{
$reset_sth->execute();
$reset_sth->finish;
$reset_sth = $core_dbi->prepare("UPDATE transcript SET display_xref_id = null WHERE biotype NOT IN ('LRG_gene')");
# Remove any leftover transcript description, as it is not used anywhere
$reset_sth = $core_dbi->prepare("UPDATE transcript SET display_xref_id = null");
$reset_sth->execute();
$reset_sth->finish;
# Remove descriptions assigned through the xref pipeline, recognisable by the 'Source' field
# This will maintain any manually added descriptions
$reset_sth = $core_dbi->prepare("UPDATE gene SET description = null WHERE description like '%[Source:%]%'");
$reset_sth->execute();
$reset_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