else
throw new UserException("Unable to write to SAM file; neither a target file nor a stream has been specified");
// if we want to send the BAM file through the simplifying writer, wrap it here
if ( stub.simplifyBAM() ) {
this.writer = new SimplifyingSAMFileWriter(this.writer);
}
}