3 See the NOTICE file distributed with
this work
for additional information
4 regarding copyright ownership.
6 Licensed under the Apache License, Version 2.0 (the
"License");
7 you may not use
this file except in compliance with the License.
8 You may obtain a copy of the License at
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an
"AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License
for the specific language governing permissions and
16 limitations under the License.
20 package XrefMapper::saccharomyces_cerevisiae;
31 my $default_method =
'ExonerateGappedBest1';
32 my %override_method_for_source = (
33 ExonerateGappedBest5 => [
'RefSeq_mRNA',
'RefSeq_mRNA_predicted',
'RefSeq_ncRNA',
'RefSeq_ncRNA_predicted' ],
36 return $default_method, \%override_method_for_source;
40 # Cerevisiae is imported from SGD. The gene and transcript stable IDs
41 # are the SGD identifiers. The display_xref_ids for genes and
42 # transcripts are calculated directly rather than via the more complex
43 # priority-based method in BasicMapper.pm
45 sub build_display_xrefs {
47 my ($self, $type, $external_db) = @_;
49 print
"Setting $type display_xrefs from $type stable IDs\n";
50 my $dir = $self->core()->dir();
52 my $sql =
"UPDATE $type t, xref x, external_db e SET t.display_xref_id=x.xref_id WHERE t.stable_id=x.dbprimary_acc AND e.external_db_id=x.external_db_id AND e.db_name=\'${external_db}\'\n";
54 open (SQL,
">$dir/${type}_display_xref.sql");
62 sub gene_display_xref_sources {
71 return [\@list,\%ignore];
75 sub transcript_display_xref_sources {
84 return [\@list,\%ignore];
87 sub gene_description_sources {
94 sub gene_description_filter_regexps {