Hi,
In the README, it says "must have python 2 or 3". My understanding is the code support both python 2 and 3. However, when I try to run test_data with python3, their are some errors.
For example:
File "/path/to/find_trregion_overlaps.py", line 69
print counter
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(counter)?
File "/path/to/precluster_svs.py", line 94, in <lambda>
flat_sv_clusters_list.sort(key=lambda x: map(int, x[CLUSTERID_COL].split('.')) + [x[CLUSTER_BEGIN_COL]] )
TypeError: unsupported operand type(s) for +: 'map' and 'list'
These errors are caused by the changes of built-in functions in python3. After I switch to python2, everything is fine.
So, I think the code are all written in python2 and I should not run it with python3?
Thanks,
Hank
Hi,
In the README, it says "must have python 2 or 3". My understanding is the code support both python 2 and 3. However, when I try to run test_data with python3, their are some errors.
For example:
These errors are caused by the changes of built-in functions in python3. After I switch to python2, everything is fine.
So, I think the code are all written in python2 and I should not run it with python3?
Thanks,
Hank