Merge pull request #4106 from solgenomics/topic/wishlist
[sgn.git] / mason / solgs / population / multiple_traits_output.mas
blobc3b8595796544fd20d50aec88cc356a8dacb1234
1 <%doc>
3 =head1 NAME
5 /solgs/population/multiple_traits_output.mas - displays multiple traits GS analysis output and links to traits' GS detailed output pages
7 =AUTHOR
9 Isaak Y Tecle (iyt2@cornell.edu)
11 =cut
13 </%doc>
15 <%args>
17 $trait_pages
18 $training_pop_analyzed_traits
19 $training_pop_analyzed_traits_ids => undef
20 $training_pop_id
21 $training_pop_name
22 $training_pop_desc
23 $training_pop_url
24 $training_traits_code => undef
26 $model_data
27 $selection_prediction_download => undef
28 $selection_pop_id => undef
29 $selection_pop_name => undef
30 $list_of_prediction_pops => undef
31 $selection_pop_analyzed_traits => undef
32 $selection_pop_analyzed_traits_ids => undef
33 $genotyping_protocol_id
35 </%args>
37 <%perl>
39 my $training_traits_ids = join(',', @$training_pop_analyzed_traits_ids);
41 my $selection_traits_ids;
43 if ($selection_pop_analyzed_traits_ids) {
44 $selection_traits_ids = join(',', @$selection_pop_analyzed_traits_ids);
47 </%perl>
49 <& /util/import_css.mas, paths => ['/static/css/solgs/solgs.css'] &>
51 <& /util/import_javascript.mas, classes => ["solGS.listTypeSelectionPopulation"] &>
53 <& /page/page_title.mas,
54    title => "Prediction models from $training_pop_name"
58 <& /solgs/model/model_summary.mas,
59      model_data => $model_data
60   &>
62   <& /solgs/population/hidden_input.mas,
63     training_pop_id       => $training_pop_id,
64     training_pop_name      => $training_pop_name,
65     training_pop_desc      => $training_pop_desc,
66     genotyping_protocol_id => $genotyping_protocol_id,
67     training_traits_ids    => $training_traits_ids,
68     selection_traits_ids   => $selection_traits_ids,
69     training_traits_code => $training_traits_code
70    &>
72 <& selection_populations.mas,
73    selection_prediction_download  => $selection_prediction_download,
74    training_pop_analyzed_traits                => $training_pop_analyzed_traits,
75    training_pop_id               => $training_pop_id,
76    training_pop_name                   => $training_pop_name,
77    selection_pop_id              => $selection_pop_id,
78     selection_pop_name            => $selection_pop_name,
79    list_of_prediction_pops        => $list_of_prediction_pops,
81    selection_pop_analyzed_traits => $selection_pop_analyzed_traits,
84 <& /solgs/tools/correlation/genetic_correlation.mas,
85      training_pop_analyzed_traits     => $training_pop_analyzed_traits,
86      training_pop_id                         => $training_pop_id,
87      training_pop_name                    => $training_pop_name,
88      selection_pop_id                       => $selection_pop_id,
89      selection_pop_name                 => $selection_pop_name,
90      selection_pop_analyzed_traits => $selection_pop_analyzed_traits,
94 <& /solgs/tools/genetic_gain/genetic_gain.mas,
95      training_pop_analyzed_traits                => $training_pop_analyzed_traits,
96      training_pop_analyzed_traits_ids            => $training_pop_analyzed_traits_ids,
97      training_pop_id                         => $training_pop_id,
98      project_name                   => $training_pop_name,
99      selection_pop_id              => $selection_pop_id,
100      selection_pop_name            => $selection_pop_name,
101      selection_pop_analyzed_traits => $selection_pop_analyzed_traits,
105 <& /solgs/tools/selection_index/selection_index.mas,
106      training_pop_analyzed_traits  => $training_pop_analyzed_traits,
107      training_pop_id               => $training_pop_id,
108      training_pop_name             => $training_pop_name,
109      selection_pop_id              => $selection_pop_id,
110      selection_pop_name            => $selection_pop_name,
111      selection_pop_analyzed_traits => $selection_pop_analyzed_traits,
112   &>
115 <& /solgs/tools/cluster/analysis.mas &>
117   <& /solgs/tools/kinship/analysis.mas,
118      pop_id => $training_pop_id &>
120 <& /solgs/population/trait_acronyms.mas,