Skip to content

Instantly share code, notes, and snippets.

@Ruhshan
Created August 29, 2018 08:13
Show Gist options
  • Save Ruhshan/0f198f651f94786ddaeba7cd55bae6e5 to your computer and use it in GitHub Desktop.
Save Ruhshan/0f198f651f94786ddaeba7cd55bae6e5 to your computer and use it in GitHub Desktop.
myseq = ""
for s in SeqIO.parse('file.fasta', 'fasta'):
if s.id == "12345":
myseq = s.seq
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment