Created
October 2, 2012 21:46
-
-
Save mercutio22/3823513 to your computer and use it in GitHub Desktop.
Trying to help quorteh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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