我遇到了这个错误,我在解决它时遇到了麻烦。这是我得到的结果:
Traceback (most recent call last):
File "afile.py", line 100, in <module>
for col in bam.pileup( chrm, ps1, ps1+1,truncate=True):
File "pysam/calignmentfile.pyx", line 2060, in pysam.calignmentfile.IteratorColumnRegion.__next__
(pysam/calignmentfile.c:23305)
ValueError: error during iteration在此之前非常感谢。
发布于 2015-07-28 04:30:24
我最近遇到了这个问题。在我的例子中,根本原因是.bai bam索引文件过时了。在我用samtools index XXX.bam重新生成它之后,pysam崩溃就消失了。
https://stackoverflow.com/questions/30807230
复制相似问题