Skip to content

Instantly share code, notes, and snippets.

@WinterLi1993
WinterLi1993 / removeOptDups.py
Created March 15, 2016 06:47 — forked from annasa/removeOptDups.py
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