diff --git a/kb_python/count.py b/kb_python/count.py index b34d938..0ca27d9 100755 --- a/kb_python/count.py +++ b/kb_python/count.py @@ -974,7 +974,8 @@ def filter_with_bustools( counts_dir, count_result['mtx'], count_result['barcodes'], - batch_barcodes_path=count_result['batch_barcodes'], + batch_barcodes_path=count_result['batch_barcodes'] + if 'batch_barcodes' in count_result else None, genes_path=count_result.get('genes'), t2g_path=t2g_path, ec_path=count_result.get('ec'), @@ -2190,6 +2191,7 @@ def update_results_with_suffix(current_results, new_results, suffix): ], [ filtered_results[prefix]['batch_barcodes'] + if batch_barcodes else None for prefix in prefixes ], genes_paths=[ diff --git a/tests/fixtures/quant/index.saved b/tests/fixtures/quant/index.saved index d903244..04997c7 100644 Binary files a/tests/fixtures/quant/index.saved and b/tests/fixtures/quant/index.saved differ