manage_paths: organise and test external dependencies

Description Usage Arguments Value Examples

View source: R/manage_paths.R

Description

This function checks that all the external dependencies required for secertome prediction pipelines are available and can sucessfully pass test runs.

All the external dependencies can be made accessible via $PATH environment variable; alternatively a text file the with full paths to all the external dependencies should be provided.

For the instalation instructions please see SecretSanta vignette.

Usage

1
2
manage_paths(in_path = c(TRUE, FALSE), test_tool = c("all", "signalp2",
  "signalp3", "signalp4", "targetp", "tmhmm", "wolfpsort"), path_file = NULL)

Arguments

in_path

if TRUE manage_paths will attempt to run external dependencies, assuming that respective paths are attached to the $PATH variable;

if FALSE you should supply path_file.

test_tool

if all - all the external dependencies will be checked;
alternatively specify a tool name to be checked.

path_file

full paths to external dependencies in a 2-column space-separated text file;
for multiple versions of signalp please use 'signalpV'notation, where V is a version number;

first column should contain tool name;
second column should contain full path to the tool's executable.

Value

a list of length 3 with the following elements:

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# Example1:
# here we assume that paths to all the
# external dependencies are attached to
# the $PATH variable:

manage_paths(in_path = TRUE, test_tool = 'all')

# to test just a single tool:
manage_paths(in_path = TRUE, test_tool = 'signalp2')

# Example2:
# alternatively, we are in a situation
# when changing $PATH is not possible,
# so we supply a file with listed full
# paths to the external dependencies:

manage_paths(in_path = FALSE,
test_tool = 'all',
path_file = system.file("extdata", "sample_paths", package = "SecretSanta"))

gogleva/SecretSanta documentation built on May 30, 2019, 8:02 a.m.