Skip to content
Snippets Groups Projects
Commit 63557718 authored by deliaBlue's avatar deliaBlue
Browse files

refactor: use NULL as default

parent ec654c56
No related branches found
No related tags found
1 merge request!10feat: add output prefix assignment
Pipeline #17700 passed
......@@ -128,7 +128,7 @@ option_list <- list(
"--prefix",
action="store",
type="character",
default="",
default=NULL,
help="Prefix to be used in the output file name(s). If not provided
the input BAM file(s) name will be used instead,",
metavar="string"
......@@ -197,7 +197,7 @@ if (! is.null(fl.ref)) {ref <- FaFile(fl.ref)}
if (! is.null(fl.anno)) {anno <- import(con=fl.anno)}
# Get file prefix from BAM files or from CLI argument
fl.prefix <- if (prefix.out != "") prefix.out else paste(basename(file_path_sans_ext(fl.bam)), collapse=".")
fl.prefix <- if (! is.null(prefix.out)) prefix.out else paste(basename(file_path_sans_ext(fl.bam)), collapse=".")
#---> <---#
# Print status message
......
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