Clinical-Genomics-Lund / SomaticPanelPipeline

0 stars 2 forks source link

Illegal division by zero at find_contaminant.pl #49

Closed ramsainanduri closed 6 months ago

ramsainanduri commented 6 months ago

When processing variants, the Perl script encounters failures specifically in cases where variant depth (DP) information is zero for normal samples. This issue arises under various circumstances, leading to an inability to accurately assess or process the variant data.

Example of Affected Variant: The following variant demonstrates a scenario where the script fails, highlighted by the absence of depth and frequency values for the variant in the normal sample, as indicated by the DP field being set to 0.

2       214767532       .       A       G       437     FAIL_NVAF;WARN_PON_freebayes;WARN_FFPE_PON_freebayes   INFO....CSQ..    GT:VAF:VD:DP    1/0:0.529:383:383       0/0:0:0:0