Entering edit mode
7.0 years ago
NestorVB
▴
20
Hej guys,
So there is this sed command that allows you to transform the quality code into bar simbols: sed -e 'n;n;n;y/!"#$%&'\''()*+,-.\/0123456789:;<=>?@ABCDEFGHIJKL/▁▁▁▁▁▁▁▁▂▂▂▂▂▃▃▃▃▃▄▄▄▄▄▅▅▅▅▅▆▆▆▆▆▇▇▇▇▇██████/' myfile.fastq
I have been checking ways to do the same in python, but I have not found a solution I can understand. Maybe pysed or re.sub, but I do not even know how to write the ASCII code in a string without python getting mixed up the characters.
Does anyone know?
Thanks in advance!
Got the solution in stackoverflow: https://stackoverflow.com/questions/47336414/using-sed-transliterate-command-in-python Thanks anyways