XrefMapper caenorhabditis_elegans
Included librariesPackage variablesGeneral documentationMethods
Toolbar
WebCvsRaw content
Package variables
No package variables defined.
Included modules
XrefMapper::BasicMapper
Inherit
XrefMapper::BasicMapper
Synopsis
No synopsis!
Description
No description!
Methods
build_display_xrefs
No description
Code
build_gene_display_xrefs
No description
Code
build_transcript_display_xrefs
No description
Code
gene_description_filter_regexps
No description
Code
get_set_lists
No description
Code
Methods description
None available.
Methods code
build_display_xrefsdescriptionprevnextTop
sub build_display_xrefs {
  my ($self, $type, $external_db) = @_;

  print "Setting $type display_xrefs from $type stable IDs\n";
  my $dir = $self->core()->dir();

  my $sql = "UPDATE $type t, ${type}_stable_id s, xref x, external_db e SET t.display_xref_id=x.xref_id WHERE t.${type}_id=s.${type}_id AND s.stable_id=x.dbprimary_acc AND e.external_db_id=x.external_db_id AND e.db_name=\'${external_db}\'\n";

  open (SQL, ">$dir/${type}_display_xref.sql");

  print SQL $sql;

  close(SQL);
}
build_gene_display_xrefsdescriptionprevnextTop
sub build_gene_display_xrefs {
  my ($self) = @_;

  $self->build_display_xrefs("gene", "wormbase_gene");
}
build_transcript_display_xrefsdescriptionprevnextTop
sub build_transcript_display_xrefs {
  my ($self) = @_;

  $self->build_display_xrefs("transcript", "wormbase_transcript");
}
gene_description_filter_regexpsdescriptionprevnextTop
sub gene_description_filter_regexps {
  return ('[0-9A-Z]+\.\d*[A-Z]* PROTEIN[\. ]',
	  '\(\d[A-Z]\d+\)\.',
	  '\([0-9A-Z]+\.\d*[A-Z]* PROTEIN\)[\. ]',
	  '^\(*HYPOTHETICAL\s+.*',
	  '^\s*\(FRAGMENT\)\.?\s*$' );

}

1;
}
get_set_listsdescriptionprevnextTop
sub get_set_lists {
  return [["ExonerateGappedBest1", ["caenorhabditis_elegans","*"]]];

}



# Elegans is imported from WormBase. The gene and transcript stable IDs
# are the WormBase identifiers. The display_xref_ids for genes and
# transcripts are calculated directly rather than via the more complex
# priority-based method in BasicMapper.pm
}
General documentation
No general documentation available.