Closed GoogleCodeExporter closed 9 years ago
Hi Fabio,
thank you for your suggestion. On first thought I don't think this is something
that should be part of pysam. The sam/bam format simply stores quality scores.
I have chosen to return a string, but this can be easily converted to integer
values:
quality_scores = [ ord(x) for x in read.qual ]
In my opinion, interpreting these values (such as shifting/converting) is best
left to the user - the only person knowing the encoding scheme. Wrapping a read
with a biopython object should be just a few lines of code.
Best wishes,
Andreas
Original comment by andreas....@gmail.com
on 18 Sep 2013 at 7:04
Yes, it's a few lines only, but somewhat tricky to do efficiently (see the
code). I thought this might be generally useful as SeqRecord is the standard
format for FASTQ in Python, but if you are not willing to maintain that
conversion code, that's also fine.
Original comment by iosonofa...@gmail.com
on 19 Sep 2013 at 7:55
Hi Fabio,
thanks. I would like pysam to keep concentrating on wrapping functionality
within
C-samtools - without adding external dependencies.
That being said, I have just now added Fastqfile that wraps Li-Heng's kseq.h.
Best wishes,
Andreas
Original comment by andreas....@gmail.com
on 24 Sep 2013 at 1:00
Closed.
Original comment by andreas....@gmail.com
on 26 Nov 2013 at 9:33
Original issue reported on code.google.com by
iosonofa...@gmail.com
on 18 Sep 2013 at 8:44Attachments: