fix run_model call so that it works with non-default options as well.
[sgn.git] / mason / tools / heritability / heritability.mas
blobc194b6344f511b87c72d2967d7fd7535fd557908
1 <%doc>
3 =head1 NAME
4  
5 /heritability/heritability.mas - heritability output section
7 =AUTHOR
9 Chris Simoes (ccs263@cornell.edu)
11 =cut
13 </%doc>
15 <%args>
17 $pop_id   => undef
18 $trial_id => undef
20 </%args>
22 <%perl>
24 $pop_id = $trial_id if $trial_id;
26 </%perl>
28 <style>
29 /* heritability coefficients plot styling */
30 .axis text {
31   font: 10px sans-serif;
34 .axis line,
35 .axis path {
36   fill: none;
37   stroke: #000;
38   shape-rendering: crispEdges;
41 </style>
44 <& /util/import_javascript.mas, classes => ["d3.d3Min", "heritability.heritability"] &>
45 <&| /page/info_section.mas, 
46       collapsible => 1, 
47       collapsed   => 0, 
48       title       => "Phenotypic heritability analysis"
52 <div id="heritability_canvas">
53   <input id="run_pheno_heritability" class="button" type="button" value="Run heritability" /> 
54   <input type="hidden" id="population_id" value="<% $pop_id %>" />
55   <div id="heritability_message"  style="font-weight:bold;text-align:center;color:#A7C942"></div>
56 </div>
58 </&>