Skip to content
Snippets Groups Projects
Commit 8fa681cb authored by Xavier Grand's avatar Xavier Grand
Browse files

Modif multi cpus to junction nanosplicer and rebuild docker.

parent 02e29a36
No related branches found
No related tags found
No related merge requests found
......@@ -8,9 +8,6 @@ library(future, quietly = TRUE)
library(future.apply)
library(conflicted, quietly = TRUE)
# Set up parallel processing plan
plan("multisession", workers = 18)
# Résolution de conflits entre les bibliothèques dplyr et stats
conflict_prefer("filter", "dplyr")
conflict_prefer("lag", "dplyr")
......@@ -22,9 +19,17 @@ option_list = list(
make_option(c("-j", "--jwr"), type="character", default=NULL,
help="input nanosplicer results table (.csv)", metavar="character"),
make_option(c("-b", "--barcode"), type="character", default=NULL,
help="input barcode", metavar="character"))
help="input barcode", metavar="character"),
make_option(c("-t", "--threads"), type = "integer", default = 16,
help="Number of threads.")
)
opt_parser = OptionParser(option_list=option_list)
opt = parse_args(opt_parser)
# Set up parallel processing plan
plan("multisession", workers = opt$threads)
reads_pos <- read.table(opt$classification,
sep = "\t")
colnames(reads_pos) <- c("id", reads_pos[1,2:length(reads_pos[1,])])
......
......@@ -21,6 +21,6 @@ process junctions_nanosplicer{
"""
mkdir ${barcode}
cd ${barcode}/
Rscript /Junctions_NanoSplicer.R -c ../${txt} -j ../${csv} -b ${barcode}
Rscript /Junctions_NanoSplicer.R -c ../${txt} -j ../${csv} -b ${barcode} --threads ${task.cpus}
"""
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment