Bracken icon indicating copy to clipboard operation
Bracken copied to clipboard

Running the combine_bracken_outputs.py with Python3

Open TakacsBertalan opened this issue 4 years ago • 3 comments

I was getting the following error message, when I tried to run the combine_bracken_outputs.py with Python3.6 File "/media/data/Sunbeam/sunbeam-dev/Bracken/analysis_scripts/combine_bracken_outputs.py", line 133, in main taxid = sample_counts[name].keys()[0] TypeError: 'dict_keys' object does not support indexing I suggest the following very simple fix for the issue: taxid = list(sample_counts[name].keys())[0] By changing this one line, the script becomes runnable with Python3

TakacsBertalan avatar Nov 19 '20 15:11 TakacsBertalan

If you can make a pull request, I think I can incorporate that (as long as that still works with python2)

jenniferlu717 avatar Nov 21 '20 21:11 jenniferlu717

I think this has not been incorporated yet. I still get this error.

Rohit-Satyam avatar Nov 06 '22 11:11 Rohit-Satyam

program worked by manually replacing the line taxid = sample_counts[name].keys()[0] in combine_bracken_outputs.py with taxid = list(sample_counts[name].keys())[0]

rzhan186 avatar Aug 09 '23 15:08 rzhan186