smangul1 / MiCoP

MiCoP is a method for high-accuracy profiling of viral and fungal metagenomic communities.
GNU General Public License v3.0
14 stars 9 forks source link

compute-abundances error #4

Closed bouquetj closed 5 years ago

bouquetj commented 5 years ago

I'm getting the following error. How can I fix it? Thanks!

python compute-abundances.py -h File "compute-abundances.py", line 282 lev_res = {i:[] for i in range(len(RANKS))} ^ SyntaxError: invalid syntax

nlapier2 commented 5 years ago

Thanks for the feedback. What is your python version? (Check with "python --version".) It may be that this syntax is only available in certain versions of python.

bouquetj commented 5 years ago

Got it! Tried with 3 different versions (2.66, 2.7.14 and 3.6.7) It worked with python 2.7.14. FYI with python 3.6.7 was getting an error line 119 instead of line 282 Thanks!

nlapier2 commented 5 years ago

Thanks, this helps a lot. I will look into making this work for different versions of python.

nlapier2 commented 5 years ago

It should be compatible with both python 2 and python 3 now.