Mercurial > repos > bgruening > music_deconvolution
view scripts/inspect.R @ 2:1c4cf4b7debe draft
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/music/ commit 4e9d30a047c34cec5be2fefc6d56e6da0bac63e6"
author | bgruening |
---|---|
date | Tue, 30 Nov 2021 13:07:36 +0000 |
parents | 3ca0132c182a |
children |
line wrap: on
line source
suppressWarnings(suppressPackageStartupMessages(library(xbioc))) suppressWarnings(suppressPackageStartupMessages(library(MuSiC))) args <- commandArgs(trailingOnly = TRUE) source(args[1]) printout <- function(text) { if (typeof(text) %in% c("list", "vector", "integer", "double", "numeric")) { write.table(text, file = outfile_tab, quote = F, sep = "\t", col.names = NA) } else { ## text print(typeof(text)) capture.output(text, file = outfile_tab) # nolint } } if (inspector %in% c("print", "pData", "fData", "dims", "experimentData", "protocolData", "exprs", "signature", "annotation", "abstract")) { op <- get(inspector) tab <- op(rds_eset) printout(tab) } else { stop(paste0("No such option:", inspector)) }