Skip to content

Commit 83adeeb

Browse files
committed
Use shQuote
1 parent f2d6b5b commit 83adeeb

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

R/peaks.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ CallPeaks.default <- function(
430430

431431
# object path
432432
if (mode == "callpeak") {
433-
object_string <- paste0(" -t ", object)
433+
object_string <- paste0(" -t ", shQuote(object))
434434
} else if (mode == "hmmratac") {
435-
object_string <- paste0(" -i ", object)
435+
object_string <- paste0(" -i ", shQuote(object))
436436
genome_string <- " "
437437
broad_string <- " "
438438
if (verbose) {
@@ -454,7 +454,7 @@ CallPeaks.default <- function(
454454
" -f FRAG ",
455455
barcode_string,
456456
" -n ", "'", as.character(x = name), "'",
457-
" --outdir ", outdir,
457+
" --outdir ", shQuote(outdir),
458458
" ",
459459
additional.args
460460
)

R/preprocessing.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ ATACqc.default <- function(
5151

5252
# call fragtk qc
5353
cmd <- paste0(
54-
fragtk.path,
54+
shQuote(fragtk.path),
5555
" qc --fragments ",
56-
object,
56+
shQuote(object),
5757
" --bed ",
58-
tss.path,
58+
shQuote(tss.path),
5959
" --outfile ",
60-
out.path
60+
shQuote(out.path)
6161
)
6262

6363
exit_code <- system(

0 commit comments

Comments
 (0)