Mercurial > repos > dfornika > blast_report_basic
changeset 26:e2cab62e1943 draft
Uploaded
author | dfornika |
---|---|
date | Tue, 03 Mar 2020 09:57:34 +0000 |
parents | d29bf2f7da9d |
children | efa564587d12 |
files | blast_report.py |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/blast_report.py Tue Mar 03 09:47:38 2020 +0000 +++ b/blast_report.py Tue Mar 03 09:57:34 2020 +0000 @@ -4,7 +4,7 @@ '''Report on BLAST results. -python blast_report.py input_tab cheetah_tmpl output_html output_tab [-i [min_identity]] [-f filterkw1,...,filterkwN]] [-b bin1_label=bin1_path[,...binN_label=binN_path]] +python blast_report.py input_tab cheetah_tmpl output_html output_tab [-i [min_identity]] [-f filterkw1,...,filterkwN]] [-b bin1_label bin1_path[,...binN_label binN_path]] ''' import argparse @@ -105,7 +105,9 @@ #BINS bins=[] if args.bins != None: - bins = list([BLASTBin(label_file.split('=')[0],label_file.split('=')[-1]) for label_file in args.bins.split(',')]) + for bin in args.bins: + bins.append(BLASTBin(bin[0], bin[1]) + print('database bins: %s' % str([bin.label for bin in bins])) #FILTERS