Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
11a550ad
Commit
11a550ad
authored
13 years ago
by
Monika Komorowska
Browse files
Options
Downloads
Patches
Plain Diff
Linked xrefs to genes for 3 more external dbs.
parent
8b50f7e8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sql/link_xrefs_to_genes.sql
+1
-1
1 addition, 1 deletion
sql/link_xrefs_to_genes.sql
with
1 addition
and
1 deletion
sql/link_xrefs_to_genes.sql
+
1
−
1
View file @
11a550ad
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment