Open duartemolha opened 8 years ago
Thanks for reporting this issue. We are currently working on a list of bug fixes and will add this one to the list.
I see that some improvements have been done on this. But the mirror image of this issue also needs addressing
Say your targeted panel is only on the sex chromosomes. In this case line 2384 fails because the covchralllength is 0
$covchrall = ($covchrallsum/$covchralllength);
Hi ... Thank your for your software... I have been testing it and got some nice calls on one of my panels... however... I have a panel that only has targets on a sex chromossome and nothing on the autosomal chromossomes...
In several places your script is not set up to deal with this situation as it expects targets on non-sex chromossomes.
Also, a CNV happening on a portion of chrX on a male sample can an often results in no reads on the target exon for that sample... your script fails as is tries to get average read counts on the countFromBam sub for example.
Also
in the sub calcCovAutoSex, the variable $covchrautolength in this case is 0 and the
therefore fails with an elligal division by 0
the same on the sub writeCountFile
Thiswould fail in this example since there is no coverage of autosommal chrs.
Many thanks