Writing SAM in single-end example.