From 635577180c2105de4d78a877ac4adc47376d02b1 Mon Sep 17 00:00:00 2001 From: deliaBlue <iris.mepa13@gmail.com> Date: Mon, 22 Jan 2024 15:40:43 +0100 Subject: [PATCH] refactor: use NULL as default --- ascii_alignment_pileup.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ascii_alignment_pileup.R b/ascii_alignment_pileup.R index 6d019b4..ff7bb87 100755 --- a/ascii_alignment_pileup.R +++ b/ascii_alignment_pileup.R @@ -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 -- GitLab