|
19
|
1 ## Setup R error handling to go to stderr
|
|
|
2 options( show.error.messages = FALSE, error = function () { cat( geterrmessage(), file=stderr() ); q( "no", 1, F ) } )
|
|
|
3
|
|
|
4 # we need that to not crash galaxy with an UTF8 error on German LC settings.
|
|
|
5 Sys.setlocale("LC_MESSAGES", "en_US.UTF-8")
|
|
|
6
|
|
17
|
7 options(stringAsfactors = FALSE, useFancyQuotes = FALSE)
|
|
|
8 args <- commandArgs(trailingOnly = TRUE)
|
|
|
9
|
|
19
|
10 .libPaths(args[1])
|
|
|
11 suppressMessages(require(RNAprobR))
|
|
17
|
12
|
|
|
13 # Read inputs
|
|
19
|
14 merged <- args[2]
|
|
|
15 unique_barcodes <- args[3]
|
|
|
16 output <- args[4]
|
|
17
|
17
|
|
|
18 k2n_calc( merged, unique_barcodes, output )
|