set_tools: Function to generate tools path object

Description Usage Arguments Value Examples

View source: R/utils.R

Description

Function to generate tools path object

Usage

1
2
set_tools(config.file = "", config.list = list(), config.vec = c(),
  eval.params = list())

Arguments

config.file

Path of tools configuration file (json, ini, yaml and toml be supported)

config.list

List object of tools that all of tools path (exclude those without names).

config.vec

Vector object of tools that all of tools path (exclude those without names).

eval.params

Params pass to configr::eval.config

Value

List object contain the tools path that can be used by other function in ngstk package

Examples

1
2
3
4
5
6
config.file <- system.file('extdata', 'demo/tools_config.json', package = 'ngstk')
config.list <- list(gatk = '/path/gatk')
config.vec <- c('/path/samtools')
names(config.vec) <- 'samtools'
tools <- set_tools(config.file, config.list, config.vec,
                  eval.params = list(config = 'tools'))

JhuangLab/ngstk documentation built on May 28, 2019, 12:43 p.m.