This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Globplot/Globpipe in python3

Has anyone tried to modify the Globpipe (http://globplot.embl.de/) code in python3? I found out that the current version imports some modules that are obscure in py3.

python globplot

It looks like Globpipe was written before python3 existed...

Yes. It was written in Python2. But it should be converted to py3 to remain practical. I asked Michael Kuhn (author) also, but he is saying he can't help. The problem is with the obscure modules that are imported in python2. I don''t know how to change those modules in code. Code is here: https://github.com/mkuhn/globplot.

fpformat can be replaced by standard python. For example, fpformat.fix(something, 10) is float("{:15.10f}".format(something)). popen3 can be replaced by Popen from the subprocess module.

As an aside, I wouldn't be surprised if the majority of python programs are still python2 only. While there are some benefits to python3, there's no real killer feature (UTF8 everywhere and a 64bit integer type aren't really killer features).

0 answers

No answers yet.

Log in to answer this question.