Skip to content
Snippets Groups Projects
Commit 4baadce4 authored by Ian Longden's avatar Ian Longden
Browse files

zebrafish updates

parent 92801668
No related branches found
No related tags found
No related merge requests found
......@@ -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","*"]]];
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment