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
4baadce4
Commit
4baadce4
authored
14 years ago
by
Ian Longden
Browse files
Options
Downloads
Patches
Plain Diff
zebrafish updates
parent
92801668
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/danio_rerio.pm
+52
-0
52 additions, 0 deletions
misc-scripts/xref_mapping/XrefMapper/danio_rerio.pm
with
52 additions
and
0 deletions
misc-scripts/xref_mapping/XrefMapper/danio_rerio.pm
+
52
−
0
View file @
4baadce4
...
...
@@ -6,6 +6,58 @@ use vars '@ISA';
@ISA
=
qw{ XrefMapper::BasicMapper }
;
sub
set_display_xrefs
{
my
$self
=
shift
;
my
$display
=
XrefMapper::
DisplayXrefs
->
new
(
$self
);
$display
->
set_display_xrefs_from_stable_table
();
}
sub
set_gene_descriptions
(){
my
$self
=
shift
;
my
$display
=
XrefMapper::
DisplayXrefs
->
new
(
$self
);
$display
->
set_gene_descriptions_from_display_xref
()
}
sub
get_official_name
{
return
"
ZFIN_ID
";
}
sub
get_canonical_name
{
return
"
ZFIN_ID
";
}
sub
species_specific_pre_attributes_set
{
my
$self
=
shift
;
$self
->
official_naming
();
}
sub
species_specific_cleanup
{
my
$self
=
shift
;
my
$dbname
=
$self
->
get_canonical_name
;
print
"
Removing all
$dbname
from object_xref not on a Gene
\n
";
my
$remove_old_ones
=
(
<<
JSQL
);
delete
ox
from
object_xref
ox
,
xref
x
,
external_db
e
where
e
.
db_name
like
"
$dbname
"
and
ox
.
ensembl_object_type
!=
"
Gene
"
and
ox
.
xref_id
=
x
.
xref_id
and
x
.
external_db_id
=
e
.
external_db_id
;
JSQL
#
# First Delete all the hgnc object_xrefs not on a gene. (i.e these are copys).
#
my
$sth
=
$self
->
core
->
dbc
->
prepare
(
$remove_old_ones
);
$sth
->
execute
()
||
die
"
Could not execute:
\n
$remove_old_ones
\n
";
$sth
->
finish
;
}
sub
get_set_lists
{
return
[["
ExonerateGappedBest1
",
["
danio_rerio
","
*
"]]];
...
...
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