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
24ccaf42
Commit
24ccaf42
authored
15 years ago
by
Ian Longden
Browse files
Options
Downloads
Patches
Plain Diff
If GO xrefs are removed then remove the go_xref entry too
parent
a9a7377d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/xref_mapping/XrefMapper/BasicMapper.pm
+19
-3
19 additions, 3 deletions
misc-scripts/xref_mapping/XrefMapper/BasicMapper.pm
with
19 additions
and
3 deletions
misc-scripts/xref_mapping/XrefMapper/BasicMapper.pm
+
19
−
3
View file @
24ccaf42
...
...
@@ -1173,7 +1173,6 @@ sub biomart_fix{
print
"
Therefore moving all associations from
$from
to
"
.
$to
.
"
\n
"
if
(
$self
->
verbose
);
my
$sql
=
(
<<
EOF
);
UPDATE
IGNORE
object_xref
,
gene_transcript_translation
,
xref
,
source
...
...
@@ -1189,7 +1188,23 @@ EOF
my
$result
=
$xref_dbc
->
do
(
$sql
)
;
# print "\n$sql\n";
$sql
=
(
<<
EOF2
);
if
(
$db_name
eq
"
GO
"){
$sql
=
(
<<
EOF2
);
DELETE
object_xref
,
identity_xref
,
go_xref
FROM
object_xref
,
xref
,
source
,
identity_xref
,
go_xref
WHERE
object_xref
.
ensembl_object_type
=
"
$from
"
AND
identity_xref
.
object_xref_id
=
object_xref
.
object_xref_id
AND
xref
.
xref_id
=
object_xref
.
xref_id
AND
go_xref
.
object_xref_id
=
object_xref
.
object_xref_id
AND
xref
.
source_id
=
source
.
source_id
AND
object_xref
.
ox_status
=
"
DUMP_OUT
"
AND
source
.
name
=
"
$db_name
";
EOF2
$result
=
$xref_dbc
->
do
(
$sql
);
}
else
{
$sql
=
(
<<
EOF3
);
DELETE
object_xref
,
identity_xref
FROM
object_xref
,
xref
,
source
,
identity_xref
WHERE
object_xref
.
ensembl_object_type
=
"
$from
"
AND
...
...
@@ -1198,9 +1213,10 @@ EOF
xref
.
source_id
=
source
.
source_id
AND
object_xref
.
ox_status
=
"
DUMP_OUT
"
AND
source
.
name
=
"
$db_name
";
EOF
2
EOF
3
$result
=
$xref_dbc
->
do
(
$sql
);
}
# print "\n$sql\n";
}
...
...
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