ensembl-hive  2.8.1
CoordinateXref.pm
Go to the documentation of this file.
1 =head1 LICENSE
2 
3 See the NOTICE file distributed with this work for additional information
4 regarding copyright ownership.
5 
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
9 
10  http://www.apache.org/licenses/LICENSE-2.0
11 
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.
17 
18 =cut
19 
20 package Xref::Schema::Result::CoordinateXref;
21 
22 =head1 NAME
23 
25 
26 =cut
27 
28 use strict;
29 use warnings;
30 use utf8;
31 
32 use base 'DBIx::Class::Core';
33 
34 =head1 TABLE: C<coordinate_xref>
35 
36 =cut
37 
38 __PACKAGE__->table("coordinate_xref");
39 
40 =head1 ACCESSORS
41 
42 =head2 coord_xref_id
43 
44  data_type: 'integer'
45  extra: {unsigned => 1}
46  is_auto_increment: 1
47  is_nullable: 0
48 
49 =head2 source_id
50 
51  data_type: 'integer'
52  extra: {unsigned => 1}
53  is_nullable: 0
54 
55 =head2 species_id
56 
57  data_type: 'integer'
58  extra: {unsigned => 1}
59  is_nullable: 0
60 
61 =head2 accession
62 
63  data_type: 'varchar'
64  is_nullable: 0
65  size: 255
66 
67 =head2 chromosome
68 
69  data_type: 'varchar'
70  is_nullable: 0
71  size: 255
72 
73 =head2 strand
74 
75  data_type: 'tinyint'
76  is_nullable: 0
77 
78 =head2 txstart
79 
80  data_type: 'integer'
81  is_nullable: 0
82 
83 =head2 txend
84 
85  data_type: 'integer'
86  is_nullable: 0
87 
88 =head2 cdsstart
89 
90  data_type: 'integer'
91  is_nullable: 1
92 
93 =head2 cdsend
94 
95  data_type: 'integer'
96  is_nullable: 1
97 
98 =head2 exonstarts
99 
100  data_type: 'text'
101  is_nullable: 0
102 
103 =head2 exonends
104 
105  data_type: 'text'
106  is_nullable: 0
107 
108 =cut
109 
110 __PACKAGE__->add_columns(
111  "coord_xref_id",
112  {
113  data_type => "integer",
114  extra => { unsigned => 1 },
115  is_auto_increment => 1,
116  is_nullable => 0,
117  },
118  "source_id",
119  { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
120  "species_id",
121  { data_type => "integer", extra => { unsigned => 1 }, is_nullable => 0 },
122  "accession",
123  { data_type => "varchar", is_nullable => 0, size => 255 },
124  "chromosome",
125  { data_type => "varchar", is_nullable => 0, size => 255 },
126  "strand",
127  { data_type => "tinyint", is_nullable => 0 },
128  "txstart",
129  { data_type => "integer", is_nullable => 0 },
130  "txend",
131  { data_type => "integer", is_nullable => 0 },
132  "cdsstart",
133  { data_type => "integer", is_nullable => 1 },
134  "cdsend",
135  { data_type => "integer", is_nullable => 1 },
136  "exonstarts",
137  { data_type => "text", is_nullable => 0 },
138  "exonends",
139  { data_type => "text", is_nullable => 0 },
140 );
141 
142 =head1 UNIQUE CONSTRAINTS
143 
144 =head2 C<coord_xref_idx>
145 
146 =over 4
147 
148 =item * L</coord_xref_id>
149 
150 =back
151 
152 =cut
153 
154 __PACKAGE__->set_primary_key('coord_xref_id');
155 
156 __PACKAGE__->has_one('xref', 'Xref::Schema::Result::Xref', { 'foreign.xref_id' => 'self.coord_xref_id' });
157 __PACKAGE__->has_one('source', 'Xref::Schema::Result::Source', 'source_id' );
158 1;
Xref::Schema::Result::CoordinateXref
Definition: CoordinateXref.pm:5
accession
public accession()