Changeset 5797
- Timestamp:
- Dec 18, 2019, 8:33:26 AM (2 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/mipsanalysis/demux_confirm.js
r5788 r5797 198 198 var url = '../DemuxMerge.servlet?ID='+App.getSessionId(); 199 199 url += '&cmd=GetMergedSequences&job='+job.id; 200 url += '&pipeline=MIPS'; 200 201 201 202 Wizard.showLoadingAnimation('Loading demuxed sequences...'); … … 214 215 215 216 var mergedSeq = response.mergedSequences; 216 mergedSeq.sort(demux.sortBy Pool);217 mergedSeq.sort(demux.sortByLibPlate); 217 218 job.mergedSequences = mergedSeq; 218 219 … … 221 222 // Header row 222 223 html += '<tr>'; 224 html += '<th></th>'; 225 html += '<th></th>'; 226 html += '<th></th>'; 223 227 html += '<th></th>'; 224 228 html += '<th class="dottedleft"></th>'; … … 228 232 html += '</tr>'; 229 233 html += '<tr>'; 234 html += '<th>Plate</th>'; 230 235 html += '<th>Library</th>'; 231 html += '<th class="dottedleft">Pools</th>'; 236 html += '<th>MIPS_Panel</th>'; 237 html += '<th>Barcode</th>'; 238 html += '<th class="dottedleft">Pool</th>'; 232 239 html += '<th class="dottedleft">READS</th>'; 233 240 html += '<th>PF_READS</th>'; … … 267 274 html += 'style="border-top: 1px solid #000000;"'; 268 275 } 269 html += '><td class="prompt if-yellow">'+img+Strings.encodeTags(merged.name)+'</td>'; 276 html += '><td>'+Strings.encodeTags(lib.bioWell.bioPlate.name+' '+lib.bioWell.location)+'</td>'; 277 html += '<td class="prompt if-yellow">'+img+Strings.encodeTags(merged.name)+'</td>'; 278 html += '<td>'+Strings.encodeTags(lib.MIPSPanel)+'</td>'; 279 html += '<td>'+Strings.encodeTags(lib.barcode.name)+'</td>'; 270 280 html += '<td class="dottedleft">'; 271 281 for (var poolNo = 0; poolNo < pools.length; poolNo++) … … 329 339 return a.id - b.id; 330 340 } 341 342 /** 343 Sort by library plate location. 344 */ 345 demux.sortByLibPlate = function(a, b) 346 { 347 var p1 = a.lib.bioWell.bioPlate.name; 348 var p2 = b.lib.bioWell.bioPlate.name; 349 if (p1 < p2) return -1; 350 if (p1 > p2) return 1; 351 var w1 = a.lib.bioWell; 352 var w2 = b.lib.bioWell; 353 if (w1.column != w2.column) return w1.column - w2.column; 354 return w1.row - w2.row; 355 } 331 356 332 357 demux.outcomeOnChange = function() -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/DemuxMergeServlet.java
r5788 r5797 221 221 { 222 222 int jobId = Values.getInt(req.getParameter("job")); 223 Pipeline pipeline = Pipeline.getByCName(req.getParameter("pipeline")); 223 224 dc = sc.newDbControl(); 224 225 … … 239 240 { 240 241 Library lib = mg.getLibrary(dc); 242 lib.loadBioPlateLocation(); 243 if (pipeline == Pipeline.MIPS) 244 { 245 Extract dna = (Extract)lib.findSingleParent(dc, Subtype.DNA_NORMALIZED_ALIQUOT); 246 lib.setAnnotation("MIPSPanel", Annotationtype.MIPS_PANEL.getAnnotationValue(dc, dna)); 247 } 241 248 // All pools for the library, but we only keep those used in the demux 242 249 List<PooledLibrary> pools = lib.getPools(dc);
Note: See TracChangeset
for help on using the changeset viewer.