# HG changeset patch # User dfornika # Date 1583229454 0 # Node ID e2cab62e194309c7c501e7d0c2cb050f7448ae00 # Parent d29bf2f7da9d4ed7543301a3a6ac3e016a5d0969 Uploaded diff -r d29bf2f7da9d -r e2cab62e1943 blast_report.py --- 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