-
Notifications
You must be signed in to change notification settings - Fork 97
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
Error in testthat due to NA handling in test-17-bedgraph.r when exporting meth.diff as log-transformed value #331
Comments
alexg9010
added a commit
that referenced
this issue
Nov 12, 2024
Fixes #331 Fix the error in `tests/testthat/test-17-bedgraph.r` due to NA handling in `meth.diff` export as log-transformed value. * **R/bedgraph.R** - Disallow transformation of `meth.diff` values in `bedgraph` function for `methylDiff` objects. - Add a check to ensure `log.transform` is `FALSE` when `col.name` is `meth.diff`. * **tests/testthat/test-17-bedgraph.r** - Update tests to ensure `log.transform` is not allowed for `meth.diff` values. - Add a test to check for error when `log.transform` is `TRUE` for `meth.diff`. - Add tests for `methylDiffDB` objects to ensure `log.transform` is not allowed for `meth.diff` values. * **R/methylDBFunctions.R** - Add a check to ensure `log.transform` is `FALSE` when `col.name` is `meth.diff`. - Disallow transformation of `meth.diff` values in `bedgraph` function for `methylDiffDB` objects. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/al2na/methylKit/issues/331?shareId=XXXX-XXXX-XXXX-XXXX).
alexg9010
added a commit
that referenced
this issue
Nov 26, 2024
Fixes #331 Fix the error in `tests/testthat/test-17-bedgraph.r` due to NA handling in `meth.diff` export as log-transformed value. * **R/bedgraph.R** - Disallow transformation of `meth.diff` values in `bedgraph` function for `methylDiff` objects. - Add a check to ensure `log.transform` is `FALSE` when `col.name` is `meth.diff`. * **tests/testthat/test-17-bedgraph.r** - Update tests to ensure `log.transform` is not allowed for `meth.diff` values. - Add a test to check for error when `log.transform` is `TRUE` for `meth.diff`. - Add tests for `methylDiffDB` objects to ensure `log.transform` is not allowed for `meth.diff` values. * **R/methylDBFunctions.R** - Add a check to ensure `log.transform` is `FALSE` when `col.name` is `meth.diff`. - Disallow transformation of `meth.diff` values in `bedgraph` function for `methylDiffDB` objects. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/al2na/methylKit/issues/331?shareId=XXXX-XXXX-XXXX-XXXX).
alexg9010
added a commit
that referenced
this issue
Nov 27, 2024
Fixes #331 Fix the error in `tests/testthat/test-17-bedgraph.r` due to NA handling in `meth.diff` export as log-transformed value. * **R/bedgraph.R** - Disallow transformation of `meth.diff` values in `bedgraph` function for `methylDiff` objects. - Add a check to ensure `log.transform` is `FALSE` when `col.name` is `meth.diff`. * **tests/testthat/test-17-bedgraph.r** - Update tests to ensure `log.transform` is not allowed for `meth.diff` values. - Add a test to check for error when `log.transform` is `TRUE` for `meth.diff`. - Add tests for `methylDiffDB` objects to ensure `log.transform` is not allowed for `meth.diff` values. * **R/methylDBFunctions.R** - Add a check to ensure `log.transform` is `FALSE` when `col.name` is `meth.diff`. - Disallow transformation of `meth.diff` values in `bedgraph` function for `methylDiffDB` objects. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/al2na/methylKit/issues/331?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The recent Bioconductor check on nebbiolo1 for the methylKit package version 1.33.0 encountered an error in testthat.R.
An error occurred in the test suite tests/testthat.R, specifically in test-17-bedgraph.r:19:1. The error was caused by a scan() function call in R, where it expected a numeric (real) value but encountered 'NA'.
Reason
This error occurs when we want to export the
meth.diff
value as log transformed value. This will lead to NA output, which causes rtracklayer to complain upon import. similiar toperc.meth
themeth.diff
value should not be allowed to be transformed.Summary of Error:
In test-17-bedgraph.r:
Details:
Line 19 causes failure:
methylKit/tests/testthat/test-17-bedgraph.r
Lines 10 to 19 in 0a5581c
Error Message:
Suggested Fixes
meth.diff
valuesTestthat Log
Expand
The text was updated successfully, but these errors were encountered: