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
8c261043
Commit
8c261043
authored
12 years ago
by
Magali Ruffier
Browse files
Options
Downloads
Patches
Plain Diff
a term is not obsolete if is_obsolete = 0, not if is_obsolete is null
parent
e2c6776f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
misc-scripts/ontology/scripts/add_subset_maps.pl
+3
-3
3 additions, 3 deletions
misc-scripts/ontology/scripts/add_subset_maps.pl
misc-scripts/ontology/scripts/compute_closure.pl
+2
-2
2 additions, 2 deletions
misc-scripts/ontology/scripts/compute_closure.pl
with
5 additions
and
5 deletions
misc-scripts/ontology/scripts/add_subset_maps.pl
+
3
−
3
View file @
8c261043
...
...
@@ -69,7 +69,7 @@ FROM ontology,
term,
subset
WHERE ontology.ontology_id = term.ontology_id
AND
isnull(
is_obsolete
)
AND is_obsolete
= 0
AND FIND_IN_SET(subset.name, term.subsets) > 0
)
;
...
...
@@ -94,8 +94,8 @@ WHERE ontology.name = %s
AND FIND_IN_SET(%s, parent_term.subsets) > 0
AND parent_term.ontology_id = closure.ontology_id
AND child_term.ontology_id = closure.ontology_id
AND
isnull(
parent_term.is_obsolete
)
AND
isnull(
child_term.is_obsolete
)
AND parent_term.is_obsolete
= 0
AND child_term.is_obsolete
= 0
GROUP BY child_term.term_id, parent_term.term_id
)
;
...
...
This diff is collapsed.
Click to expand it.
misc-scripts/ontology/scripts/compute_closure.pl
+
2
−
2
View file @
8c261043
...
...
@@ -70,7 +70,7 @@ INSERT INTO closure
(child_term_id, parent_term_id, distance, subparent_term_id, ontology_id)
SELECT term_id, term_id, 0, NULL, ontology_id
FROM term
WHERE
isnull(
is_obsolete
)
WHERE is_obsolete
= 0
)
);
$dbh
->
do
(
...
...
@@ -81,7 +81,7 @@ SELECT term_id, term_id, 0, NULL, r.ontology_id
FROM term t, relation r
WHERE term_id = child_term_id
AND t.ontology_id != r.ontology_id
AND
isnull(
is_obsolete
)
AND is_obsolete
= 0
)
);
$dbh
->
do
(
...
...
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