Mercurial > repos > iuc > ncbi_eutils_efetch
comparison esearch.py @ 6:2ff5369b4b51 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/ncbi_entrez_eutils commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
| author | iuc |
|---|---|
| date | Tue, 30 Oct 2018 19:08:38 -0400 |
| parents | 1b4ac594d02a |
| children | b151cd22921f |
comparison
equal
deleted
inserted
replaced
| 5:e269b3b5185b | 6:2ff5369b4b51 |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 from __future__ import print_function | |
| 3 | |
| 4 import argparse | |
| 2 import json | 5 import json |
| 3 import argparse | 6 |
| 4 import eutils | 7 import eutils |
| 5 | 8 |
| 6 | 9 |
| 7 if __name__ == '__main__': | 10 if __name__ == '__main__': |
| 8 parser = argparse.ArgumentParser(description='ESearch', epilog='') | 11 parser = argparse.ArgumentParser(description='ESearch', epilog='') |
| 42 | 45 |
| 43 if args.history_out is not None: | 46 if args.history_out is not None: |
| 44 history = c.extract_history(results) | 47 history = c.extract_history(results) |
| 45 args.history_out.write(json.dumps(history, indent=4)) | 48 args.history_out.write(json.dumps(history, indent=4)) |
| 46 | 49 |
| 47 print results | 50 print(results) |
