Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gatk_cnv step 3 has the potential of attempting to interpret log2 of 0 #452

Open
bryce-turner opened this issue Aug 12, 2021 · 0 comments
Open
Assignees

Comments

@bryce-turner
Copy link
Member

gatk_cnv step 3 has the potential of attempting to interpret log2 of 0. This is a rare edge case where the count for the interval is 0 and is not filtered out in any of the previous steps.

gatk --java-options "-Xmx12g" CreateReadCountPanelOfNormals \
--tmp-dir {{ temp_dir }}/temp3/ \
--input {{ temp_dir }}/{{ pair.normal.name }}.{{ aligner }}.counts.hdf5 \
--minimum-interval-median-percentile 0.0 \
--annotated-intervals {{ temp_dir }}/anno_preprocessed.interval_list \
--output {{ temp_dir }}/cnv.pon.hdf5
{# Make working and temp directories #}
mkdir -p "{{ temp_dir }}/temp4"
{# Denoise the tumor using the panel of normals made from the matched normal #}
gatk --java-options "-Xmx12g" DenoiseReadCounts \
--tmp-dir {{ temp_dir }}/temp4/ \
--input {{ temp_dir }}/{{ pair.tumor.name }}.{{ aligner }}.counts.hdf5 \
--count-panel-of-normals {{ temp_dir }}/cnv.pon.hdf5 \
--standardized-copy-ratios {{ results_dir }}/{{ pair.name }}.{{ aligner }}.standardizedCR.tsv \
--denoised-copy-ratios {{ results_dir }}/{{ pair.name }}.{{ aligner }}.denoisedCR.tsv

One solution to this is setting the --minimum-interval-median-percentile to be really small, since this can use scientific notation a value such as 1E-30 would work and avoid 0's being passed into a log2 calculation.

@bryce-turner bryce-turner self-assigned this Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant