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 Xref::Schema::Result::ObjectXref;
32 use base
'DBIx::Class::Core';
34 =head1 TABLE: C<object_xref>
38 __PACKAGE__->table(
"object_xref");
45 extra: {
unsigned => 1}
52 extra: {
unsigned => 1}
55 =head2 ensembl_object_type
58 extra: {list => [
"RawContig",
"Transcript",
"Gene",
"Translation"]}
64 extra: {
unsigned => 1}
67 =head2 linkage_annotation
76 extra: {list => [
"PROJECTION",
"MISC",
"DEPENDENT",
"DIRECT",
"SEQUENCE_MATCH",
"INFERRED_PAIR",
"PROBE",
"UNMAPPED",
"COORDINATE_OVERLAP",
"CHECKSUM"]}
82 default_value:
'DUMP_OUT'
83 extra: {list => [
"DUMP_OUT",
"FAILED_PRIORITY",
"FAILED_CUTOFF",
"NO_DISPLAY",
"MULTI_DELETE"]}
86 =head2 unused_priority
89 extra: {
unsigned => 1}
95 extra: {
unsigned => 1}
100 __PACKAGE__->add_columns(
103 data_type =>
"integer",
104 extra => {
unsigned => 1 },
105 is_auto_increment => 1,
109 { data_type =>
"integer", extra => {
unsigned => 1 }, is_nullable => 0 },
110 "ensembl_object_type",
113 extra => { list => [
"RawContig",
"Transcript",
"Gene",
"Translation"] },
117 { data_type =>
"integer", extra => {
unsigned => 1 }, is_nullable => 0 },
118 "linkage_annotation",
119 { data_type =>
"varchar", is_nullable => 1, size => 255 },
133 "COORDINATE_OVERLAP",
142 default_value =>
"DUMP_OUT",
155 { data_type =>
"integer", extra => {
unsigned => 1 }, is_nullable => 1 },
157 { data_type =>
"integer", extra => {
unsigned => 1 }, is_nullable => 1 },
164 =item * L</object_xref_id>
170 __PACKAGE__->set_primary_key(
"object_xref_id");
172 =head1 UNIQUE CONSTRAINTS
174 =head2 C<ensembl_object_type>
178 =item * L</ensembl_object_type>
180 =item * L</ensembl_id>
184 =item * L</ox_status>
186 =item * L</master_xref_id>
192 __PACKAGE__->add_unique_constraint(
193 "ensembl_object_type",
195 "ensembl_object_type",
203 __PACKAGE__->has_one(
'source',
'Xref::Schema::Result::Source',
'source_id' );
204 # Cannot express the gene/transcript/translation relationship here due to non-normalised format
205 __PACKAGE__->has_one(
'xref',
'Xref::Schema::Result::Xref',
'xref_id' );