public SAMFileWriterStorage( SAMFileWriterStub stub ) { this(stub,stub.getOutputFile()); }
factory.setMaxRecordsInRam(stub.getMaxRecordsInRam()); if(stub.getOutputFile() != null) { try { if (stub.getOutputFile().getName().toLowerCase().endsWith(".cram")) { this.writer = createCRAMWriter(factory, stub.getFileHeader(), file, this.referenceFasta); } else {