Created
August 10, 2016 09:46
-
-
Save coela/2d39462859e57a5a07f283a400135153 to your computer and use it in GitHub Desktop.
This file contains 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
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