Mercurial > repos > jankanis > blast2html
comparison blast2html.py @ 126:0fa962dd83b4
Add README and license
author | Jan Kanis <jan.code@jankanis.nl> |
---|---|
date | Wed, 22 Jul 2015 16:10:25 +0200 |
parents | 720efb818f1b |
children |
comparison
equal
deleted
inserted
replaced
125:8205546ba86c | 126:0fa962dd83b4 |
---|---|
1 #!/usr/bin/env python3 | 1 #!/usr/bin/env python3 |
2 # -*- coding: utf-8 -*- | 2 # -*- coding: utf-8 -*- |
3 | 3 |
4 # Actually this program works with both python 2 and 3, tested against python 2.6 | 4 # Actually this program works with both python 2 and 3, tested against python 2.6 |
5 | 5 |
6 # Copyright The Hyve B.V. 2014 | 6 # Copyright The Hyve B.V. 2014-2015 |
7 # License: GPL version 3 or (at your option) any higher version | 7 # License: GPL version 3 or (at your option) any higher version |
8 | 8 |
9 from __future__ import unicode_literals, division | 9 from __future__ import unicode_literals, division |
10 | 10 |
11 import sys | 11 import sys |
448 | 448 |
449 parser.add_argument('--db-config-dir', | 449 parser.add_argument('--db-config-dir', |
450 help="""The directory where databases are configured in blastdb*.loc files. These files | 450 help="""The directory where databases are configured in blastdb*.loc files. These files |
451 are consulted for creating a gene bank link. The files should conform to the format that | 451 are consulted for creating a gene bank link. The files should conform to the format that |
452 Galaxy's BLAST expect, i.e. tab-separated tables (with lines starting with '#' ignored), | 452 Galaxy's BLAST expect, i.e. tab-separated tables (with lines starting with '#' ignored), |
453 with two extra fields. The third field of a line should be a database path and the fourth | 453 with two extra fields, for a total of five fields per line instead of three.. The third |
454 a genebank link template conforming to the --genelink-template option syntax. Entries in | 454 field of each line should be a database path as used by BLAST. The fourth field is the |
455 these config files override links specified using --genelink-template and --dbname.""") | 455 human readable database name, and the fifth a template link to the gene bank conforming |
456 to the syntax for the --genelink-template option. Entries in these config files override | |
457 links specified using --genelink-template and --dbname.""") | |
456 | 458 |
457 args = parser.parse_args() | 459 args = parser.parse_args() |
458 if args.input == None: | 460 if args.input == None: |
459 args.input = args.positional_arg | 461 args.input = args.positional_arg |
460 if args.input == None: | 462 if args.input == None: |