diff --git a/lib/DB_functions/get_dblink_acc_num_display.sql b/lib/DB_functions/get_dblink_acc_num_display.sql index 0d01c3030d..30d235ba17 100644 --- a/lib/DB_functions/get_dblink_acc_num_display.sql +++ b/lib/DB_functions/get_dblink_acc_num_display.sql @@ -32,25 +32,7 @@ CREATE OR REPLACE FUNCTION "public"."get_dblink_acc_num_display"("dblinkfdbconti and fdb_db_pk_id = fdbcont_fdb_db_id; - if (dblinkDbName = 'WashUZ') then - -- we need to prepend 'wz' to the acc_num - dblinkAccNumDisplay := 'wz' || dblinkAccNum; - - --replace the miranda acc num with one that looks more like the - --way curators want to display miRNA names at ZFIN. - --ZDB-FDBCONT-090529-1, dre-let-7g - --execute function - --get_dblink_acc_num_display('ZDB-FDBCONT-090529-1','dre-let-7g') - - else - - -- we need to prepend 'wz' to the acc_num - - -- spew out exactly what came in - dblinkAccNumDisplay = dblinkAccNum; - - end if; - + dblinkAccNumDisplay = dblinkAccNum; return dblinkAccNumDisplay; end diff --git a/source/org/zfin/db/postGmakePostloaddb/1165/ZFIN-9444.sql b/source/org/zfin/db/postGmakePostloaddb/1165/ZFIN-9444.sql new file mode 100644 index 0000000000..cca251958b --- /dev/null +++ b/source/org/zfin/db/postGmakePostloaddb/1165/ZFIN-9444.sql @@ -0,0 +1,46 @@ +--liquibase formatted sql +--changeset cmpich:ZFIN-9444.sql + +insert into foreign_db_contains_display_group_member + (fdbcdgm_fdbcont_zdb_id, fdbcdgm_group_id, fdbcdgm_can_view, fdbcdgm_can_add, fdbcdgm_can_edit, fdbcdgm_can_delete) +values ('ZDB-FDBCONT-040412-31', 12, true, true, true, true); + +create temp table id +( + id text +); + +insert into id +select get_id('BLASTDB'); + +insert into blast_database +(blastdb_zdb_id, blastdb_name, blastdb_abbrev, blastdb_description, blastdb_public, + blastdb_type, blastdb_tool_display_name, + blastdb_is_being_processed, blastdb_origination_id) +select id, + 'Published RNA Washington', + 'wz_est', + 'EST sequences curated by ZFIN staff from publications.', + false, + 'nucleotide', + 'Published RNA', + false, + 2 +from id; + +update foreign_db_contains +set fdbcont_primary_blastdb_zdb_id = (select id from id) +where fdbcont_zdb_id = 'ZDB-FDBCONT-040412-31'; + +update foreign_db +set fdb_db_query = '/action/blast/display-sequence?accession=' +where fdb_db_name = 'WashUZ'; + +update db_link +set dblink_acc_num = db_link.dblink_acc_num_display +where dblink_fdbcont_zdb_id = 'ZDB-FDBCONT-040412-31'; + +update db_link +set dblink_acc_num = db_link.dblink_acc_num_display, + dblink_info = dblink_info || ', added prefix wz to accession '||CURRENT_DATE +where dblink_fdbcont_zdb_id = 'ZDB-FDBCONT-040412-31'; diff --git a/source/org/zfin/db/postGmakePostloaddb/1165/db.changelog.master.xml b/source/org/zfin/db/postGmakePostloaddb/1165/db.changelog.master.xml index 877e4037be..60eef2136a 100644 --- a/source/org/zfin/db/postGmakePostloaddb/1165/db.changelog.master.xml +++ b/source/org/zfin/db/postGmakePostloaddb/1165/db.changelog.master.xml @@ -5,6 +5,6 @@ xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd"> - + \ No newline at end of file diff --git a/source/org/zfin/sequence/blast/Database.java b/source/org/zfin/sequence/blast/Database.java index bea9e5e049..18d2ad7132 100644 --- a/source/org/zfin/sequence/blast/Database.java +++ b/source/org/zfin/sequence/blast/Database.java @@ -177,6 +177,7 @@ public static enum AvailableAbbrev { ZFIN_MICRORNA("zfin_microRNA"), ZFIN_MIRNA_STEMLOOP("zfin_miRNA_stemloop"), ZFIN_MIRNA_MATURE("zfin_miRNA_mature"), + WZ_EST("wz_est"), ZFIN_MRPH("zfin_mrph"), ZFIN_TALEN("zfin_talen"), ZFIN_CRISPR("zfin_crispr"),