Fastq file quality represented in bars with python
0
0
Entering edit mode
6.4 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!

fastq sed quality bars python • 1.1k views
ADD COMMENT
0
Entering edit mode
ADD REPLY

Login before adding your answer.

Traffic: 2893 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6