Closed pblaney closed 2 years ago
Hi Patrick,
Thanks for raising this and providing a detailed report.
It looks like it is clipped_base_quals
, when that is 0 then a ZeroDivisionError
arises. Sorry for missing this!
I have pushed a fix for this to github. A release will be uploaded to pypi shortly (v1.3.3).
Could I ask what sequencing platform you are using? The error implies that there are some clipped_bases
(soft-clipped bases) but the sum of their base qualities is zero.
Hi Kez, I greatly appreciate the fast response. This data was sequenced on Illumina. Also, I just checked the output BAM in IGV and I can see the soft-clipped bases. It appears their individual base qualities are non-zero so the sum most certainly shouldn't be.
I am unsure if this is a correct interpretation so let me know if you have a preferred method for evaluating these metrics.
EDIT: After searching the BAM there are some reads that have no clipping. Perhaps it's these reads that are being caught and thus the sum would be zero?
Thanks for the extra info, I think your data looks 'normal' as far as I can see. I have released v1.3.3 to pypi, so hopefully that resolves issue. I will close this for now, but please re-open if this doesn't fix it.
Also, as you mentioned in your comment that you are interested in the metrics dysgu provides, you might want to add --metrics
flag to your run/call command to get the full list of metrics in the output, without this a more limited set is reported.
Hey Kez,
Just wanted to update you and confirm the error has been resolved and the call
function successfully moved past this part of the function. However there was an additional error that arose so I will open a new issue to detail this for you.
I think it'll be a small fix so hopefully it won't take up too much of your time.
Thanks again for addressing this, Patrick
Hello Kez,
Exciting work you've put together here with dysgu. Very happy to have come across your preprint as I've been looking for a tool that would generate such useful read metrics for the major SV classes. I have been trying to get the software to complete on one of my samples and continue to run into this same error upon running the
call
step.To troubleshoot, I first ran
dysgu test
to determine if my build was fully successful and this completed without error. Next, I checked the output bam from thefetch
step with some samtools commands. It's wasn't corrupt and had a reasonable amount of reads (6183390). Then I went into the script call_component.pyx and looked into the code block where the error originated:From that I can see it's one of
aligned_bases
,clipped_base_quals
, orclipped_bases
I couldn't see a reason any to these values would be zero based on the BAM that was produced so I wanted to present the issue here.Let me know if there is any other information or tests you would like me to try. Best regards, Patrick
Below are packages installed for build via Anaconda and pip: