diff --git a/workflow/scripts/calculateTPM.R b/workflow/scripts/calculateTPM.R index 175bd3ceb81dfe20e0d96e9a5cec66bffe034e32..18fd75a9a4d6518995ea86f84c19fcf90200743e 100644 --- a/workflow/scripts/calculateTPM.R +++ b/workflow/scripts/calculateTPM.R @@ -8,11 +8,9 @@ opt=parse_args(OptionParser(option_list=option_list)) rm(option_list) if (!("count" %in% names(opt))){ - print("No count file passed, exiting.") - exit() + stop("No count file passed, exiting.") } else if (!file.exists(opt$count)) { - print("No count file passed, exiting.") - exit() + stop("No count file passed, exiting.") } repRID <- basename(gsub(".featureCounts","",opt$count))