Skip to content

Instantly share code, notes, and snippets.

@coela
Created August 10, 2016 09:46
Show Gist options
  • Save coela/2d39462859e57a5a07f283a400135153 to your computer and use it in GitHub Desktop.
Save coela/2d39462859e57a5a07f283a400135153 to your computer and use it in GitHub Desktop.
from Bio import Entrez
import re
import sys
argvs = sys.argv
Entrez.email = "[email protected]"
handle = Entrez.efetch(db="nucleotide", id=argvs[1],rettype="gb", retmode="text")
for line in handle.read().split("\n"):
if re.match(" ORGANISM",line):
print line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment