# HG changeset patch # User recetox # Date 1713970292 0 # Node ID b3251a7dae25adeea6a9c4b32ba7dc29c300bec0 # Parent 7a4540275084f665c2bf15c7599bb89bf21fc450 planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/isolib commit b9574494a6f9d2239dc81899e6d4074b33b078b7 diff -r 7a4540275084 -r b3251a7dae25 isolib.R --- a/isolib.R Tue Apr 23 07:42:32 2024 +0000 +++ b/isolib.R Wed Apr 24 14:51:32 2024 +0000 @@ -2,6 +2,7 @@ library(Spectra) library(MsBackendMsp) library(MetaboCoreUtils) +library(readr) #' @param args A list of command line arguments. main <- function() { @@ -9,7 +10,11 @@ data(adducts) args <- commandArgs(trailingOnly = TRUE) - compound_table <- read.delim(args[1], stringsAsFactors = FALSE) + compound_table <- read_tsv( + file = args[1], + col_types = "ccd", + col_select = tidyselect::all_of(c("name", "formula")) | tidyselect::any_of("rt") + ) adducts_to_use <- c(unlist(strsplit(args[2], ",", fixed = TRUE))) chemforms <- compound_table$formula diff -r 7a4540275084 -r b3251a7dae25 isolib.xml --- a/isolib.xml Tue Apr 23 07:42:32 2024 +0000 +++ b/isolib.xml Wed Apr 24 14:51:32 2024 +0000 @@ -1,4 +1,4 @@ - + create an isotopic pattern library for given compounds and adducts bioconductor-spectra bioconductor-msbackendmsp r-envipat + r-readr + + + +