Closed GoogleCodeExporter closed 8 years ago
Thanks for pointing this out - it is indeed not intuitive.
Setting seq erases quality scores as these are managed together
within samtools. Changing the length of a sequence will automatically
change the length of the quality score string. As a safety, the quality
scores are set to 0. I can't see a solution other than to provide
an explicit update method. However, there is a workaround (see below).
The best way to do this is to (as you found out):
q = read.qual
read.seq = read.seq[5:10]
read.qual = q[5:10]
I have added some text to the documentation.
Best wishes,
Andreas
Original comment by andreas....@gmail.com
on 17 Sep 2013 at 7:11
Original issue reported on code.google.com by
iosonofa...@gmail.com
on 13 Sep 2013 at 12:24