Last active
August 29, 2015 14:03
-
-
Save mdshw5/f06245596d1c1660122d to your computer and use it in GitHub Desktop.
biostars 105871
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
with open('input.sequencefile') as fh: | |
for line in fh: | |
name, seqid, seq, disid, dis = line.split() | |
print(' '.join([name, seqid])) | |
print(seq) | |
print(disid) | |
print('Pos R') | |
for i, (s, x) in enumerate(zip(seq, dis)): | |
if x == 'X': | |
print(' '.join([i + 1, s])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment