Skip to content

Instantly share code, notes, and snippets.

@annasa
annasa / removeOptDups.py
Created September 22, 2014 18:33
Input a sorted (chr and start pos) sam file and output all records except for optical duplicates
#!/usr/local/bin/python
"RemoveOpticalDuplicates.py"
"Author: Anna Salzberg"
import sys
import string
import os
import time
import math