metageni / SUPER-FOCUS

A tool for agile functional analysis of shotgun metagenomic data
GNU General Public License v3.0
21 stars 12 forks source link

UnboundLocalError: local variable 'temp_results' referenced before assignment #38

Closed theo-allnutt-bioinformatics closed 5 years ago

theo-allnutt-bioinformatics commented 5 years ago

[2019-02-26 12:31:08,398 - INFO] Parsing Alignments Traceback (most recent call last): File "/home/allnutt.t/.conda/envs/py3/bin/superfocus", line 11, in sys.exit(main()) File "/home/allnutt.t/.conda/envs/py3/lib/python3.7/site-packages/superfocus_app/superfocus.py", line 322, in main minimum_identity, minimum_alignment, subsystems_translation, aligner) File "/home/allnutt.t/.conda/envs/py3/lib/python3.7/site-packages/superfocus_app/do_alignment.py", line 171, in parse_alignments update_results(results, sample_index, temp_results, normalise, number_samples) UnboundLocalError: local variable 'temp_results' referenced before assignment

theo-allnutt-bioinformatics commented 5 years ago

I think this error might be caused by some of my input files having very few reads (they were mapping results). When they were excluded it went away.

metageni commented 5 years ago

@theo-allnutt-bioinformatics thanks for reporting it. I feel like this problem was addressed already. Which version of the program are you using?

This should not happen on version 0.33.