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

Removed mapping error rate from estimate of denoised copy ratios output by gCNV and updated sklearn. #7261

Merged
merged 1 commit into from
Jun 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/gatkcondaenv.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies:
# if you wish to update, note that versions of conda-forge::keras after 2.2.5
# undesirably set the environment variable KERAS_BACKEND = theano by default
- defaults::intel-openmp=2019.4
- conda-forge::scikit-learn=0.22.2
- conda-forge::scikit-learn=0.23.1
- conda-forge::matplotlib=3.2.1
- conda-forge::pandas=1.0.3

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -786,8 +786,7 @@ def __init__(self,
# the expected number of erroneously mapped reads
mean_mapping_error_correction_s = eps_mapping * read_depth_s * shared_workspace.average_ploidy_s

denoised_copy_ratio_st = ((shared_workspace.n_st - mean_mapping_error_correction_s.dimshuffle(0, 'x'))
/ ((1.0 - eps_mapping) * read_depth_s.dimshuffle(0, 'x') * bias_st))
denoised_copy_ratio_st = shared_workspace.n_st / (read_depth_s.dimshuffle(0, 'x') * bias_st)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this change should have broken a test, but it looks like the only tests test the Python environment. Should we add tests (maybe not for this PR)?


Deterministic(name='denoised_copy_ratio_st', var=denoised_copy_ratio_st)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public Object[][] getDataPackagePresent() {
{ "pymc3", "3.1" },
{ "keras", "2.2.4" },
{ "h5py", "2.10.0" },
{ "sklearn", "0.22.2.post1" },
{ "sklearn", "0.23.1" },
{ "matplotlib", "3.2.1" },
{ "pandas", "1.0.3" },
{ "argparse", null },
Expand Down