Merge pull request #2754 from solgenomics/topic/fix_homepage_add_accessions_dialog
[sgn.git] / mason / solgs / population / selection_trait.mas
blobb5295b88fae7c5ef77a693b54ceec82922f09772
1 <%doc>
3 =head1 NAME 
5 /solgs/population/selection_trait.mas - displays trait GEBV prediction output for selection population using single trial model.
7 =AUTHOR
9 Isaak Y Tecle (iyt2@cornell.edu)
11 =cut
13 </%doc>
16 <%args>
19 $trait_abbr
20 $trait_name
21 $trait_id
23 $traits_no => ''
25 $training_pop_id
26 $training_pop_name
27 $training_pop_desc
28 $training_pop_owner
29 $training_stocks_cnt => ''
30 $training_markers_cnt => ''
32 $selection_pop_id => ''
33 $selection_pop_name => ''
34 $selection_pop_desc => ''
35 $selection_pop_owner => ''
36 $selection_stocks_cnt => ''
37 $selection_markers_cnt => ''
39 $owner => ''
40 $protocol
41 $top_blups
42 $blups_download_url
43 $combined_populations => ''
45 $data_set_type => ''
48 </%args>
50 <%perl>
52 my $model_link = "<a href=\"/solgs/trait/$trait_id/population/$training_pop_id\">$training_pop_name</a>";
55 </%perl>
57   <& /util/import_javascript.mas, classes => ["d3.d3Min", "solGS.solGS","solGS.traitGebvFlot", 
58                                               "flot.flot", "flot.categories", 
59                                               "flot.tooltip", "flot.selection", "flot.navigate", 
60                                               "flot.axisLabels",
61                                              ] 
62   &>
65 <& /util/import_css.mas, paths => ['/static/css/solgs/solgs.css'] &>
67 <& /page/page_title.mas, 
68    title => "GEBVs for $trait_name ($trait_abbr) in $selection_pop_name"
71 <&| /page/info_section.mas, 
72   collapsible => 1, 
73   collapsed   => 0, 
74   title       => "Selection population summary",
75   &>
77  <& summary.mas,
78     project_id   => $selection_pop_id,
79     project_name => $selection_pop_name,
80     project_desc => $selection_pop_desc,
81     model_link   => $model_link,
82     stocks_no    => $selection_stocks_cnt,
83     markers_no   => $selection_markers_cnt,
84     traits_no    => $traits_no,
85     trait_name   => $trait_name,
86     protocol     => $protocol,
87     owner        => $selection_pop_owner,
88    combined_populations => $combined_populations,
89  &>
91 </&>
93 <& /solgs/pca/analysis.mas &>
94   
95 <& /solgs/model/top_blups.mas, 
96    top_blups          => $top_blups,
97    blups_download_url => $blups_download_url,
101 <& /solgs/genetic_gain/genetic_gain.mas,
102    trait_id         => $trait_id,
103    training_pop_id  => $training_pop_id,
104    selection_pop_id => $selection_pop_id,
108 <input type="hidden"  id="model_id" value="<% $training_pop_id %>" /> 
109 <input type="hidden"  id="training_pop_id" value="<% $training_pop_id %>" />
110 <input type="hidden"  id="trait_id" value="<% $trait_id %>" />
111 <input type="hidden"  id="selection_pop_id" value="<% $selection_pop_id %>" />