private void outputRead(BufferedWriter writer, SAMRecord read) throws IOException {
writer.write(">" + read.getReadName() + "\n");
String bases = read.getReadString();
if (read.getReadNegativeStrandFlag()) {
bases = new ReverseComplementor().reverseComplement(bases);
}
writer.write(bases + "\n");
}