Closed dfornika closed 8 years ago
I've made the smallest change I could think of in order to resolve this issue. I'd appreciate if @rdmorin, @brunogrande or any other users of this code could take a look at this commit to make sure that this change isn't going to break some other analysis that depends on this function.
If a read doesn't have a base at a given position, then I can't imagine this causing an issue.
Thanks for confirming.
On line 261:
read.query_position
will beNone
ifis_del
oris_refskip
are set.http://pysam.readthedocs.org/en/latest/api.html#pysam.PileupRead.query_position