Changeset 4982
- Timestamp:
- Sep 26, 2018, 9:10:59 AM (4 years ago)
- Location:
- extensions/net.sf.basedb.reggie/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/resources/flaggedalignment/search.js
r4981 r4982 444 444 // Note! "mode-resolve" columns here to get the same order for grouping 445 445 html += '<th class="mode-resolve dottedleft">Ok</th>'; 446 html += '<th class="mode-resolve">DoNotUse</th>'; 447 html += '<th class="mode-resolve">FutureGT</th>'; 446 html += '<th class="mode-resolve" colspan="2">DoNotUse<span style="float:right;">FutureGT</span></th>'; 448 447 html += '<th class="mode-resolve comment-col">Comment</th>'; 449 448 … … 1135 1134 if (okToUse.value == 'ok-rna') 1136 1135 { 1137 item = {'type': 'EXTRACT', 'id': aligned.rna.id, 'okToUse': true, 'sort': 5};1136 item = {'type': 'EXTRACT', 'id': aligned.rna.id, 'okToUse': true, 'sort': 6 }; 1138 1137 } 1139 1138 else if (okToUse.value == 'ok-library') 1140 1139 { 1141 item = {'type': 'EXTRACT', 'id': aligned.lib.id, 'okToUse': true, 'sort': 6};1140 item = {'type': 'EXTRACT', 'id': aligned.lib.id, 'okToUse': true, 'sort': 7 }; 1142 1141 } 1143 1142 } … … 1154 1153 item = {'type': 'EXTRACT', 'id': aligned.rna.id, 'doNotUse': 'RNA', 'sort': 3 }; 1155 1154 } 1155 else if (doNotUse.value == 'prenormalized') 1156 { 1157 item = {'type': 'EXTRACT', 'id': aligned.preNormalizedRna.id, 'doNotUse': 'PreNormalizedRNA', 'sort': 4 }; 1158 } 1156 1159 else if (doNotUse.value == 'library') 1157 1160 { 1158 item = {'type': 'EXTRACT', 'id': aligned.lib.id, 'doNotUse': 'Library', 'sort': 4};1161 item = {'type': 'EXTRACT', 'id': aligned.lib.id, 'doNotUse': 'Library', 'sort': 5 }; 1159 1162 } 1160 1163 else if (aligned.flagged && doNotUse.classList.contains('required')) … … 1323 1326 var posA = a.rna.QIACUBE_POSITION; 1324 1327 var posB = b.rna.QIACUBE_POSITION; 1325 return posA < posB ? -1 : 1; 1328 if (posA != posB) return posA < posB ? -1 : 1; 1329 1330 // Critical, sort pre-normalized RNA before regular RNA to 1331 // enable the 'PreNormalizedRNA' option in the 'DoNotUse' selection list 1332 if (a.preNormalizedRna && !b.preNormalizedRna) return -1; 1333 if (b.preNormalizedRna && !a.preNormalizedRna) return 1; 1334 1335 return sort.sortByName(a, b); 1326 1336 } 1327 1337 … … 1599 1609 html += '<option value="library">Library'; 1600 1610 } 1611 if (aligned.preNormalizedRna) 1612 { 1613 html += '<option value="prenormalized">PreNormalizedRNA'; 1614 } 1601 1615 html += '<option value="rna">RNA'; 1602 1616 html += '<option value="lysate">Lysate'; -
extensions/net.sf.basedb.reggie/trunk/resources/flaggedalignment/search.jsp
r4980 r4982 117 117 #itemTable .comment-col input 118 118 { 119 width: 15em;119 width: calc(100% - 12px); 120 120 } 121 121 … … 223 223 border-right-width: 8px; 224 224 border-right-color: #2288AA; 225 } 226 227 select.donotuse-options 228 { 229 width: calc(100% - 10px); 225 230 } 226 231 -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/GenotypeServlet.java
r4981 r4982 504 504 ItemSubtype lysateType = Subtype.LYSATE.get(dc); 505 505 ItemSubtype rnaType = Subtype.RNA.get(dc); 506 ItemSubtype preNormalizedType = Subtype.RNA_NORMALIZED_ALIQUOT.get(dc); 506 507 ItemSubtype libraryType = Subtype.LIBRARY.get(dc); 507 508 ItemList flaggedAlignments = BiomaterialList.FLAGGED_ALIGNMENT.get(dc); … … 526 527 int numLysate = 0; 527 528 int numRna = 0; 529 int numPreNormalizedRna = 0; 528 530 int numLibrary = 0; 529 531 … … 614 616 else if (lysateType.equals(subtype)) numLysate++; 615 617 else if (rnaType.equals(subtype)) numRna++; 618 else if (preNormalizedType.equals(subtype)) numPreNormalizedRna++; 616 619 else if (libraryType.equals(subtype)) numLibrary++; 617 620 } … … 716 719 msg.append(countMessage(numRna, "RNA", "RNA")); 717 720 } 721 if (numPreNormalizedRna > 0) 722 { 723 if (msg.length() > 0) msg.append(", "); 724 msg.append(countMessage(numPreNormalizedRna, "pre-normalized RNA", "pre-normalized RNA")); 725 } 718 726 if (numLibrary > 0) 719 727 { … … 953 961 as.setAnnotation("flagged", checker.isFlagged(as.getItem())); 954 962 Library lib = as.getLibrary(dc); 955 Rna rna = lib.getRna(dc, false); 963 Rna rna = lib.getRna(dc, true); 964 Rna prenormalizedRna = null; 965 if (rna != null && rna.isPreNormalized(dc)) 966 { 967 prenormalizedRna = rna; 968 rna = Rna.get((Extract)rna.getExtract().getParent()); 969 } 956 970 Lysate lys = rna != null ? rna.getLysate() : null; 957 971 SpecimenTube sp = lys != null ? lys.getSpecimen() : null; … … 975 989 976 990 if (lib != null) as.setAnnotation("lib", lib.asJSONObject()); 991 if (prenormalizedRna != null) as.setAnnotation("preNormalizedRna", prenormalizedRna.asJSONObject()); 977 992 if (rna != null) as.setAnnotation("rna", rna.asJSONObject()); 978 993 if (lys != null) as.setAnnotation("lysate", lys.asJSONObject()); -
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/servlet/InstallServlet.java
r4972 r4982 588 588 589 589 jsonChecks.add(checkAnnotationType(dc, Annotationtype.DO_NOT_USE, 1, 590 new ValueOptions("Specimen", "Lysate", "RNA", " Library"),590 new ValueOptions("Specimen", "Lysate", "RNA", "PreNormalizedRNA", "Library"), 591 591 createIfMissing, effectivePermissionsUse)); 592 592 jsonChecks.add(checkAnnotationType(dc, Annotationtype.DO_NOT_USE_COMMENT, 1, null, createIfMissing, effectivePermissionsUse));
Note: See TracChangeset
for help on using the changeset viewer.