This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Fastq file quality represented in bars with python

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!

fastq sed quality bars python

0 answers

No answers yet.

Log in to answer this question.