Closed fredjaya closed 1 month ago
Error is how the arguments are being parsed in def main()
.
arguments passed to the python script are the kraken and bakta files for all samples. In this case, 4/7 samples are missing bakta outputs:
all_args = ['barcode03.k2report', 'barcode01.k2report', 'barcode13.k2report', 'barcode10.k2report', 'barcode12.k2report', 'barcode15.k2report', 'barcode14.k2report', 'barcode03_bakta', 'barcode10_bakta', 'barcode01_bakta']
Parsing k2 reports and bakta results assume that all inputs exist, or, the number of bakta and k2 files are exactly equal:
kraken2_reports = all_args[:half_way]
bakta_results = all_args[half_way:]
Solutions:
re
instead of it's sys.argv
position
Describe the bug
create_phylogeny_tree_related_files
process fails due to missing key when subsetting dictionary in the python scriptTo Reproduce Steps to reproduce the behavior:
-profile gadi
(no high-accuracy)The
.command.sh
run:Error produced:
Expected behavior
phylogeny/*
files outputEnvironment:
Additional context The
barcode_species_table_mqc.txt
produced by the same Nextflow process is missing barcodes 14 and 15, need to check to see if this is related.Perhaps an edge case for barcode15 that hasn't been discovered due to it failing in upstream processes #21