From 388512deee369648456061b7fb945e1971b13baf Mon Sep 17 00:00:00 2001 From: John Elizarraras <13990267+iblacksand@users.noreply.github.com> Date: Wed, 6 Mar 2024 20:44:29 -0800 Subject: [PATCH 1/2] Update idMappingMetabolites.R to address warning --- R/idMappingMetabolites.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/idMappingMetabolites.R b/R/idMappingMetabolites.R index 31bd037..134f902 100644 --- a/R/idMappingMetabolites.R +++ b/R/idMappingMetabolites.R @@ -163,14 +163,14 @@ add_prefix <- function(x, sourceIdType) { uppers <- c("LIPIDMAPS", "CAS") if (toupper(sourceIdType) %in% uppers) { return(unlist(sapply(x, function(y) { - if (grepl(":", y, FIXED = TRUE)) { + if (grepl(":", y)) { return(y) } return(paste0(toupper(sourceIdType), ":", toupper(y))) }))) } else { return(unlist(sapply(x, function(y) { - if (grepl(":", y, fixed = TRUE) && sourceIdType != "swisslipids") { + if (grepl(":", y) && sourceIdType != "swisslipids") { return(y) } return(paste0(sourceIdType, ":", y)) From acd660af5b047ed9d0addc40cdf4141976922909 Mon Sep 17 00:00:00 2001 From: John Elizarraras <13990267+iblacksand@users.noreply.github.com> Date: Wed, 6 Mar 2024 20:46:47 -0800 Subject: [PATCH 2/2] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 225e1d5..c9681d4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # WebGestaltR -[![R-CMD-check](https://github.com/iblacksand/WebGestaltR/actions/workflows/check-standard.yaml/badge.svg)](https://github.com/iblacksand/WebGestaltR/actions/workflows/check-standard.yaml) +[![R-CMD-check](https://github.com/bzhanglab/WebGestaltR/actions/workflows/check-standard.yaml/badge.svg)](https://github.com/bzhanglab/WebGestaltR/actions/workflows/check-standard.yaml) > [!IMPORTANT] > The new version of WebGestaltR requires Rust, which must be installed on your device prior to installing or updating the package from CRAN. See the installation section for more information. @@ -28,14 +28,14 @@ After installing Rust, you can install WebGestaltR by running the following comm ```R # install.packages("devtools") # run if devtools not already installed -devtools::install_github("iblacksand/WebGestaltR") +devtools::install_github("bzhanglab/WebGestaltR") ``` -During installation, the Rust compiler will be called to build the computation library used by WebGestaltR. If you run into problems with installation of the new version, please [open a new issue](https://github.com/iblacksand/WebGestaltR/issues/new/choose). +During installation, the Rust compiler will be called to build the computation library used by WebGestaltR. If you run into problems with installation of the new version, please [open a new issue](https://github.com/bzhanglab/WebGestaltR/issues/new/choose). ## Changes > [!NOTE] -> Besides the change in installation, there should be no difference in how the R package performs for existing use-cases. If you experience any difference in results that are not due to the data-update, that is considered a bug. [Please report the changes you experience in a new issue](https://github.com/iblacksand/WebGestaltR/issues/new/choose). +> Besides the change in installation, there should be no difference in how the R package performs for existing use-cases. If you experience any difference in results that are not due to the data-update, that is considered a bug. [Please report the changes you experience in a new issue](https://github.com/bzhanglab/WebGestaltR/issues/new/choose). WebGestaltR's core was re-written in Rust, which dramatically increased performance, with up to 15x the speed of previous versions. The new version also supports metabolomics, with support for 15 different ID types.