Mercurial > repos > iuc > ncbi_eutils_esummary
comparison einfo.py @ 3:254f40d3ae2b draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit dae34e5e182b4cceb808d7353080f14aa9a78ca9"
author | iuc |
---|---|
date | Wed, 23 Sep 2020 09:50:11 +0000 |
parents | c8d4ea6376a7 |
children |
comparison
equal
deleted
inserted
replaced
2:cb5a0fe9e036 | 3:254f40d3ae2b |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 from __future__ import print_function | |
3 | 2 |
4 import argparse | 3 import argparse |
5 | 4 |
6 import eutils | 5 import eutils |
7 | 6 |
9 if __name__ == '__main__': | 8 if __name__ == '__main__': |
10 parser = argparse.ArgumentParser(description='EInfo', epilog='') | 9 parser = argparse.ArgumentParser(description='EInfo', epilog='') |
11 parser.add_argument('--db', help='Database to use') | 10 parser.add_argument('--db', help='Database to use') |
12 parser.add_argument('--user_email', help="User email") | 11 parser.add_argument('--user_email', help="User email") |
13 parser.add_argument('--admin_email', help="Admin email") | 12 parser.add_argument('--admin_email', help="Admin email") |
13 parser.add_argument('--version', action='version', version=eutils.Client.getVersion(), help='Version (reports Biopython version)') | |
14 args = parser.parse_args() | 14 args = parser.parse_args() |
15 | 15 |
16 c = eutils.Client(user_email=args.user_email, admin_email=args.admin_email) | 16 c = eutils.Client(user_email=args.user_email, admin_email=args.admin_email) |
17 payload = {} | 17 payload = {} |
18 if args.db is not None: | 18 if args.db is not None: |