Mercurial > repos > iuc > ncbi_eutils_efetch
comparison egquery.py @ 0:1b4ac594d02a draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 780c9984a9c44d046aadf1e316a668d1e53aa1f0
| author | iuc |
|---|---|
| date | Sat, 31 Oct 2015 12:44:54 -0400 |
| parents | |
| children | 2ff5369b4b51 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:1b4ac594d02a |
|---|---|
| 1 #!/usr/bin/env python | |
| 2 import argparse | |
| 3 import eutils | |
| 4 | |
| 5 | |
| 6 if __name__ == '__main__': | |
| 7 parser = argparse.ArgumentParser(description='EGQuery', epilog='') | |
| 8 parser.add_argument('term', help='Query') | |
| 9 # | |
| 10 parser.add_argument('--user_email', help="User email") | |
| 11 parser.add_argument('--admin_email', help="Admin email") | |
| 12 args = parser.parse_args() | |
| 13 | |
| 14 c = eutils.Client(user_email=args.user_email, admin_email=args.admin_email) | |
| 15 | |
| 16 payload = { | |
| 17 'term': args.term, | |
| 18 } | |
| 19 results = c.gquery(**payload) | |
| 20 print results |
