final ReadStructure readStructure,
final List<IlluminaUtil.IlluminaAdapterPair> adapters) {
this.runBarcode = runBarcode;
this.readGroupId = readGroupId;
this.readNameEncoder = new IlluminaReadNameEncoder(runBarcode);
this.isPairedEnd = readStructure.templates.length() == 2;
this.isBarcoded = !readStructure.barcodes.isEmpty();
if (adapters.isEmpty()) {