Mercurial > repos > iuc > ncbi_eutils_esummary
comparison egquery.py @ 0:92bd8a680b9d draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 15bcc5104c577b4b9c761f2854fc686c07ffa9db
author | iuc |
---|---|
date | Thu, 07 Jul 2016 02:41:02 -0400 |
parents | |
children | c8d4ea6376a7 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:92bd8a680b9d |
---|---|
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 |