Mercurial > repos > iuc > ncbi_eutils_elink
comparison egquery.py @ 9:bb5af69cf3f7 draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit 851b88d92fa7740880a5edf407f629bf3f7f7bf0
author | iuc |
---|---|
date | Fri, 04 Oct 2024 14:35:37 +0000 |
parents | c75419361087 |
children |
comparison
equal
deleted
inserted
replaced
8:c75419361087 | 9:bb5af69cf3f7 |
---|---|
1 #!/usr/bin/env python | |
2 | |
3 import argparse | |
4 | |
5 import eutils | |
6 | |
7 | |
8 if __name__ == '__main__': | |
9 parser = argparse.ArgumentParser(description='EGQuery', epilog='') | |
10 parser.add_argument('term', help='Query') | |
11 | |
12 parser.add_argument('--user_email', help="User email") | |
13 parser.add_argument('--admin_email', help="Admin email") | |
14 | |
15 parser.add_argument('--version', action='version', version=eutils.Client.getVersion(), help='Version (reports Biopython version)') | |
16 | |
17 args = parser.parse_args() | |
18 | |
19 c = eutils.Client(user_email=args.user_email, admin_email=args.admin_email) | |
20 | |
21 payload = { | |
22 'term': args.term, | |
23 } | |
24 results = c.gquery(**payload) | |
25 print(results) |