Update: As many readers have commented, I have just missed the obvious – there are functions in python to do this. See comments section for details.
So I do a lot of file processing in my bioinformatics work and I’ve always really liked the perl function chomp.
I wanted to implement something in python to do this [...]
Filed under: Bioinformatics, howto | Tagged: Bioinformatics, perl, python | 6 Comments »