Mercurial > repos > iuc > ncbi_eutils_egquery
comparison elink.py @ 6:2d54a753d1f1 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:09:24 -0400 |
| parents | 3ebc86b520d7 |
| children | f3f5ee550b17 |
comparison
equal
deleted
inserted
replaced
| 5:20a86bfb54eb | 6:2d54a753d1f1 |
|---|---|
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 from __future__ import print_function | |
| 3 | |
| 2 import argparse | 4 import argparse |
| 3 import json | 5 import json |
| 4 | 6 |
| 5 import eutils | 7 import eutils |
| 6 | 8 |
| 54 | 56 |
| 55 if args.cmd == "neighbor_history": | 57 if args.cmd == "neighbor_history": |
| 56 history = c.extract_history(results) | 58 history = c.extract_history(results) |
| 57 args.history_out.write(json.dumps(history, indent=4)) | 59 args.history_out.write(json.dumps(history, indent=4)) |
| 58 | 60 |
| 59 print results | 61 print(results) |
