Pass along stock type info to trials.mas to hide analysis usage table in non-accessio...
[sgn.git] / mason / page / detail_page_2_col_section.mas
blob029c1a7b9eab665bad42804e8b8349341d6ba62e
1 <%args>
2 $trial_id => undef
3 $trial_name => undef
4 $stock_id => undef
5 $stock_uniquename => undef
6 $col1_width_class => "col-sm-1"
7 $col2_width_class => "col-sm-11"
8 $icon_class => "glyphicon glyphicon-th"
9 $info_section_collapsible => 1
10 $info_section_collapsed => 1
11 $info_section_id => "2col_id"
12 $info_section_title => "A title"
13 $info_section_subtitle => "A subtitle"
14 $buttons_html => undef
15 $locations_by_program_json => undef
17 #Trying to find the right one
18 $project_id => undef
19 $name => undef
22 #Specific to trial detail page
23 $has_plant_entries => undef
24 $has_subplot_entries => undef
25 $has_tissue_sample_entries => undef
26 $has_expression_atlas => undef
27 $expression_atlas_url => undef
28 $site_project_name => undef
29 $sgn_session_id => undef
30 $user_name => undef
31 $main_production_site_url => undef
32 $trial_phenotype_files => undef
33 $hidap_enabled => undef
34 $location_name => undef
35 $country_name => undef
36 $breeding_program_name => undef
37 $breeding_program_id => undef
38 $year => undef
39 $trial_type => undef
40 $design_name => undef
41 $planting_date => undef
42 $transplanting_date => undef
43 $harvest_date => undef
44 $trial_description => undef
45 $folder_name => undef
46 $folder_id => undef
47 $plot_width => undef
48 $plot_length => undef
49 $field_size => undef
50 $field_trial_is_planned_to_be_genotyped => undef
51 $field_trial_is_planned_to_cross => undef
52 $identifier_prefix => undef
53 $genotyping_facility => undef
54 $management_factor_date => undef
55 $management_factor_type => undef
56 $trial_stock_type => undef
57 $trial_stock_count => undef
58 $trial_owner => undef
59 $phenotypes_fully_uploaded => undef
60 $user_can_modify => undef
61 $latest_trial_activity => undef
62 $has_col_and_row_numbers => undef
64 #Specific to stock detail page
65 $type_name => undef
66 $stockref => {}
67 $stockprops => undef
68 $edit_privs => undef
69 $editable_stock_props => undef
70 $editor_link => undef
71 $source_dbs => {}
72 $locus_add_uri => undef
73 $new_locus_link => undef
74 $allele_div => undef
75 $is_owner => undef
76 $map_html => undef
77 $has_pedigree => undef
78 $image_ids => undef
79 $related_image_ids => undef
80 $dbh => undef
81 $trait_ontology_db_name => undef
82 $pubs => undef
83 $cvterm_add_uri => undef
84 $referer => undef
86 #Specific to genotyping protocol detail page
87 $protocol_id => undef
88 $protocol_name => undef
89 $protocol_description => undef
90 $marker_names => []
91 $header_information_lines => []
92 $reference_genome_name => undef
93 $species_name => undef
94 $create_date => undef
95 $sample_observation_unit_type_name => undef
96 $marker_type => undef
97 $genotype_data_type => undef
98 $marker_info_headers => undef
99 $assay_type => undef
101 #Specific to drone run detail page
102 $drone_run_date => undef
103 $id_extension => undef
105 #Specific to analysis detail page
106 $analysis_metadata => undef
107 $for_analysis_page => undef
108 $data_level => undef
110 $program_id => undef
111 $program_name => undef
113 #Specific to analysis model detail page
114 $model_id => undef
115 $model_name => undef
116 $model_description => undef
117 $model_properties => {}
118 $model_file_ids => {}
119 $model_type_name => undef
120 $model_files => {}
122 #Specific to manage nirs page
123 $nirs_files => undef
124 $deleted_nirs_files => undef
125 $all_nirs_files => undef
126 $all_deleted_nirs_files => undef
127 $locations => undef
128 $sampling_facilities => ()
130 #Specific to analytics detail page
131 $analytics_protocol_id => undef
132 $analytics_protocol_name => undef
133 $analytics_protocol_description => undef
134 $analytics_protocol_type_id => undef
135 $analytics_protocol_type_name => undef
136 $analytics_protocol_create_date => undef
137 $analytics_protocol_properties => {}
138 $analytics_protocol_result_summary => {}
140 #Specific to activity page
141 $vendor_id => undef
143 </%args>
145 <& /util/import_javascript.mas,
146    classes => ["jquery", "jqueryui", "thickbox", "CXGN.Page.FormattingHelpers", "jquery.cookie", "CXGN.Stock", "d3.d3v4Min" ],
147   entries => ["sequenced_accessions"]
150 <div class="row">
151     <div class="col-sm-12">
152         <div class="well">
153             <div class="row">
154                 <div class="<% $col1_width_class %>">
155                     <span style="font-size:3.5em;" class="<% $icon_class %>"></span>
156                 </div>
157                 <div class="<% $col2_width_class %>">
159                     <&| /page/info_section.mas, id => $info_section_id, title => $info_section_title, collapsible=>$info_section_collapsible, collapsed => $info_section_collapsed, subtitle=> $info_section_subtitle &>
161 % if ($buttons_html){
162                         <div class="panel panel-default">
163                             <div class="panel-body">
164                                 <% $buttons_html %>
165                             </div>
166                         </div>
167 % }
169                         <div class="panel panel-default">
170                             <div class="panel-body">
172 % if ($info_section_id eq 'pheno_heatmap'){
173                                 <& /breeders_toolbox/trial/phenotype_heatmap.mas, trial_id => $trial_id, data_level => $data_level, has_col_and_row_numbers => $has_col_and_row_numbers &>
174 % } #End pheno_heatmap
175 % if ($info_section_id eq 'trial_design_section'){
176                                 <& /breeders_toolbox/trial/design_section.mas, trial_id => $trial_id, trial_name => $trial_name, has_subplot_entries => $has_subplot_entries, has_plant_entries => $has_plant_entries, has_tissue_sample_entries => $has_tissue_sample_entries, design_name => $design_name, trial_stock_type => $trial_stock_type &>
177 % } #End trial_design_section
178 % if ($info_section_id eq 'trial_detail_traits_assayed'){
180 % if ($has_expression_atlas) {
181                                 <& /breeders_toolbox/trial/export_trial_to_expression_atlas.mas, trial_id => $trial_id, trial_name=>$trial_name, expression_atlas_url=>$expression_atlas_url, site_project_name=>$site_project_name, sgn_session_id=>$sgn_session_id, user_name=>$user_name, main_production_site_url=>$main_production_site_url &>
182 % }
184                                 <& /breeders_toolbox/trial/phenotype_summary.mas, trial_id => $trial_id, trial_stock_type => $trial_stock_type &>
186 % } #End trial_detail_traits_assayed
188 % if ($info_section_id eq 'trial_raw_data') {
189    <& /breeders_toolbox/trial/trial_raw_data.mas, trial_id => $trial_id, trial_stock_type => $trial_stock_type &>
190 % }
193 % if ($info_section_id eq 'compute_derived_traits'){
194                                 <& /breeders_toolbox/trial/derived_trait.mas, trial_id => $trial_id &>
195 % } #End compute_derived_traits
196 % if ($info_section_id eq 'trial_upload_files'){
197                                 <& /breeders_toolbox/trial/files_section.mas, trial_id => $trial_id, trial_phenotype_files => $trial_phenotype_files, trial_stock_type => $trial_stock_type, for_analysis_page => $for_analysis_page &>
198 % } #End trial_upload_files
199 % if ($info_section_id eq 'trial_analysis_tools'){
202                                 <!-- analysis tools on saved measurements -->
203                                <& /breeders_toolbox/trial/saved_measurement_analysis.mas,
204                                      trial_id => $trial_id
205                                 &>
206                                 <!-- Phenotypic correlation analysis -->
207                                 <& /solgs/tools/correlation/analysis.mas,
208                                     corr_pop_id => $trial_id
209                                 &>
211                                 <& /solgs/tools/anova/analysis.mas,
212                                     trial_id => $trial_id
213                                 &>
215                                  <!-- Population structure analysis PCA -->
216                                 <& /solgs/tools/pca/analysis.mas,
217                                     trial_id => $trial_id
218                                   &>
220                                 <!-- Clustering -->
221                                 <& /solgs/tools/cluster/analysis.mas,
222                                     trial_id => $trial_id
223                                   &>
225                                 <!-- kinship and inbreeding-->
226                                 <& /solgs/tools/kinship/analysis.mas,
227                                     trial_id => $trial_id
228                                 &>
231                                   <& /tools/heritability/heritability.mas,
232                                     trial_id => $trial_id
233                                 &>
235                                 <& /solgs/population/trait_acronyms.mas,
236                                   trial_id => $trial_id
237                               &>
239 % if ($c->req->base =~ /sweetpotatobase/) {
240                                 <& /tools/qualityControl/qualityControl.mas,
241                                     trial_id => $trial_id
242                                 &>
243 % }
245 % if ($hidap_enabled) {
246                                 <& /hidap/hidap_trial_link.mas, main_production_site_url=>$main_production_site_url, program => $breeding_program_name, folder => $folder_name, trial => $trial_name &>
247 % }
248 % } #End trial_analysis_tools
249 % if ($info_section_id eq 'trial_weather_data'){
250                                 <& /breeders_toolbox/trial/weather.mas, location => $location_name &>
251 % } #End trial_weather_data
252 % if ($info_section_id eq 'trial_jbrowse_data'){
253                                 <& /breeders_toolbox/trial/jbrowse_instance.mas, trial_id => $trial_id &>
254 %} #End trial_jbrowse_data
255 % if ($info_section_id eq 'trial_linkage_section'){
256                                 <&| /page/info_section.mas, title => 'Field Trial to Field Trial Linkage', id => 'field_trial_from_field_trial_section', collapsible => 1, collapsed => 1 &>
257                                     <& /breeders_toolbox/trial/field_trial_from_field_trial_linkage.mas, trial_id => $trial_id, trial_type => $trial_type, trial_name=>$trial_name &>
258                                 </&>
259                                 <&| /page/info_section.mas, title => 'Field Trial to Genotyping Plate Linkage', id => 'genotyping_trial_from_field_trial_section', collapsible => 1, collapsed => 1 &>
260                                     <& /breeders_toolbox/trial/genotyping_trial_from_field_trial_linkage.mas, trial_id => $trial_id, trial_type => 'field_trial' &>
261                                 </&>
262                                 <&| /page/info_section.mas, title => 'Field Trial to Crossing Experiment Linkage', id => 'crossing_trial_from_field_trial_section', collapsible => 1, collapsed => 1 &>
263                                     <& /breeders_toolbox/trial/crossing_trial_from_field_trial_linkage.mas, trial_id => $trial_id, trial_type => 'field_trial' &>
264                                 </&>
265 %} #End trial_linkage_section
266 % if ($info_section_id eq 'trial_deletion_section'){
267                                 <&| /page/info_section.mas, title=>'Delete trial data', subtitle=>'<font color="red" role="">Deletion cannot be undone</font>', collapsed=>1, collapsible=>1 &>
268                                     <& /breeders_toolbox/trial/trial_deletion.mas, trial_id => $trial_id  &>
269                                 </&>
270 %} #End trial_deletion_section
271 % if ($info_section_id eq 'trial_data_agreement_section'){
272                                 <& /breeders_toolbox/data_agreement.mas, trial_id => $trial_id &>
273 % } #End trial_data_agreement_section
274 % if ($info_section_id eq 'trial_status_section'){
275                                 <& /breeders_toolbox/trial/trial_status.mas, trial_id => $trial_id, trial_name => $trial_name, breeding_program_name => $breeding_program_name, location_name => $location_name, year => $year, trial_type => $trial_type, planting_date => $planting_date, transplanting_date => $transplanting_date, harvest_date => $harvest_date, trial_description => $trial_description, folder_id => $folder_id, design_name => $design_name, has_plant_entries => $has_plant_entries, phenotypes_fully_uploaded => $phenotypes_fully_uploaded, user_can_modify => $user_can_modify, user_name => $user_name &>
276 % } #End trial_status_section
277 % if ($info_section_id eq 'trial_soil_data_section'){
278                                 <& /breeders_toolbox/trial/trial_soil_data.mas, trial_id => $trial_id &>
279 % } #End trial_soil_data_section
282 % if ($info_section_id eq 'stock_additional_info_section'){
283                                 <& /stock/additional_info_section.mas, stock_id => $stock_id, type_name => $type_name, stockprops => $stockprops, edit_privs => $edit_privs, editable_stock_props => $editable_stock_props, editor_link => $editor_link, source_dbs => $source_dbs, locus_add_uri => $locus_add_uri, allele_div => $allele_div, is_owner => $is_owner &>
284 % } #End stock_additional_info_section
285 % if ($info_section_id eq 'stock_trials_section'){
286                                 <& /stock/trials.mas, stock_id => $stock_id, type_name => $type_name, trial_id => $trial_id, trial_name => $trial_name, name => $name, project_id => $project_id&>
287 % } #End stock_trials_section
288 % if ($info_section_id eq 'stock_upload_files'){
289                                 <& /stock/accession_files.mas, stock_id => $stock_id &>
290 % } #End stock_upload_files
291 % if ($info_section_id eq 'stock_traits_section'){
292                                 <& /stock/traits.mas, stock_id => $stock_id &>
293 % } #End stock_traits_section
294 % if ($info_section_id eq 'stock_genotypes_section'){
295                                 <& /stock/direct_genotypes.mas, stock_id => $stock_id, map_html => $map_html &>
296 % } #End stock_genotypes_section
297 % if ($info_section_id eq 'stock_pedigree_section'){
298                                 <&| /page/info_section.mas, title=>"Pedigree and Descendants" , collapsible=> 0, collapsed=>0 &>
299                                     <& /pedigree/stock_pedigree.mas, stock_id => $stock_id, has_pedigree => $has_pedigree &>
300                                 </&>
302                                 <& /pedigree/stock_pedigree_string.mas, stock_id => $stock_id &>
303 % } #End stock_pedigree_section
304 % if ($info_section_id eq 'stock_related_stock_section'){
305                                 <& /stock/related_stock.mas, stock_id => $stock_id, stock_uniquename => $stock_uniquename, stock_type => $type_name &>
306 % } #End stock_related_stock_section
307 % if ($info_section_id eq 'vector_related_stocks_section'){
308                                 <& /stock/vector_related_stocks.mas, stock_id => $stock_id, stock_uniquename => $stock_uniquename, stock_type => $type_name &>
309 % } #End vector_related_stocks_section
311 % if ($info_section_id eq 'stock_images_section'){
312                                 <& /image/compare_images.mas, stock_id => $stock_id &>
314                                 <&| /page/info_section.mas, title=>"Images of This Stock(" .  scalar(@$image_ids)  . ")", collapsible=>1, collapsed=>0 &>
315                                     <& /image/print_images.mas , images=>$image_ids , dbh=>$dbh, additional_image_button_id=>'stock_images' &>
316                                 </&>
318                                 <&| /page/info_section.mas, title=>"Images of Related Stock(s) (" .  scalar(@$related_image_ids)  . ")", collapsible=>1, collapsed=>0 &>
319                                     <& /image/print_images.mas , images=>$related_image_ids , dbh=>$dbh, additional_image_button_id=>'related_stock_images' &>
320                                 </&>
321 % } #End stock_images_section
322 % if ($info_section_id eq 'stock_sequencing_status_section'){
323                                 <& /stock/sequencing_status.mas, stock_id => $stock_id &>
324 % } #End stock audit section
325 % if($info_section_id eq 'audit_table_section'){
326         <& /stock/audit.mas, stock_id => $stock_id, stock_uniquename => $stock_uniquename&>
327 % } #End TRIALS audit section
328 % if($info_section_id eq 'trial_audit_table_section'){
329         <& /breeders_toolbox/trial/trial_audit.mas, trial_id => $trial_id, project_id => $project_id&>
330 % } #End stock requencing status section
331 % if ($info_section_id eq 'stock_literature_annotation_section'){
332                                 <&| /page/info_section.mas, title=>"Literature annotation (".scalar( @$pubs ).")" , id=>"publications" , collapsible=>1, collapsed=>1 &>
335 % foreach my $publication ( @$pubs  ) {
336   <& /chado/publication.mas, pub=>$publication &>
337     <br >
338 % }
340                                 </&>
342                                 <&| /page/info_section.mas, id   => 'stock_ontology', title=>"Ontology annotation (" . $stockref->{ontology_count} . ")" &>
343                                     <& /ontology/associate_ontology.mas,
344                                     trait_db_name => $trait_ontology_db_name,
345                                     object_id     => $stock_id ,
346                                     object_name   => "stock",
347                                     cvterm_add_uri=> $cvterm_add_uri,
348                                     ontology_url  => "/stock/$stock_id/ontologies/",
349                                     reference_uri => "/stock/$stock_id/references/",
350                                     evidence_with_uri => "/stock/$stock_id/evidences/",
351                                     show_form     => $is_owner  &>
352                                 </&>
353 % } #End stock_literature_annotation_section
354 % if ($info_section_id eq 'stock_jbrowse_section'){
355                                 <p id="jbrowse_check">[loading...]</p>
356 % } #End stock_jbrowse_section
357 % if ($info_section_id eq 'stock_comments_section'){
358                                 <& /page/comments.mas, object_type=>'stock', object_id=>$stock_id, referer=>$referer &>
359 % } #End stock_comments_section
360 % if ($info_section_id eq 'stock_delete_section'){
361                                 <& /stock/delete.mas, stock_id=>$stock_id &>
362 % } #End stock_delete_section
363 % if ($info_section_id eq 'population_delete_section'){
364                                 <& /stock/population_delete.mas, stock_id=>$stock_id, stock_uniquename=>$stock_uniquename &>
365 % } #End population_delete_section
366 % if ($info_section_id eq 'population_members_section'){
367                                 <& /stock/population_members.mas, stock_id=>$stock_id &>
368 % } #End population_members_section
369 % if ($info_section_id eq 'manage_tissue_samples_field_trials'){
370                                 <& /breeders_toolbox/tissue_samples/field_trials_with_tissue_samples.mas &>
371 % } #End manage_tissue_samples_field_trials
372 % if ($info_section_id eq 'manage_tissue_samples_genotyping_trials'){
373                                 <& /breeders_toolbox/tissue_samples/genotyping_trials.mas &>
374 % } #End manage_tissue_samples_genotyping_trials
375 % if ($info_section_id eq 'manage_tissue_samples_sampling_trials'){
376                                 <& /breeders_toolbox/tissue_samples/sampling_trials.mas &>
377 % } #End manage_tissue_samples_sampling_trials
378 % if ($info_section_id eq 'trial_details'){
379                                 <& /breeders_toolbox/trial/trial_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, breeding_program_name=>$breeding_program_name, breeding_program_id=>$breeding_program_id, location_name=>$location_name, country_name=>$country_name, year=>$year, trial_type=>$trial_type, planting_date=>$planting_date, transplanting_date=>$transplanting_date, harvest_date=>$harvest_date, trial_description=>$trial_description, folder_name=>$folder_name, folder_id=>$folder_id, identifier_prefix=>$identifier_prefix, plot_width=>$plot_width, plot_length=>$plot_length, field_size=>$field_size, field_trial_is_planned_to_be_genotyped=>$field_trial_is_planned_to_be_genotyped, field_trial_is_planned_to_cross=>$field_trial_is_planned_to_cross, trial_stock_type => $trial_stock_type, trial_stock_count => $trial_stock_count, trial_owner => $trial_owner, latest_trial_activity => $latest_trial_activity &>
380 % } #End trial_details
381 % if ($info_section_id eq 'stocks_search_graphical_filtering'){
382                                 <& /search/stocks_graphicalfiltering.mas &>
383 % } #End stocks_search_graphical_filtering
386 % if ($info_section_id eq 'genotyping_data_project_details'){
387                                 <& /breeders_toolbox/genotyping_data_project/details.mas, trial_id=>$trial_id, trial_name=>$trial_name, breeding_program_name=>$breeding_program_name, breeding_program_id=>$breeding_program_id, location_name=>$location_name, year=>$year, trial_description=>$trial_description, identifier_prefix=>$identifier_prefix, genotyping_facility => $genotyping_facility, genotype_data_type => $genotype_data_type, trial_owner => $trial_owner &>
388 % } #End genotyping_data_project_details
389 % if ($info_section_id eq 'genotyping_data_project_protocols'){
390                                 <& /breeders_toolbox/genotyping_data_project/protocols.mas, trial_id=>$trial_id &>
391 % } #End genotyping_data_project_protocols
392 % if ($info_section_id eq 'genotyping_data_project_data'){
393                                 <& /breeders_toolbox/genotyping_data_project/genotype_data.mas, trial_id=>$trial_id &>
394 % } #End genotyping_data_project_data
395 % if ($info_section_id eq 'genotyping_project_plates'){
396                                 <& /breeders_toolbox/genotyping_data_project/genotyping_plates.mas, trial_id=>$trial_id &>
397 % } #End genotyping_project_plates
398 % if ($info_section_id eq 'genotyping_data_archived_vcf') {
399                                 <& /breeders_toolbox/genotyping_data_project/genotype_archived_vcf.mas, trial_id=>$trial_id &>
400 % } #End genotyping_data_archived_vcf
401 % if ($info_section_id eq 'genotyping_project_deletion_section'){
402                                 <& /breeders_toolbox/genotyping_data_project/genotyping_project_deletion.mas, trial_id=>$trial_id &>
403 % } #End genotyping_project_deletion_section
404 % if ($info_section_id eq 'project_pcr_genotype_data'){
405                                 <& /breeders_toolbox/genotyping_data_project/pcr_genotype_data.mas, trial_id => $trial_id, marker_names => $marker_names &>
406 % } #End project_pcr_genotype_data
409 % if ($info_section_id eq 'identifier_generation_list'){
410                                 <& /breeders_toolbox/identifier_generation/list_identifier_generation.mas &>
411 % } #End identifier_generation_list
412 % if ($info_section_id eq 'management_factor_details'){
413                                 <& /breeders_toolbox/trial/management_factor_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, trial_description=>$trial_description, year=>$year, management_factor_type=>$management_factor_type, management_factor_date=>$management_factor_date &>
414 % } #End management_factor_details
415 % if ($info_section_id eq 'management_factor_design'){
416                                 <& /breeders_toolbox/trial/design_section_management_factor.mas, trial_id => $trial_id, trial_name => $trial_name, has_subplot_entries => $has_subplot_entries, has_plant_entries => $has_plant_entries, has_tissue_sample_entries => $has_tissue_sample_entries, design_name => $design_name &>
417 % } #End management_factor_design
419 % if ($info_section_id eq 'genotyping_protocol_details'){
420                                 <& /breeders_toolbox/genotyping_protocol/details.mas, protocol_id => $protocol_id, protocol_name => $protocol_name, protocol_description => $protocol_description, marker_names => $marker_names, header_information_lines => $header_information_lines, reference_genome_name => $reference_genome_name, species_name => $species_name, create_date => $create_date, sample_observation_unit_type_name => $sample_observation_unit_type_name, marker_type => $marker_type, assay_type => $assay_type &>
421 % } #End genotyping_protocol_details
422 % if ($info_section_id eq 'genotyping_protocol_markers'){
423                                 <& /breeders_toolbox/genotyping_protocol/markers.mas, protocol_id => $protocol_id, marker_info_headers => $marker_info_headers &>
424 % } #End genotyping_protocol_markers
425 % if ($info_section_id eq 'genotyping_protocol_genotype_data'){
426                                 <& /breeders_toolbox/genotyping_protocol/genotype_data.mas, protocol_id => $protocol_id &>
427 % } #End genotyping_protocol_genotype_data
428 % if ($info_section_id eq 'genotyping_protocol_delete_genotype_data') {
429                                 <& /breeders_toolbox/genotyping_protocol/delete_genotype_data.mas, protocol_id => $protocol_id &>
430 % }
431 % if ($info_section_id eq 'pcr_based_genotyping_markers'){
432                                 <& /breeders_toolbox/genotyping_protocol/pcr_markers.mas, protocol_id => $protocol_id &>
433 % } #End pcr_based_genotyping_markers
434 % if ($info_section_id eq 'pcr_genotyping_protocol_genotype_data'){
435                                 <& /breeders_toolbox/genotyping_protocol/pcr_genotype_data.mas, protocol_id => $protocol_id, marker_names => $marker_names &>
436 % } #End pcr_genotyping_protocol_genotype_data
440 % if ($info_section_id eq 'crossingtrial_details'){
441                                 <& /breeders_toolbox/cross/crossingtrial_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, breeding_program_name=>$breeding_program_name, breeding_program_id=>$breeding_program_id, location_name=>$location_name, country_name=>$country_name, year=>$year, planting_date=>$planting_date, transplanting_date=>$transplanting_date, harvest_date=>$harvest_date, trial_description=>$trial_description, folder_name=>$folder_name, folder_id=>$folder_id, identifier_prefix=>$identifier_prefix, trial_owner => $trial_owner &>
442 % } #End crossingtrial_details
444 % if ($info_section_id eq 'target_numbers_crossingtrial_section'){
445                                 <& /breeders_toolbox/cross/target_numbers.mas, trial_id=>$trial_id &>
446 % } #End target_numbers_crossingtrial_section
448 % if ($info_section_id eq 'crosses_in_crossingtrial_section'){
449                                 <& /breeders_toolbox/cross/crosses_in_crossingtrial.mas, trial_id=>$trial_id &>
450 % } #End crosses_in_crossingtrial_section
452 % if ($info_section_id eq 'additional_info_crossingtrial_section'){
453                                 <& /breeders_toolbox/cross/cross_additional_info_crossingtrial.mas, trial_id=>$trial_id &>
454 % } #End additional_info_crossingtrial_section
456 % if ($info_section_id eq 'cross_properties_crossingtrial_section'){
457                                 <& /breeders_toolbox/cross/cross_properties_crossingtrial.mas, trial_id=>$trial_id &>
458 % } #End cross_properties_crossingtrial_section
460 % if ($info_section_id eq 'progenies_in_crossingtrial_section'){
461                                 <& /breeders_toolbox/cross/progenies_in_crossingtrial.mas, trial_id=>$trial_id &>
462 % } #End progenies_in_crossingtrial_section
464 % if ($info_section_id eq 'seedlots_from_crossingtrial_section'){
465                                 <& /breeders_toolbox/cross/seedlots_from_crossingtrial.mas, trial_id=>$trial_id, breeding_program_name=>$breeding_program_name, breeding_program_id=>$breeding_program_id, locations_by_program_json=>$locations_by_program_json &>
466 % } #End seedlots_from_crossingtrial_section
468 % if ($info_section_id eq 'crossing_trial_from_field_trial_section'){
469                                 <& /breeders_toolbox/trial/crossing_trial_from_field_trial_linkage.mas, trial_id => $trial_id, trial_type => 'crossing_trial' &>
470 % } #End crossing_trial_from_field_trial_section
472 % if ($info_section_id eq 'marker_set_summary_section'){
473                                 <& /breeders_toolbox/markers/marker_set_summary.mas &>
474 % } #End marker_set_summary_section
476 % if ($info_section_id eq 'crossing_experiment_deletion_section'){
477                                 <& /breeders_toolbox/cross/crossing_experiment_deletion.mas, trial_id => $trial_id  &>
478 %} #End crossing_experiment_deletion_section
480 % if ($info_section_id eq 'intercross_section'){
481                                 <& /breeders_toolbox/cross/intercross_file_info.mas, trial_id => $trial_id  &>
482 %} #End intercross_section
484 % if ($info_section_id eq 'progeny_search_section'){
485                                 <& /search/cross/progeny_search_section.mas &>
486 %} #End progeny_search_section
488 % if ($info_section_id eq 'cross_search_section'){
489                                 <& /search/cross/cross_search_section.mas &>
490 %} #End cross_search_section
492 % if ($info_section_id eq 'parent_search_section'){
493                                 <& /search/cross/parent_search.mas &>
494 %} #End parent_search_section
496 % if ($info_section_id eq 'all_cross_entries_section'){
497                                 <& /breeders_toolbox/cross/all_cross_entries.mas &>
498 %} #End all_cross_entries_section
500 % if ($info_section_id eq 'manage_nirs_main'){
501                                 <& /tools/nirs/manage_nirs_main.mas, nirs_files => $nirs_files, deleted_nirs_files => $deleted_nirs_files, all_nirs_files => $all_nirs_files, all_deleted_nirs_files => $all_deleted_nirs_files, locations => $locations, sampling_facilities=>$sampling_facilities &>
502 % } #End manage_nirs_main
504 % if ($info_section_id eq 'manage_sequence_metadata'){
505     <& /tools/sequence_metadata/manage_sequence_metadata_main.mas &>
506 % } #End manage_smd_main
508 % if ($info_section_id eq 'manage_drone_imagery_main'){
509                                 <& /breeders_toolbox/drone_imagery/raw_image_section.mas &>
510 % } #End manage_drone_imagery_main
512 % if ($info_section_id eq 'manage_drone_imagery_generate_plot_polygons_section'){
513                                 <& /breeders_toolbox/drone_imagery/generate_plot_polygons_section.mas, id_extension=>$id_extension &>
514 % } #End manage_drone_imagery_generate_plot_polygons_section
515 % if ($info_section_id eq 'manage_drone_imagery_generate_plot_polygons_standard_process_raw_images_section'){
516                                 <& /breeders_toolbox/drone_imagery/generate_plot_polygons_standard_process_raw_images_section.mas, id_extension=>$id_extension &>
517 % } #End manage_drone_imagery_generate_plot_polygons_standard_process_raw_images_section
518 % if ($info_section_id eq 'manage_drone_imagery_generate_plot_polygons_standard_process_raw_images_section_ground_control_points'){
519                                 <& /breeders_toolbox/drone_imagery/generate_plot_polygons_standard_process_raw_images_section_ground_control_points.mas &>
520 % } #End manage_drone_imagery_generate_plot_polygons_standard_process_raw_images_section_ground_control_points
521 % if ($info_section_id eq 'manage_drone_imagery_standard_process_generate_plot_polygons_section'){
522                                 <& /breeders_toolbox/drone_imagery/generate_plot_polygons_standard_process_section.mas &>
523 % } #End manage_drone_imagery_standard_process_generate_plot_polygons_section
524 % if ($info_section_id eq 'drone_run_project_details'){
525                                 <& /breeders_toolbox/drone_imagery/drone_run_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, trial_description=>$trial_description, identifier_prefix=>$identifier_prefix, drone_run_date=>$drone_run_date &>
526 % } #End trial_details
527 % if ($info_section_id eq 'analysis_details'){
528                                 <& /analyses/analysis_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, trial_description=>$trial_description, breeding_program_name=>$breeding_program_name, breeding_program_id=>$breeding_program_id, year=>$year, identifier_prefix=>$identifier_prefix, trial_stock_type => $trial_stock_type, analysis_metadata=>$analysis_metadata &>
529 % } #End analysis_details
530 % if ($info_section_id eq 'analysis_page_analysis_tools'){
531                                 <& /breeders_toolbox/trial/correlation_workflow.mas, trial_id => $trial_id, is_analysis => 1 &>
533                                 <& /breeders_toolbox/trial/time_series_accessions_workflow.mas, trial_id => $trial_id, data_level=>'analysis_instance' &>
535                                 <& /breeders_toolbox/trial/accession_rank_workflow.mas, trial_id => $trial_id, data_level=>'analysis_instance' &>
537                                 <& /breeders_toolbox/trial/genotype_comparison_workflow.mas, trial_id => $trial_id, data_level=>'analysis_instance' &>
538 % }
539 % if ($info_section_id eq 'model_details'){
540                                 <& /analyses/model_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, analysis_metadata=>$analysis_metadata &>
541 % } #End analysis_details
542 % if ($info_section_id eq 'analysis_model_details'){
543                                 <& /analyses/model_detail_page_section.mas, model_id => $model_id, model_name => $model_name, model_description => $model_description, model_properties => $model_properties, model_file_ids => $model_file_ids, model_type_name => $model_type_name, model_files => $model_files, identifier_prefix => $identifier_prefix &>
544 % } #End analysis_model_details
545 % if ($info_section_id eq 'model_analyses'){
546                                 <& /analyses/model_detail_page_analyses_section.mas, model_id => $model_id &>
547 % } #End model_analyses
548 % if ($info_section_id eq 'analytics_protocol_details'){
549                                 <& /analytics_protocols/analytics_protocols_details.mas, analytics_protocol_id=>$analytics_protocol_id, analytics_protocol_name=>$analytics_protocol_name, analytics_protocol_description=>$analytics_protocol_description, analytics_protocol_type_id=>$analytics_protocol_type_id, analytics_protocol_type_name=>$analytics_protocol_type_name, analytics_protocol_create_date=>$analytics_protocol_create_date, analytics_protocol_properties=>$analytics_protocol_properties, analytics_protocol_result_summary=>$analytics_protocol_result_summary &>
550 % } #End analytics_protocol_details
551 % if ($info_section_id eq 'analytics_protocol_result_files'){
552                                 <& /analytics_protocols/analytics_protocols_result_files.mas, analytics_protocol_id=>$analytics_protocol_id, analytics_protocol_name=>$analytics_protocol_name &>
553 % } #End analytics_protocol_result_files
554 % if ($info_section_id eq 'model_deletion_section'){
555                                 <&| /page/info_section.mas, title=>'Delete model', subtitle=>'<font color="red" role="">Deletion cannot be undone</font>', collapsed=>1, collapsible=>1 &>
556                                     <& /analyses/model_deletion.mas, model_id => $model_id  &>
557                                 </&>
558 % } #End model_deletion_section
559 % if ($info_section_id eq 'manage_file_share_dump'){
560                                 <& /breeders_toolbox/file_share/file_dump_share_files.mas &>
561 % } #End manage_file_share_dump
563 % if ($info_section_id eq 'program_location_section'){
564                                 <& /breeders_toolbox/program/program_locations.mas, program_id => $program_id &>
565 % } #End program_location_section
566 % if ($info_section_id eq 'program_project_section'){
567                                 <& /breeders_toolbox/program/program_project_section.mas, program_id => $program_id &>
568 % } #End program_project_section
569 % if ($info_section_id eq 'program_stock_section'){
570                                 <& /breeders_toolbox/program/program_stock_section.mas, program_id => $program_id &>
571 % } #End program_stock_section
572 % if ($info_section_id eq 'program_phenotype_section'){
573                                 <& /breeders_toolbox/program/traits.mas, program_id => $program_id, collapse_phenotypes_section => 0 &>
574 % } #End program_phenotype_section
575 % if ($info_section_id eq 'program_product_profile_section'){
576                                 <& /breeders_toolbox/program/product_profile.mas, program_id => $program_id, collapse_phenotypes_section => 0 &>
577 % } #End program_product_profile_section
579 % if ($info_section_id eq 'activity_project_details'){
580                                 <& /tracking_activities/activity_project_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, breeding_program_name=>$breeding_program_name, breeding_program_id=>$breeding_program_id, location_name=>$location_name, country_name=>$country_name, year=>$year, trial_description=>$trial_description, folder_name=>$folder_name, folder_id=>$folder_id, identifier_prefix=>$identifier_prefix, trial_owner => $trial_owner, vendor_id => $vendor_id &>
581 % } #End activity_project_details
582 % if ($info_section_id eq 'active_tracking_identifiers_section'){
583                                 <& /tracking_activities/active_tracking_identifiers.mas, trial_id=>$trial_id &>
584 % } #End active_tracking_identifiers_section
586 % if ($info_section_id eq 'transformation_project_details'){
587                                 <& /transformation/transformation_project_details.mas, trial_id=>$trial_id, trial_name=>$trial_name, breeding_program_name=>$breeding_program_name, breeding_program_id=>$breeding_program_id, location_name=>$location_name, country_name=>$country_name, year=>$year, trial_description=>$trial_description, folder_name=>$folder_name, folder_id=>$folder_id, identifier_prefix=>$identifier_prefix, trial_owner => $trial_owner &>
588 % } #End transformation_project_details
589 % if ($info_section_id eq 'transformations_in_project_section'){
590                                 <& /transformation/transformations_in_project.mas, trial_id=>$trial_id &>
591 % } #End transformations_in_project_section
593 % if (!$info_section_id){
594                                 <p>No section specified! Main content goes here!</p>
595 % }
597                             </div>
598                         </div>
599                     </&>
600                 </div>
601             </div>
602         </div>
603     </div>
604 </div>