From 50b081ea2a3dfea47d5fdcb5bfd73cad56541b4d Mon Sep 17 00:00:00 2001 From: Jennifer Lu Date: Mon, 19 Apr 2021 11:41:27 -0400 Subject: [PATCH] Updating combine_kreports.py to be compatible with kraken2uniq/krakenuniq reports --- combine_kreports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/combine_kreports.py b/combine_kreports.py index 41d74ae..9035f08 100755 --- a/combine_kreports.py +++ b/combine_kreports.py @@ -118,8 +118,8 @@ def process_kraken_report(curr_str): #Extract relevant information all_reads = int(split_str[1]) level_reads = int(split_str[2]) - level_type = split_str[3] - taxid = split_str[4] + level_type = split_str[-3] + taxid = split_str[-2] #Get name and spaces spaces = 0 name = split_str[-1]