5 <& /util/import_javascript.mas, classes => [ 'jquery', 'jqueryui', 'jquery.iframe-post-form', 'CXGN.BreedersToolbox.UploadPhenotype', 'CXGN.BreederSearch', 'CXGN.Trial' ] &>
7 <div class="modal fade" id="upload_phenotype_spreadsheet_dialog" name="upload_phenotype_spreadsheet_dialog" tabindex="-1" role="dialog" aria-labelledby="addSpreadsheetNIRSDialog">
8 <div class="modal-dialog" role="document">
9 <div class="modal-content">
10 <div class="modal-header">
11 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
12 <h4 class="modal-title" id="addSpreadsheetNIRSDialog">Upload NIRS Spreadsheet</h4>
14 <div class="modal-body">
15 <div class="container-fluid">
17 <&| /page/explanation.mas, title=>'Template Information' &>
19 <b>File format information</b>
21 <a id="phenotype_upload_spreadsheet_format_info">Spreadsheet Format</a>
25 <form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" encoding="multipart/form-data" id="upload_spreadsheet_phenotype_file_form" name="upload_spreadsheet_phenotype_file_form">
26 <div class="form-group">
27 <label class="col-sm-3 control-label">Spreadsheet Format: </label>
28 <div class="col-sm-9" >
29 <select class="form-control" id="upload_spreadsheet_phenotype_file_format" name="upload_spreadsheet_phenotype_file_format">
30 <option value="nirs">Simple NIRS</option>
31 <option value="scio">SCiO NIRS</option>
35 <div class="form-group">
36 <label class="col-sm-3 control-label">Timestamps Included: </label>
37 <div class="col-sm-9" >
38 <input type="checkbox" id="upload_spreadsheet_phenotype_timestamp_checkbox" name="upload_spreadsheet_phenotype_timestamp_checkbox" />
41 <div id="upload_spreadsheet_phenotype_data_level_div">
42 <div class="form-group">
43 <label class="col-sm-3 control-label">Data Level: </label>
44 <div class="col-sm-9" >
45 <select class="form-control" id="upload_spreadsheet_phenotype_data_level" name="upload_spreadsheet_phenotype_data_level">
46 <option value="plots">Plots</option>
47 <option value="plants">Plants</option>
48 <option value="subplots">Subplots</option>
49 <option value="tissue_samples">Tissue Samples</option>
54 <div class="form-group">
55 <label class="col-sm-3 control-label">NIRS Spreadsheet: </label>
56 <div class="col-sm-9" >
57 <input type="file" id="upload_spreadsheet_phenotype_file_input" name="upload_spreadsheet_phenotype_file_input" encoding="multipart/form-data" />
62 <div id="upload_phenotype_spreadsheet_verify_status"></div>
68 <div class="modal-footer">
69 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
70 <button type="button" class="btn btn-info" name="upload_spreadsheet_phenotype_submit_verify" id="upload_spreadsheet_phenotype_submit_verify">Verify</button>
71 <button disabled type="button" class="btn btn-primary" name="upload_spreadsheet_phenotype_submit_store" id="upload_spreadsheet_phenotype_submit_store" title="First Verify Your File">Store</button>
78 <div class="modal fade" id="phenotype_upload_spreadsheet_info_dialog" name="phenotype_upload_spreadsheet_info_dialog" tabindex="-1" role="dialog" aria-labelledby="phenotypeUploadInfoDialog">
79 <div class="modal-dialog" role="document">
80 <div class="modal-content">
81 <div class="modal-header">
82 <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
83 <h4 class="modal-title" id="phenotypeUploadInfoDialog">Template Information</h4>
85 <div class="modal-body">
86 <div class="container-fluid">
88 <h5>There are two possible formats for uploading NIRS data</h5>
90 <h3>Simple NIRS .xls:</h3>
92 <li>The simple nirs spreadsheet format is built on top of the simple phenotype format.</li>
93 <li>It consists of a column called 'observationunit_name' followed by trait columns derived from the NIR spectra, followed by columns of NIR spectra data themselves.</li>
94 <li>Trait column names must come from the trait ontology, but NIR spectra column names should simply be copied from whateve standard output file the NIR device produces.</li>
95 <li><a href="https://docs.google.com/spreadsheets/d/1bPsM71mrw8I2ffg6xQo8PC5nDgSz_IzTml3JVb5FWwE/edit?usp=sharing">Simple NIRS .xls template</a></li>
98 <h3>SCIO NIRS .csv:</h3>
100 <li>The SCIO nirs spreadsheet format is generated when doing a direct download from the SCIO server.</li>
101 <li>It consists of a series of metadata fields at the beginning of the file, followed by a header for all of the individual measurements, followed by a row for each of the individual measurements themselves.</li>
102 <li>The User_input_id field must be a valid observation_unit in the database.</li>
103 <li><a href="https://docs.google.com/spreadsheets/d/17_egaPcoTyf6mtZ9xIyNnm4vgdci2TbK5sJ67ySR5Hw/edit?usp=sharing">SCIO NIRS .csv template</a></li>
107 <div class="modal-footer">
108 <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
115 <script defer="defer">
117 jQuery(document).ready(function() {
119 jQuery('#upload_spreadsheet_phenotypes_link').click( function() {
120 jQuery('#upload_phenotype_spreadsheet_dialog').modal("show");
123 jQuery("#phenotype_upload_spreadsheet_format_info").click( function () {
124 jQuery("#phenotype_upload_spreadsheet_info_dialog" ).modal("show");