5 $dataset_description => ''
6 $dataset_contents => ''
10 <& /page/page_title.mas, title => "Dataset $dataset_name" &>
11 <& /util/import_javascript.mas, entries => [qw|dataset_scatterplot dataset|], classes => [ qw|jqueryui.js jquery.js d3.d3v4Min jstree.dist.jstree thickbox CXGN.Page.FormattingHelpers jquery.dataTables| ] &>
12 <& /util/import_css.mas, paths => ['wizard.css'] &>
17 # justify-content: center;
21 ::-webkit-slider-runnable-track {
26 min-height: 150px !important;
35 font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
43 stroke-dasharray: 5,5;
47 stroke-dasharray: 5,5;
51 stroke-dasharray: 5,5;
58 #rosner_table_wrapper {
70 <meta charset="UTF-8">
71 <meta name="viewport" content="width=device-width, initial-scale=1.0">
72 <meta http-equiv="X-UA-Compatible" content="ie=edge">
73 <title>Dataset Details</title>
77 my $wizard_link = '<a href=\'/breeders/search?dataset_id=' . $dataset_id . '\'>' . $dataset_name . '</a>';
81 <div id="wizard" class="row">
82 <div class="wizard-datasets">
83 <table id="dataset_results"; border="1">
84 <tr><td>Name<td><% $dataset_name %>
85 <tr><td>Description<td><% $dataset_description %>
86 <tr><td>Contents<td><% $dataset_contents %>
89 <span class="input-group-btn">
90 <span><button style="width:9em;margin-left:4px;" class="btn btn-sm btn-primary" id="wizard-dataset-public">Make Public</button></span>
91 <span><button style="width:9em;margin-left:4px;" class="btn btn-sm btn-primary" id="wizard-dataset-private">Make Private</button></span>
92 <span><button style="width:5em;margin-left:4px;" class="btn btn-sm btn-danger" id="wizard-dataset-delete">Delete</button></span>
95 <tr><td>Select Dataset in Wizard<td><% $wizard_link %>
101 <div class="top-row col-md-12">
102 <div id="trait_selections" class="col-md-6">
103 <label for="trait_selection">Select a Trait: </label>
104 <select id="trait_selection" class="form-control" name="trait_selection">
105 <option value="default">Select Trait</option>
110 <div class="col-md-12 well" style="margin-top: 10px;">
112 <div class="col-md-8">
113 <div id="outliers_range">
114 <div id="custom-handle" class="ui-slider-handle"></div>
119 $("#outliers_range").slider({
120 orientation: "horizontal",
127 var handle = $( "#custom-handle" );
128 $("#outliers_range").slider({
129 create: function(event, ui) {
130 handle.text(ui.value);
132 slide: function(event, ui) {
133 handle.text(ui.value);
139 #outliers_range .ui-slider-range { background: #5cb85c; }
140 #outliers_range .ui-slider-handle { border-color: #d9534f; }
141 #outliers_range { background: #d9534f; margin-top: 0.7em;}
153 <div class="col-md-3">
154 <div class="input-group">
155 <span class="input-group-addon">
156 <input type="radio" aria-label="median" id="median" value="median" name="dataset_metric" checked="true">
158 <label for="median" class="form-control" aria-label="median">Median</label>
159 <span class="input-group-addon">
160 <input type="radio" aria-label="mean" id="mean" value="mean" name="dataset_metric" >
162 <label for="mean" class="form-control" aria-label="mean">Mean</label>
163 <span class="input-group-addon">
164 <input type="radio" aria-label="IQR" id="iqr" value="iqr" name="dataset_metric" >
166 <label for="iqr" class="form-control" aria-label="iqr">IQR</label>
174 <div class="col-md-12">
175 <div id="trait_graph"></div>
177 <div class="col-md-12">
178 <div class="input-group-btn col-md-11 col-md-offset-1">
180 <button class="btn btn-sm btn-success btn-dataset" id="store_outliers">Add selection to outliers</button>
183 <button class="btn btn-sm btn-danger btn-dataset" id="reset_trait">Reset outliers for current trait</button>
186 <button class="btn btn-sm btn-danger btn-dataset" id="reset_outliers">Reset all outliers</button>
189 <button class="btn btn-sm btn-primary btn-dataset" id="outliers_phenotype_download">Download Phenotype Table without outliers</button>
192 <button class="btn btn-sm btn-primary btn-dataset" id="rosner_test">Make Rosner outlier test</button>
193 <img id="loading-spinner" src="/img/wheel.gif" alt="loading" style="visibility: hidden;">
198 <div class="row well" style="margin: 5px 10px;">
199 Rosner's test is calculated by the R function rosnerTest{EnvStats} from package EnvStats.<br>
200 <a href="https://cran.r-project.org/web/packages/EnvStats/index.html">https://cran.r-project.org/web/packages/EnvStats/index.html</a>
203 <div id="statistic_tests">
205 <table id="rosner_table">
212 jQuery(document).ready( function() {
214 // console.log('dataset id', '<% $dataset_id %>');
215 var DataSet = window.jsMod['dataset_scatterplot'].init(<% $dataset_id %>);
218 jQuery('#info_table').click(function() {
220 url: '/ajax/dataset/by_user/<% $dataset_id %>',
221 success: function(response) {
222 alert(response.options);
224 error: function(response) {
225 alert("An error occurred");
230 jQuery('#outliers_phenotype_download').click(function() {
232 var speed = 'MaterializedViewTable';
237 var url = document.location.origin+
238 `/breeders/download_action?trait_ids_list=${DataSet.traitsIds}`+
240 `&phenotype_datalevel=${level}`+
241 `×tamp_included=${timestamp}`+
242 `&dataset_id=<% $dataset_id %>`
244 window.open(url,'_blank');