diff --git a/sql/link_xrefs_to_genes.sql b/sql/link_xrefs_to_genes.sql index 1606c9a677781aaa5b75a61330ededca3e264ba9..a388cfd0b9e40c0d01e39030a2aef83259b0e075 100644 --- a/sql/link_xrefs_to_genes.sql +++ b/sql/link_xrefs_to_genes.sql @@ -10,7 +10,7 @@ DECLARE v_xref_id INT; DECLARE v_gene_id INT DEFAULT 0; DECLARE done INT DEFAULT 0; -DECLARE cur1 CURSOR FOR SELECT object_xref_id, ensembl_id, ensembl_object_type, o.xref_id FROM object_xref o INNER JOIN xref x on o.xref_id = x.xref_id INNER JOIN external_db e on e.external_db_id =x.external_db_id WHERE db_name in ('HGNC', 'EntrezGene', 'WikiGene', 'RFAM', 'MIM', 'MIM_GENE', 'miRBase') AND ensembl_object_type <> 'Gene'; +DECLARE cur1 CURSOR FOR SELECT object_xref_id, ensembl_id, ensembl_object_type, o.xref_id FROM object_xref o INNER JOIN xref x on o.xref_id = x.xref_id INNER JOIN external_db e on e.external_db_id =x.external_db_id WHERE db_name in ('UniGene', 'Uniprot_genename','DBASS3', 'DBASS5') AND ensembl_object_type <> 'Gene'; DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; OPEN cur1;