You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered an issue with the R script generated by VariantRecalibrator during my analysis. The generated R script uses color functions (scale_fill_gradient) where the RGB color space is still being employed to calculate the gradient. However, in newer versions of R, the ggplot2 and scales libraries have deprecated the RGB color space, and the library now requires the "Lab" color space to calculate the gradient.
This issue causes the R script to fail unless it is later modified by the user to use scale_fill_gradient(..., space = "Lab"). Updating the script generation in VariantRecalibrator would prevent this problem and make the R script compatible with newer versions of R, and ggplot2. an scales libraries.
Here is the suggested change:
update : scale_fill_gradient(..., space = "rgb")
to : scale_fill_gradient(..., space = "Lab")
Hi @Nanderson246
This is a known issue that requires us to update the conda environment and its dependencies on our end which all rely on older versions of certain R and python tools. Direct intervention and changing this code breaks certain unit tests which result in failure to build our conda and docker environments. This is a works in progress for our newer conda and docker environment however for the time being you may manually edit your R scripts to solve it or use R from our conda or docker environments to generate images.
Hi,
I've encountered an issue with the R script generated by
VariantRecalibrator
during my analysis. The generated R script uses color functions (scale_fill_gradient
) where the RGB color space is still being employed to calculate the gradient. However, in newer versions of R, the ggplot2 and scales libraries have deprecated the RGB color space, and the library now requires the "Lab" color space to calculate the gradient.This issue causes the R script to fail unless it is later modified by the user to use
scale_fill_gradient(..., space = "Lab")
. Updating the script generation inVariantRecalibrator
would prevent this problem and make the R script compatible with newer versions of R, and ggplot2. an scales libraries.Here is the suggested change:
update : scale_fill_gradient(..., space = "rgb")
to : scale_fill_gradient(..., space = "Lab")
Versions:
The Genome Analysis Toolkit (GATK) v4.6.0.0
HTSJDK Version: 4.1.1
Picard Version: 3.2.0
RStudio 2024.04.2+764 "Chocolate Cosmos" Release (e4392fc9ddc21961fd1d0efd47484b43f07a4177, 2024-06-05) for Ubuntu Jammy
Library scales 1.3.0
library ggplot2 3.51
The text was updated successfully, but these errors were encountered: