Changeset 6216
- Timestamp:
- Apr 16, 2021, 2:03:41 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.reggie/trunk/src/net/sf/basedb/reggie/pdf/ScanBReportWorker.java
r6100 r6216 26 26 import net.sf.basedb.core.DbControl; 27 27 import net.sf.basedb.core.Extract; 28 import net.sf.basedb.core.Protocol; 28 29 import net.sf.basedb.core.RawBioAssay; 29 30 import net.sf.basedb.core.Sample; … … 219 220 Map<Subtype, BioMaterial> parents = raw.findParentBioMaterial(dc, Subtype.PATIENT, Subtype.CASE, Subtype.SPECIMEN, Subtype.LYSATE, Subtype.RNA, Subtype.LIBRARY); 220 221 Extract lib = (Extract)parents.get(Subtype.LIBRARY); 222 Protocol libProtocol = lib == null ? null : lib.getProtocol(); 221 223 Extract rna = (Extract)parents.get(Subtype.RNA); 222 224 Extract lysate = (Extract)parents.get(Subtype.LYSATE); … … 334 336 header[1] = translations.get(Annotationtype.LATERALITY.getAnnotationValue(dc, specimen)); 335 337 header[2] = lib == null ? null : DATE_FORMAT.convert(lib.getCreationEvent().getEventDate()); 336 header[3] = lib == null ? null : translations.get(lib.getProtocol().getName());338 header[3] = libProtocol == null ? null : translations.get(libProtocol.getName()); 337 339 header[4] = count.format(dc, Annotationtype.FRAGMENT_SIZE_AVG, aligned) + "/" + count.format(dc, Annotationtype.FRAGMENT_SIZE_STDEV, aligned); 338 340 header[5] = translations.get(Annotationtype.PIPELINE.getAnnotationValue(dc, rba));
Note: See TracChangeset
for help on using the changeset viewer.