Debian Codegraph @

lib/Bio/Chado/Schema/Result/NaturalDiversity/NdExperiment.pm

raw symbols SCIP
1 package Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/NaturalDiversity/NdExperiment/;
2 BEGIN {
3 $Bio::Chado::Schema::Result::NaturalDiversity::NdExperiment::AUTHORITYscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/NaturalDiversity/NdExperiment/$AUTHORITY. = 'cpan:RBUELS';
4 }
5 {
6 $Bio::Chado::Schema::Result::NaturalDiversity::NdExperiment::VERSIONscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/NaturalDiversity/NdExperiment/$VERSION. = '0.20000';
7 }
8
9 # Created by DBIx::Class::Schema::Loader
10 # DO NOT MODIFY THE FIRST PART OF THIS FILE
11
12 use strictscip-perl cpan Bio-Chado-Schema 0.20000 strict/;
13 use warningsscip-perl cpan Bio-Chado-Schema 0.20000 warnings/;
14
15 use basescip-perl cpan Bio-Chado-Schema 0.20000 base/ 'DBIx::Class::Core';
16
17
18 =head1 NAME
19
20 Bio::Chado::Schema::Result::NaturalDiversity::NdExperiment
21
22 =cut
23
24 __PACKAGE__->tablescip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/table().("nd_experiment");
25
26 =head1 ACCESSORS
27
28 =head2 nd_experiment_id
29
30 data_type: 'integer'
31 is_auto_increment: 1
32 is_nullable: 0
33 sequence: 'nd_experiment_nd_experiment_id_seq'
34
35 =head2 nd_geolocation_id
36
37 data_type: 'integer'
38 is_foreign_key: 1
39 is_nullable: 0
40
41 =head2 type_id
42
43 data_type: 'integer'
44 is_foreign_key: 1
45 is_nullable: 0
46
47 =cut
48
49 __PACKAGE__->add_columnsscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_columns().(
50 "nd_experiment_id",
51 {
52 data_type => "integer",
53 is_auto_increment => 1,
54 is_nullable => 0,
55 sequence => "nd_experiment_nd_experiment_id_seq",
56 },
57 "nd_geolocation_id",
58 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
59 "type_id",
60 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
61 );
62 __PACKAGE__->set_primary_keyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/set_primary_key().("nd_experiment_id");
63
64 =head1 RELATIONS
65
66 =head2 nd_geolocation
67
68 Type: belongs_to
69
70 Related object: L<Bio::Chado::Schema::Result::NaturalDiversity::NdGeolocation>
71
72 =cut
73
74 __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().(
75 "nd_geolocation",
76 "Bio::Chado::Schema::Result::NaturalDiversity::NdGeolocation",
77 { nd_geolocation_id => "nd_geolocation_id" },
78 {
79 cascade_copy => 0,
80 cascade_delete => 0,
81 is_deferrable => 1,
82 on_delete => "CASCADE",
83 on_update => "CASCADE",
84 },
85 );
86
87 =head2 type
88
89 Type: belongs_to
90
91 Related object: L<Bio::Chado::Schema::Result::Cv::Cvterm>
92
93 =cut
94
95 __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().(
96 "type",
97 "Bio::Chado::Schema::Result::Cv::Cvterm",
98 { cvterm_id => "type_id" },
99 {
100 cascade_copy => 0,
101 cascade_delete => 0,
102 is_deferrable => 1,
103 on_delete => "CASCADE",
104 on_update => "CASCADE",
105 },
106 );
107
108 =head2 nd_experiment_contacts
109
110 Type: has_many
111
112 Related object: L<Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentContact>
113
114 =cut
115
116 __PACKAGE__->has_manyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/has_many().(
117 "nd_experiment_contacts",
118 "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentContact",
119 { "foreign.nd_experiment_id" => "self.nd_experiment_id" },
120 { cascade_copy => 0, cascade_delete => 0 },
121 );
122
123 =head2 nd_experiment_dbxrefs
124
125 Type: has_many
126
127 Related object: L<Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentDbxref>
128
129 =cut
130
131 __PACKAGE__->has_manyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/has_many().(
132 "nd_experiment_dbxrefs",
133 "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentDbxref",
134 { "foreign.nd_experiment_id" => "self.nd_experiment_id" },
135 { cascade_copy => 0, cascade_delete => 0 },
136 );
137
138 =head2 nd_experiment_genotypes
139
140 Type: has_many
141
142 Related object: L<Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentGenotype>
143
144 =cut
145
146 __PACKAGE__->has_manyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/has_many().(
147 "nd_experiment_genotypes",
148 "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentGenotype",
149 { "foreign.nd_experiment_id" => "self.nd_experiment_id" },
150 { cascade_copy => 0, cascade_delete => 0 },
151 );
152
153 =head2 nd_experiment_phenotypes
154
155 Type: has_many
156
157 Related object: L<Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentPhenotype>
158
159 =cut
160
161 __PACKAGE__->has_manyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/has_many().(
162 "nd_experiment_phenotypes",
163 "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentPhenotype",
164 { "foreign.nd_experiment_id" => "self.nd_experiment_id" },
165 { cascade_copy => 0, cascade_delete => 0 },
166 );
167
168 =head2 nd_experiment_projects
169
170 Type: has_many
171
172 Related object: L<Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentProject>
173
174 =cut
175
176 __PACKAGE__->has_manyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/has_many().(
177 "nd_experiment_projects",
178 "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentProject",
179 { "foreign.nd_experiment_id" => "self.nd_experiment_id" },
180 { cascade_copy => 0, cascade_delete => 0 },
181 );
182
183 =head2 nd_experimentprops
184
185 Type: has_many
186
187 Related object: L<Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentprop>
188
189 =cut
190
191 __PACKAGE__->has_manyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/has_many().(
192 "nd_experimentprops",
193 "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentprop",
194 { "foreign.nd_experiment_id" => "self.nd_experiment_id" },
195 { cascade_copy => 0, cascade_delete => 0 },
196 );
197
198 =head2 nd_experiment_protocols
199
200 Type: has_many
201
202 Related object: L<Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentProtocol>
203
204 =cut
205
206 __PACKAGE__->has_manyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/has_many().(
207 "nd_experiment_protocols",
208 "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentProtocol",
209 { "foreign.nd_experiment_id" => "self.nd_experiment_id" },
210 { cascade_copy => 0, cascade_delete => 0 },
211 );
212
213 =head2 nd_experiment_pubs
214
215 Type: has_many
216
217 Related object: L<Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentPub>
218
219 =cut
220
221 __PACKAGE__->has_manyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/has_many().(
222 "nd_experiment_pubs",
223 "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentPub",
224 { "foreign.nd_experiment_id" => "self.nd_experiment_id" },
225 { cascade_copy => 0, cascade_delete => 0 },
226 );
227
228 =head2 nd_experiment_stocks
229
230 Type: has_many
231
232 Related object: L<Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentStock>
233
234 =cut
235
236 __PACKAGE__->has_manyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/has_many().(
237 "nd_experiment_stocks",
238 "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentStock",
239 { "foreign.nd_experiment_id" => "self.nd_experiment_id" },
240 { cascade_copy => 0, cascade_delete => 0 },
241 );
242
243
244 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-16 23:09:59
245 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rdopd+NuS4NVDr0dVrREnQ
246
247
248 =head2 create_nd_experimentprops
249
250 Usage: $set->create_nd_experimentprops({ baz => 2, foo => 'bar' });
251 Desc : convenience method to create experiment properties using cvterms
252 from the ontology with the given name
253 Args : hashref of { propname => value, ...},
254 options hashref as:
255 {
256 autocreate => 0,
257 (optional) boolean, if passed, automatically create cv,
258 cvterm, and dbxref rows if one cannot be found for the
259 given experimentprop name. Default false.
260
261 cv_name => cv.name to use for the given experimentprops.
262 Defaults to 'nd_experiment_property',
263
264 db_name => db.name to use for autocreated dbxrefs,
265 default 'null',
266
267 dbxref_accession_prefix => optional, default
268 'autocreated:',
269 definitions => optional hashref of:
270 { cvterm_name => definition,
271 }
272 to load into the cvterm table when autocreating cvterms
273
274 rank => force numeric rank. Be careful not to pass ranks that already exist
275 for the property type. The function will die in such case.
276
277 allow_duplicate_values => default false.
278 If true, allow duplicate instances of the same experiment
279 and types in the properties of the experiment. Duplicate
280 types will have different ranks.
281 }
282 Ret : hashref of { propname => new experimentprop object }
283
284 =cut
285
286 sub create_nd_experimentpropsscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/NaturalDiversity/NdExperiment/create_nd_experimentprops(). {
287 my ($self, $props, $opts) = @_scip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/NaturalDiversity/NdExperiment/`@_`.;
288
289 # process opts
290 $opts->{cv_name} = 'nd_experiment_property'
291 unless definedscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/NaturalDiversity/NdExperiment/defined(). $opts->{cv_name};
292 return Bio::Chado::Schema::Util->create_propertiesscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Util/create_properties().
293 ( properties => $props,
294 options => $opts,
295 row => $self,
296 prop_relation_name => 'nd_experimentprops',
297 );
298 }
299
300 1;