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
cee71c14
Commit
cee71c14
authored
16 years ago
by
Ian Longden
Browse files
Options
Downloads
Patches
Plain Diff
Primary key should be object_xref
parent
d5759842
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
misc-scripts/xref_mapping/XrefMapper/XrefLoader.pm
+5
-3
5 additions, 3 deletions
misc-scripts/xref_mapping/XrefMapper/XrefLoader.pm
with
5 additions
and
3 deletions
misc-scripts/xref_mapping/XrefMapper/XrefLoader.pm
+
5
−
3
View file @
cee71c14
...
...
@@ -139,8 +139,9 @@ sub update{
master_xref_id
INT
NOT
NULL
,
dependent_xref_id
INT
NOT
NULL
,
PRIMARY
KEY
(
master_xref_id
),
KEY
dependent
(
dependent_xref_id
)
PRIMARY
KEY
(
object_xref_id
),
KEY
dependent
(
dependent_xref_id
),
KEY
master_idx
(
master_xref_id
)
)
COLLATE
=
latin1_swedish_ci
TYPE
=
MyISAM
SQL
...
...
@@ -283,7 +284,8 @@ SQL
}
if
(
$last_xref
!=
$xref_id
or
$last_ensembl
!=
$ensembl_id
){
$add_object_xref_sth
->
execute
((
$object_xref_id
+
$object_xref_offset
),
$ensembl_id
,
$ensembl_type
,
(
$xref_id
+
$xref_offset
));
$add_dependent_xref_sth
->
execute
((
$object_xref_id
+
$object_xref_offset
),
(
$xref_id
+
$xref_offset
),
(
$master_xref_id
+
$xref_offset
)
);
}
$add_dependent_xref_sth
->
execute
((
$object_xref_id
+
$object_xref_offset
),
(
$master_xref_id
+
$xref_offset
),
(
$xref_id
+
$xref_offset
)
);
}
$last_ensembl
=
$ensembl_id
;
}
print
"
DEP
$count
\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