6188 |
26 Mar 21 |
nicklas |
var Fastq = function() |
6188 |
26 Mar 21 |
nicklas |
2 |
{ |
6188 |
26 Mar 21 |
nicklas |
var fastq = {}; |
6188 |
26 Mar 21 |
nicklas |
var debug = 0; |
6188 |
26 Mar 21 |
nicklas |
5 |
|
6188 |
26 Mar 21 |
nicklas |
var ADAPTER_SIZE = 59; |
6188 |
26 Mar 21 |
nicklas |
var JOB_IMAGE = { 'DONE': 'ok.png', 'ERROR': 'error.png'}; |
6188 |
26 Mar 21 |
nicklas |
8 |
|
6188 |
26 Mar 21 |
nicklas |
var mergedSequences; |
6188 |
26 Mar 21 |
nicklas |
10 |
|
6188 |
26 Mar 21 |
nicklas |
// Page initialization |
6188 |
26 Mar 21 |
nicklas |
fastq.initPage = function() |
6188 |
26 Mar 21 |
nicklas |
13 |
{ |
6188 |
26 Mar 21 |
nicklas |
14 |
|
6188 |
26 Mar 21 |
nicklas |
// Step 1 |
6188 |
26 Mar 21 |
nicklas |
16 |
|
6188 |
26 Mar 21 |
nicklas |
// Navigation |
6188 |
26 Mar 21 |
nicklas |
Buttons.addClickHandler('gocancel', Wizard.cancelWizard); |
6188 |
26 Mar 21 |
nicklas |
Buttons.addClickHandler('gorestart', Wizard.restartWizard); |
6188 |
26 Mar 21 |
nicklas |
Buttons.addClickHandler('gonext', Wizard.goNextOnClick); |
6188 |
26 Mar 21 |
nicklas |
Buttons.addClickHandler('goregister', Wizard.goRegister); |
6188 |
26 Mar 21 |
nicklas |
22 |
|
6188 |
26 Mar 21 |
nicklas |
// Final registration |
6188 |
26 Mar 21 |
nicklas |
Events.addEventHandler('wizard', 'wizard-submit', fastq.submit); |
6188 |
26 Mar 21 |
nicklas |
25 |
|
6188 |
26 Mar 21 |
nicklas |
Wizard.showLoadingAnimation('Loading bioassays...'); |
6188 |
26 Mar 21 |
nicklas |
var url = '../Fastq.servlet?ID='+App.getSessionId(); |
6188 |
26 Mar 21 |
nicklas |
url += '&cmd=GetUnconfirmedImportedSequences'; |
6188 |
26 Mar 21 |
nicklas |
Wizard.asyncJsonRequest(url, fastq.initializeStep1); |
6188 |
26 Mar 21 |
nicklas |
30 |
} |
6188 |
26 Mar 21 |
nicklas |
31 |
|
6188 |
26 Mar 21 |
nicklas |
// --- Step 1 ----------------------------------- |
6188 |
26 Mar 21 |
nicklas |
fastq.initializeStep1 = function(response) |
6188 |
26 Mar 21 |
nicklas |
34 |
{ |
6188 |
26 Mar 21 |
nicklas |
mergedSequences = response.mergedSequences; |
6188 |
26 Mar 21 |
nicklas |
if (mergedSequences.length == 0) |
6188 |
26 Mar 21 |
nicklas |
37 |
{ |
6188 |
26 Mar 21 |
nicklas |
Wizard.setFatalError('No merged sequences available for processing.'); |
6188 |
26 Mar 21 |
nicklas |
return; |
6188 |
26 Mar 21 |
nicklas |
40 |
} |
6188 |
26 Mar 21 |
nicklas |
41 |
|
6188 |
26 Mar 21 |
nicklas |
var html = '<table id="mergedSequencesTable">'; |
6188 |
26 Mar 21 |
nicklas |
html += '<thead class="bg-filled-100">'; |
6188 |
26 Mar 21 |
nicklas |
// Header row |
6188 |
26 Mar 21 |
nicklas |
html += '<tr>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th></th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th class="dottedleft"></th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th class="dottedleft" colspan="5">Reads (Millions)</th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th class="dottedleft" colspan="4">Fragment size</th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th class="dottedleft"></th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th class="dottedleft"></th>'; |
6809 |
24 Aug 22 |
nicklas |
html += '<th class="dottedleft" colspan="5">Actions</th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th class="dottedleft">Comment</th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '</tr>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<tr>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th>Library</th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th class="dottedleft">Plate</th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th class="dottedleft">READS</th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th>PF_READS</th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th>ADAPTER_READS</th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th>PT_READS</th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th class="warning-col"></th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th class="dottedleft">Size*¹</th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th>Avg²</th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th>Stdev²</th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th class="warning-col"></th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th class="dottedleft">Job</th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th class="dottedleft">Files</th>'; |
6670 |
07 Apr 22 |
nicklas |
html += '<th class="dottedleft"><span id="flagrna" data-prefix="flag" class="interactable link" title="Toggle selection – use CTRL, ALT or SHIFT to clear">Flag RNA</span></th>'; |
6670 |
07 Apr 22 |
nicklas |
html += '<th><span id="reimport" data-prefix="reimport" class="interactable link" title="Toggle selection – use CTRL, ALT or SHIFT to clear">Re-import</span></th>'; |
6670 |
07 Apr 22 |
nicklas |
html += '<th><span id="legacy" data-prefix="legacy" class="interactable link" title="Toggle selection – use CTRL, ALT or SHIFT to clear">Legacy</span></th>'; |
6670 |
07 Apr 22 |
nicklas |
html += '<th><span id="hisat" data-prefix="hisat" class="interactable link" title="Toggle selection – use CTRL, ALT or SHIFT to clear">Hisat</span></th>'; |
6809 |
24 Aug 22 |
nicklas |
html += '<th><span id="hisat2023" data-prefix="hisat2023" class="interactable link" title="Toggle selection – use CTRL, ALT or SHIFT to clear">Hisat/2023</span></th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<th class="dottedleft"></th>'; |
6188 |
26 Mar 21 |
nicklas |
html += '</tr>'; |
6188 |
26 Mar 21 |
nicklas |
html += '</thead>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<tbody>'; |
6188 |
26 Mar 21 |
nicklas |
78 |
|
6188 |
26 Mar 21 |
nicklas |
var yellowImg = '<img src="../images/yellow-label.png">'; |
6188 |
26 Mar 21 |
nicklas |
for (var mergedNo = 0; mergedNo < mergedSequences.length; mergedNo++) |
6188 |
26 Mar 21 |
nicklas |
81 |
{ |
6188 |
26 Mar 21 |
nicklas |
var merged = mergedSequences[mergedNo]; |
6188 |
26 Mar 21 |
nicklas |
var lib = merged.lib; |
6188 |
26 Mar 21 |
nicklas |
var libPlate = lib.bioWell ? lib.bioWell.bioPlate : null; |
6188 |
26 Mar 21 |
nicklas |
var job = merged.job; |
6188 |
26 Mar 21 |
nicklas |
var minPtReads = job.limits.minPtReads; |
6188 |
26 Mar 21 |
nicklas |
87 |
|
6188 |
26 Mar 21 |
nicklas |
var isError = job.status == 'ERROR'; |
6188 |
26 Mar 21 |
nicklas |
var flagChecked = false; |
6188 |
26 Mar 21 |
nicklas |
var alignChecked = !isError; |
6188 |
26 Mar 21 |
nicklas |
91 |
|
6188 |
26 Mar 21 |
nicklas |
merged.stratagene = Reggie.isStratagene(merged.name); |
6188 |
26 Mar 21 |
nicklas |
merged.external = Reggie.isExternal(merged.name); |
6188 |
26 Mar 21 |
nicklas |
var isYellow = lib.specimen && lib.specimen.YellowLabel != null; |
6188 |
26 Mar 21 |
nicklas |
var img = isYellow ? yellowImg : ''; |
6188 |
26 Mar 21 |
nicklas |
96 |
|
6188 |
26 Mar 21 |
nicklas |
var reads = merged.READS == null ? '-' : Reggie.formatNumber(merged.READS/1000000, null, 2); |
6188 |
26 Mar 21 |
nicklas |
var pfReads = merged.PF_READS == null ? '-' : Reggie.formatNumber(merged.PF_READS/1000000, null, 2); |
6188 |
26 Mar 21 |
nicklas |
var ptReads = merged.PT_READS == null ? '-' : Reggie.formatNumber(merged.PT_READS/1000000, null, 2); |
6188 |
26 Mar 21 |
nicklas |
var ptPercent = merged.PF_READS > 0 && merged.PT_READS != null ? Math.round(100*merged.PT_READS/merged.PF_READS) : Number.NaN; |
6188 |
26 Mar 21 |
nicklas |
var adapterReads = merged.ADAPTER_READS == null ? '-' : Reggie.formatNumber(merged.ADAPTER_READS/1000000, null, 2); |
6188 |
26 Mar 21 |
nicklas |
var adapterPercent = merged.PF_READS > 0 && merged.ADAPTER_READS != null ? Math.round(100*merged.ADAPTER_READS/merged.PF_READS) : Number.NaN; |
6188 |
26 Mar 21 |
nicklas |
103 |
|
6188 |
26 Mar 21 |
nicklas |
html += '<tr class="highlight ' + (isYellow ? 'yellow-specimen' : '') + '">'; |
6188 |
26 Mar 21 |
nicklas |
html += '<td class="prompt if-yellow">'+img+Strings.encodeTags(merged.name)+'</td>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<td class="dottedleft">'+(libPlate ? Strings.encodeTags(libPlate.name) : '-')+'</td>'; |
6188 |
26 Mar 21 |
nicklas |
// READS |
6188 |
26 Mar 21 |
nicklas |
html += '<td class="dottedleft">'+reads+'</td>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<td>'+pfReads+'</td>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<td>'+adapterReads+(isNaN(adapterPercent) ? '' : ' ('+adapterPercent+'%)') +'</td>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<td>'+ptReads+(isNaN(ptPercent) ? '' : ' ('+ptPercent+'%)') + '</td>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<td class="warning-col">'; |
6188 |
26 Mar 21 |
nicklas |
if (merged.PT_READS == null || merged.PT_READS < minPtReads) |
6188 |
26 Mar 21 |
nicklas |
114 |
{ |
6188 |
26 Mar 21 |
nicklas |
html += '<img src="../images/warning.png" title="Less than '+Reggie.formatCount(minPtReads) + ' passed Trimmomatic">'; |
6188 |
26 Mar 21 |
nicklas |
if (!isError) |
6188 |
26 Mar 21 |
nicklas |
117 |
{ |
6188 |
26 Mar 21 |
nicklas |
flagChecked = true; |
6188 |
26 Mar 21 |
nicklas |
alignChecked = false; |
6188 |
26 Mar 21 |
nicklas |
120 |
} |
6188 |
26 Mar 21 |
nicklas |
121 |
} |
6188 |
26 Mar 21 |
nicklas |
html += '</td>'; |
6188 |
26 Mar 21 |
nicklas |
123 |
|
6188 |
26 Mar 21 |
nicklas |
// Fragment sizes |
6188 |
26 Mar 21 |
nicklas |
var lib_size = Math.round(lib.CA_Size || lib.library_size_est) - ADAPTER_SIZE * 2; |
6188 |
26 Mar 21 |
nicklas |
html += '<td class="dottedleft">'+lib_size+'</td>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<td>'+(merged.FragmentSizeAvg || '-')+'</td>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<td>'+(merged.FragmentSizeStdev || '-')+'</td>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<td class="warning-col">'; |
6188 |
26 Mar 21 |
nicklas |
if (merged.FragmentSizeAvg != null && merged.FragmentSizeStdev != null) |
6188 |
26 Mar 21 |
nicklas |
131 |
{ |
6188 |
26 Mar 21 |
nicklas |
var delta = lib_size - merged.FragmentSizeAvg; |
6188 |
26 Mar 21 |
nicklas |
if (Math.abs(delta) > merged.FragmentSizeStdev) |
6188 |
26 Mar 21 |
nicklas |
134 |
{ |
6188 |
26 Mar 21 |
nicklas |
html += '<img src="../images/warning.png" title="Fragment size differ from CA_Size: ' + delta+'">'; |
6188 |
26 Mar 21 |
nicklas |
136 |
} |
6188 |
26 Mar 21 |
nicklas |
137 |
} |
6188 |
26 Mar 21 |
nicklas |
html += '</td>'; |
6188 |
26 Mar 21 |
nicklas |
139 |
|
6188 |
26 Mar 21 |
nicklas |
// Job/Files |
6188 |
26 Mar 21 |
nicklas |
html += '<td class="dottedleft">'; |
6188 |
26 Mar 21 |
nicklas |
html += '<span class="link item-link" data-item-type="JOB" data-item-id="'+job.id+'" title="'+Strings.encodeTags(job.statusMessage)+'"><img src="../images/'+JOB_IMAGE[job.status]+'"></span>'; |
6188 |
26 Mar 21 |
nicklas |
html += '</td>'; |
6188 |
26 Mar 21 |
nicklas |
if (merged.DataFilesFolder && job.server) |
6188 |
26 Mar 21 |
nicklas |
145 |
{ |
6188 |
26 Mar 21 |
nicklas |
html += '<td class="dottedleft">'; |
6188 |
26 Mar 21 |
nicklas |
html += '<span class="link file-link" data-server="'+Strings.encodeTags(job.server)+'" data-folder="'+Strings.encodeTags(merged.DataFilesFolder)+'" data-item-id="'+merged.id+'" title="View generated files"><img src="../images/remote_folder.png"></span>'; |
6188 |
26 Mar 21 |
nicklas |
html += '</td>'; |
6188 |
26 Mar 21 |
nicklas |
149 |
} |
6188 |
26 Mar 21 |
nicklas |
else |
6188 |
26 Mar 21 |
nicklas |
151 |
{ |
6188 |
26 Mar 21 |
nicklas |
html += '<td class="dottedleft">-</td>'; |
6188 |
26 Mar 21 |
nicklas |
153 |
} |
6188 |
26 Mar 21 |
nicklas |
154 |
|
6188 |
26 Mar 21 |
nicklas |
// Actions |
6188 |
26 Mar 21 |
nicklas |
// Do not allow flagging external or stratagene |
6188 |
26 Mar 21 |
nicklas |
if (merged.stratagene || merged.external) |
6188 |
26 Mar 21 |
nicklas |
158 |
{ |
6188 |
26 Mar 21 |
nicklas |
html += '<td class="dottedleft">-</td>'; |
6188 |
26 Mar 21 |
nicklas |
160 |
} |
6188 |
26 Mar 21 |
nicklas |
else |
6188 |
26 Mar 21 |
nicklas |
162 |
{ |
6188 |
26 Mar 21 |
nicklas |
html += '<td class="dottedleft"><input type="checkbox" name="flag.'+merged.id+'"'+(flagChecked ? ' checked':'')+'></td>'; |
6188 |
26 Mar 21 |
nicklas |
164 |
} |
6188 |
26 Mar 21 |
nicklas |
165 |
|
6188 |
26 Mar 21 |
nicklas |
var alignDisabled = isError ? ' disabled' : ''; |
6188 |
26 Mar 21 |
nicklas |
html += '<td><input type="checkbox" name="reimport.'+merged.id+'"'+(isError ? ' checked':'')+'></td>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<td><input type="checkbox" name="legacy.'+merged.id+'" '+(alignChecked ? ' checked':'')+alignDisabled+'></td>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<td><input type="checkbox" name="hisat.'+merged.id+'" '+(alignChecked ? ' checked':'')+alignDisabled+'></td>'; |
6809 |
24 Aug 22 |
nicklas |
html += '<td><input type="checkbox" name="hisat2023.'+merged.id+'" '+(alignChecked ? ' checked':'')+alignDisabled+'></td>'; |
6188 |
26 Mar 21 |
nicklas |
html += '<td class="dottedleft comment"><input type="text" name="comment.'+merged.id+'"></td>'; |
6188 |
26 Mar 21 |
nicklas |
html += '</tr>'; |
6188 |
26 Mar 21 |
nicklas |
173 |
} |
6188 |
26 Mar 21 |
nicklas |
html += '</tbody>'; |
6188 |
26 Mar 21 |
nicklas |
html += '</table>'; |
6188 |
26 Mar 21 |
nicklas |
Doc.element('mergedSequences').innerHTML = html; |
6670 |
07 Apr 22 |
nicklas |
177 |
|
6670 |
07 Apr 22 |
nicklas |
Events.addEventHandler('flagrna', 'click', fastq.toggleSelection); |
6670 |
07 Apr 22 |
nicklas |
Events.addEventHandler('reimport', 'click', fastq.toggleSelection); |
6670 |
07 Apr 22 |
nicklas |
Events.addEventHandler('legacy', 'click', fastq.toggleSelection); |
6670 |
07 Apr 22 |
nicklas |
Events.addEventHandler('hisat', 'click', fastq.toggleSelection); |
6809 |
24 Aug 22 |
nicklas |
Events.addEventHandler('hisat2023', 'click', fastq.toggleSelection); |
6670 |
07 Apr 22 |
nicklas |
183 |
|
6188 |
26 Mar 21 |
nicklas |
// Add click handler to items |
6188 |
26 Mar 21 |
nicklas |
var clickableItems = document.getElementsByClassName('item-link'); |
6188 |
26 Mar 21 |
nicklas |
for (var i = 0; i < clickableItems.length; i++) |
6188 |
26 Mar 21 |
nicklas |
187 |
{ |
6188 |
26 Mar 21 |
nicklas |
Events.addEventHandler(clickableItems[i], 'click', Items.itemOnClick); |
6188 |
26 Mar 21 |
nicklas |
189 |
} |
6188 |
26 Mar 21 |
nicklas |
190 |
|
6188 |
26 Mar 21 |
nicklas |
// Add click handler to file links |
6188 |
26 Mar 21 |
nicklas |
var clickableItems = document.getElementsByClassName('file-link'); |
6188 |
26 Mar 21 |
nicklas |
for (var i = 0; i < clickableItems.length; i++) |
6188 |
26 Mar 21 |
nicklas |
194 |
{ |
6188 |
26 Mar 21 |
nicklas |
Events.addEventHandler(clickableItems[i], 'click', fastq.fileLinkOnClick); |
6188 |
26 Mar 21 |
nicklas |
196 |
} |
6188 |
26 Mar 21 |
nicklas |
197 |
|
6188 |
26 Mar 21 |
nicklas |
Doc.show('step-1'); |
6188 |
26 Mar 21 |
nicklas |
Doc.show('goregister'); |
6188 |
26 Mar 21 |
nicklas |
200 |
} |
6188 |
26 Mar 21 |
nicklas |
201 |
|
6188 |
26 Mar 21 |
nicklas |
fastq.fileLinkOnClick = function(event) |
6188 |
26 Mar 21 |
nicklas |
203 |
{ |
6188 |
26 Mar 21 |
nicklas |
var folder = Data.get(event.currentTarget, 'folder'); |
6188 |
26 Mar 21 |
nicklas |
var server = Data.get(event.currentTarget, 'server'); |
6188 |
26 Mar 21 |
nicklas |
var itemId = Data.get(event.currentTarget, 'item-id'); |
6188 |
26 Mar 21 |
nicklas |
server = server.replace(/\s*\[.*\]/, ''); |
6188 |
26 Mar 21 |
nicklas |
var url = 'view_remote_files.jsp?ID=' + App.getSessionId(); |
6188 |
26 Mar 21 |
nicklas |
url += '&clusterId='+server; |
6188 |
26 Mar 21 |
nicklas |
url += '&path='+encodeURIComponent(folder); |
6188 |
26 Mar 21 |
nicklas |
url += '&itemType=DERIVEDBIOASSAY&itemId='+itemId; |
6188 |
26 Mar 21 |
nicklas |
Dialogs.openPopup(url, 'ViewProjectFiles', 750, 500); |
6188 |
26 Mar 21 |
nicklas |
213 |
} |
6188 |
26 Mar 21 |
nicklas |
214 |
|
6670 |
07 Apr 22 |
nicklas |
fastq.toggleSelection = function(event) |
6670 |
07 Apr 22 |
nicklas |
216 |
{ |
6670 |
07 Apr 22 |
nicklas |
var prefix = Data.get(event.currentTarget, 'prefix'); |
6670 |
07 Apr 22 |
nicklas |
var specialKey = event.altKey || event.ctrlKey || event.shiftKey; |
6670 |
07 Apr 22 |
nicklas |
219 |
|
6670 |
07 Apr 22 |
nicklas |
var frm = document.forms['reggie']; |
6670 |
07 Apr 22 |
nicklas |
for (var mergedNo = 0; mergedNo < mergedSequences.length; mergedNo++) |
6670 |
07 Apr 22 |
nicklas |
222 |
{ |
6670 |
07 Apr 22 |
nicklas |
var merged = mergedSequences[mergedNo]; |
6670 |
07 Apr 22 |
nicklas |
var chk = frm[prefix+'.'+merged.id]; |
6670 |
07 Apr 22 |
nicklas |
if (chk && !chk.disabled) |
6670 |
07 Apr 22 |
nicklas |
226 |
{ |
6670 |
07 Apr 22 |
nicklas |
chk.checked = specialKey ? false : !chk.checked; |
6670 |
07 Apr 22 |
nicklas |
228 |
} |
6670 |
07 Apr 22 |
nicklas |
229 |
} |
6670 |
07 Apr 22 |
nicklas |
230 |
} |
6670 |
07 Apr 22 |
nicklas |
231 |
|
6188 |
26 Mar 21 |
nicklas |
fastq.submit = function() |
6188 |
26 Mar 21 |
nicklas |
233 |
{ |
6188 |
26 Mar 21 |
nicklas |
var frm = document.forms['reggie']; |
6188 |
26 Mar 21 |
nicklas |
var submitInfo = {}; |
6215 |
16 Apr 21 |
nicklas |
submitInfo.deleteItemsCreatedByFailedJobs = frm.deleteItemsCreatedByFailedJobs.checked; |
6188 |
26 Mar 21 |
nicklas |
237 |
|
6188 |
26 Mar 21 |
nicklas |
var all = []; |
6188 |
26 Mar 21 |
nicklas |
submitInfo.mergedSequences = all; |
6188 |
26 Mar 21 |
nicklas |
for (var mergedNo = 0; mergedNo < mergedSequences.length; mergedNo++) |
6188 |
26 Mar 21 |
nicklas |
241 |
{ |
6188 |
26 Mar 21 |
nicklas |
var merged = mergedSequences[mergedNo]; |
6188 |
26 Mar 21 |
nicklas |
var tmp = {}; |
6188 |
26 Mar 21 |
nicklas |
tmp.id = merged.id; |
6188 |
26 Mar 21 |
nicklas |
245 |
|
6188 |
26 Mar 21 |
nicklas |
tmp.flag = frm['flag.'+merged.id] && frm['flag.'+merged.id].checked; |
6188 |
26 Mar 21 |
nicklas |
tmp.reimport = frm['reimport.'+merged.id].checked; |
6188 |
26 Mar 21 |
nicklas |
tmp.hisatAlign = frm['hisat.'+merged.id].checked; |
6809 |
24 Aug 22 |
nicklas |
tmp.hisat2023Align = frm['hisat2023.'+merged.id].checked; |
6188 |
26 Mar 21 |
nicklas |
tmp.legacyAlign = frm['legacy.'+merged.id].checked; |
6188 |
26 Mar 21 |
nicklas |
tmp.comment = frm['comment.'+merged.id].value; |
6188 |
26 Mar 21 |
nicklas |
252 |
|
6188 |
26 Mar 21 |
nicklas |
all[all.length] = tmp; |
6188 |
26 Mar 21 |
nicklas |
254 |
} |
6188 |
26 Mar 21 |
nicklas |
255 |
|
6188 |
26 Mar 21 |
nicklas |
var url = '../Fastq.servlet?ID='+App.getSessionId(); |
6188 |
26 Mar 21 |
nicklas |
url += '&cmd=RegisterFastqImport'; |
6188 |
26 Mar 21 |
nicklas |
Wizard.showLoadingAnimation('Performing registration...'); |
6188 |
26 Mar 21 |
nicklas |
Wizard.asyncJsonRequest(url, fastq.submissionResults, 'POST', JSON.stringify(submitInfo)); |
6188 |
26 Mar 21 |
nicklas |
260 |
} |
6188 |
26 Mar 21 |
nicklas |
261 |
|
6188 |
26 Mar 21 |
nicklas |
fastq.submissionResults = function(response) |
6188 |
26 Mar 21 |
nicklas |
263 |
{ |
6188 |
26 Mar 21 |
nicklas |
Wizard.showFinalMessage(response.messages); |
6188 |
26 Mar 21 |
nicklas |
Doc.show('gorestart'); |
6188 |
26 Mar 21 |
nicklas |
266 |
} |
6188 |
26 Mar 21 |
nicklas |
267 |
|
6188 |
26 Mar 21 |
nicklas |
268 |
|
6188 |
26 Mar 21 |
nicklas |
return fastq; |
6188 |
26 Mar 21 |
nicklas |
270 |
}(); |
6188 |
26 Mar 21 |
nicklas |
271 |
|
6188 |
26 Mar 21 |
nicklas |
Doc.onLoad(Fastq.initPage); |
6188 |
26 Mar 21 |
nicklas |
273 |
|