Skip to content

Instantly share code, notes, and snippets.

@mercutio22
Created October 2, 2012 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mercutio22/3823513 to your computer and use it in GitHub Desktop.
Save mercutio22/3823513 to your computer and use it in GitHub Desktop.
Trying to help quorteh
def is_single(data):
if data[1] in ['137','153','73','89']:
return True
else:
return False
with open('bigfile.sam', 'r') as uncle:
GenEx = ( line.split('\t') for line in uncle )
counter = 0
while counter <= 13:
counter += 1
data = GenEx.next()
if is_single(data):
print 'found a singleton, do what singles do'
else:
data.extend(GenEx.next())
print 'found a double, do what couples do'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment