MyNixOS website logo
Description

Utils List for W4M - Workflow for Metabolomics.

Provides a set of utility function to prevent the spread of utilities script in W4M (Workflow4Metabolomics) scripts, and centralize them in a single package. Some are meant to be replaced by real packages in a near future, like the parse_args() function: it is here only to prepare the ground for more global changes in W4M scripts and tools.

W4MRUtils

  • VERSION: 1.0.0

W4MRUtils is a R packages provided by W4M to ease galaxy tools writing. It contains some utility functions that will help you in common tasks.

Parameters

  • Parsing parameters with parse_args (easier)
  • Parsing parameters with optparse_parameters (better)
  • Enforce checking on parameters with check_param_type_n_length

R script chores

  • Silently load a package with shy_lib
  • Sourcing relative file with source_local

Galaxy

  • Am I in a galaxy env? see in_galaxy_env
  • Show log headers with show_galaxy_header
  • Show log footer with show_galaxy_footer
  • Execute a function with run_galaxy_processing
  • Restore parameters names, modified by galaxy with unmangle_galaxy_param

Logfiles

  • What is a logger? - See logging section what-is-a-logger)
  • How to create a logger? - See logging section how-to-create-a-logger)
  • How to create a log file? - See logging section how-to-create-a-log-file)

TODO

Do the documentation and the referencing of the documentation for:

  • stock_id
  • reproduce_id
  • check_err
  • match2
  • match3
  • import2
  • import3
  • df_is
  • df_force_numeric
  • df_read_table

Installation

You can install the development version of W4MRUtils like so:

$ git clone https://github.com/workflow4metabolomics/W4MRUtils
$ cd W4MRUtils

then

$ make install

or

> rmarkdown::render("README.Rmd")
> devtools::document(".")
> roxygen2::roxygenize(".")
> devtools::test(".")
> devtools::install(".", dependencies = FALSE, repos = NULL, type = "source")

or

$ R -q -e "install.packages('W4MRUtils', repos='https://cran.irsn.fr');"

Uninstallation

You can uninstall the version of W4MRUtils you installed with:

$ make remove_package

or

> remove.packages("W4MRUtils")

XML Wrapper

Please follow the guidelines during the redaction of the xml wrapper.

Read the doc in case of problems.

Metadata

Version

1.0.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD 13
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd13
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd13
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows