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 dataset 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 %>
87 <td><input type="text" id="description" value=" <% $dataset_description %>"></input>
88 <button style="width:9em;bargin-left:4px;" class="btn btn-sm btn-primary" onclick="datasetUpdate(<% $dataset_id %>)">Update</button>
90 <tr><td>Description<td><% $dataset_description %>
92 <tr><td>Contents<td><% $dataset_contents %>
95 <span class="input-group-btn">
96 <span><button style="width:9em;margin-left:4px;" class="btn btn-sm btn-primary" onclick="datasetPublic(<% $dataset_id %>)">Make Public</button></span>
97 <span><button style="width:9em;margin-left:4px;" class="btn btn-sm btn-primary" onclick="datasetPrivate(<% $dataset_id %>)">Make Private</button></span>
98 <span><button style="width:5em;margin-left:4px;" class="btn btn-sm btn-danger" onclick="datasetDelete(<% $dataset_id %>)">Delete</button></span>
101 <tr><td>Select Dataset in Wizard<td><% $wizard_link %>
107 <div class="top-row col-md-12">
108 <div id="trait_selections" class="col-md-6">
109 <label for="trait_selection">Select a Trait: </label>
110 <select id="trait_selection" class="form-control" name="trait_selection">
111 <option value="default">Select Trait</option>
116 <div class="col-md-12 well" style="margin-top: 10px;">
118 <div class="col-md-8">
119 <div id="outliers_range">
120 <div id="custom-handle" class="ui-slider-handle"></div>
125 $("#outliers_range").slider({
126 orientation: "horizontal",
133 var handle = $( "#custom-handle" );
134 $("#outliers_range").slider({
135 create: function(event, ui) {
136 handle.text(ui.value);
138 slide: function(event, ui) {
139 handle.text(ui.value);
145 #outliers_range .ui-slider-range { background: #5cb85c; }
146 #outliers_range .ui-slider-handle { border-color: #d9534f; }
147 #outliers_range { background: #d9534f; margin-top: 0.7em;}
159 <div class="col-md-3">
160 <div class="input-group">
161 <span class="input-group-addon">
162 <input type="radio" aria-label="median" id="median" value="median" name="dataset_metric" checked="true">
164 <label for="median" class="form-control" aria-label="median">Median</label>
165 <span class="input-group-addon">
166 <input type="radio" aria-label="mean" id="mean" value="mean" name="dataset_metric" >
168 <label for="mean" class="form-control" aria-label="mean">Mean</label>
169 <span class="input-group-addon">
170 <input type="radio" aria-label="IQR" id="iqr" value="iqr" name="dataset_metric" >
172 <label for="iqr" class="form-control" aria-label="iqr">IQR</label>
180 <div class="col-md-12">
181 <div id="trait_graph"></div>
183 <div class="col-md-12">
184 <div class="input-group-btn col-md-11 col-md-offset-1">
186 <button class="btn btn-sm btn-success btn-dataset" id="store_outliers">Add selection to outliers</button>
189 <button class="btn btn-sm btn-danger btn-dataset" id="reset_trait">Reset outliers for current trait</button>
192 <button class="btn btn-sm btn-danger btn-dataset" id="reset_outliers">Reset all outliers</button>
195 <button class="btn btn-sm btn-primary btn-dataset" id="outliers_phenotype_download">Download Phenotype Table without outliers</button>
198 <button class="btn btn-sm btn-primary btn-dataset" id="rosner_test">Make Rosner outlier test</button>
199 <img id="loading-spinner" src="/img/wheel.gif" alt="loading" style="visibility: hidden;">
204 <div class="row well" style="margin: 5px 10px;">
205 Rosner's test is calculated by the R function rosnerTest{EnvStats} from package EnvStats.<br>
206 <a href="https://cran.r-project.org/web/packages/EnvStats/index.html">https://cran.r-project.org/web/packages/EnvStats/index.html</a>
209 <div id="statistic_tests">
211 <table id="rosner_table">
218 jQuery(document).ready( function() {
220 // console.log('dataset id', '<% $dataset_id %>');
221 var DataSet = window.jsMod['dataset_scatterplot'].init(<% $dataset_id %>);
224 jQuery('#info_table').click(function() {
226 url: '/ajax/dataset/by_user/<% $dataset_id %>',
227 success: function(response) {
228 alert(response.options);
230 error: function(response) {
231 alert("An error occurred");
236 jQuery('#outliers_phenotype_download').click(function() {
238 var speed = 'MaterializedViewTable';
243 var url = document.location.origin+
244 `/breeders/download_action?trait_ids_list=${DataSet.traitsIds}`+
246 `&phenotype_datalevel=${level}`+
247 `×tamp_included=${timestamp}`+
248 `&dataset_id=<% $dataset_id %>`
250 window.open(url,'_blank');