Skip to content

Instantly share code, notes, and snippets.

@mdshw5
Last active August 29, 2015 14:03
Show Gist options
  • Save mdshw5/f06245596d1c1660122d to your computer and use it in GitHub Desktop.
Save mdshw5/f06245596d1c1660122d to your computer and use it in GitHub Desktop.
biostars 105871
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