3 ms·
I find Python list/dict comprehensions, zip, range, enumerate etc. and the itertools module very good for such things. And you have immediate access to so many
by bonoboTP 7y ago
I find Python list/dict comprehensions, zip, range, enumerate etc. and the itertools module very good for such things.
And you have immediate access to so many useful modules (csv, json, xml) and can easily extract code fragments into functions.
You can also execute shell-like commands with subprocess.check_output() without ever worrying again about escaping strings or accidentally splitting them at spaces or whatever.
Clever one liners are difficult to comprehend. It's better to break them up to a few variable assignments with descriptive, long names without abbreviations.
- arminiusreturns 7y agoI agree python seems to have taken over in this space since then (7+ yrs ago) and is usually a better tool in bioinformatics, I was just using the tools I knew as an ops dude.