Skip to content

Commit

Permalink
show progressbar even in non interactive context
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikSchultheis committed Dec 4, 2018
1 parent 96efc46 commit 9bd64be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/reduce_bed.R
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ find_kmer_regions <- function(bed, kmer_counts, minoverlap = 1 , threads = NULL)

# call function with given parameter if not in interactive context (e.g. run from shell)
if (!interactive()) {
# show apply progressbar
pbo <- pbapply::pboptions(type = "timer")
# remove last parameter (help param)
params <- opt[-length(opt)]
do.call(reduce_bed, args = params)
Expand Down

0 comments on commit 9bd64be

Please sign in to comment.