Skip to content

Commit

Permalink
Add progress to batch
Browse files Browse the repository at this point in the history
  • Loading branch information
bencardoen committed Oct 30, 2024
1 parent 8cd4c3c commit 6fa0735
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/batch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ using ImageFiltering
using Distributions
using Base.Threads
import JLD2
using ProgressMeter

using LoggingExtras, Dates

Expand Down Expand Up @@ -66,17 +67,17 @@ function run_script()
paths, regexes = buildregex(inpath, rx)
@info paths
@info regexes
for (p, r) in zip(paths, regexes)
@showprogress for (p, r) in zip(paths, regexes)
pa = copy(parsed_args)
@info p, r
pa["inregex"] = r
pa["outpath"] = mkpath(joinpath(op, "p"))

for replicate in readdir(inpath; join=true)
@showprogress for replicate in readdir(inpath; join=true)
r = basename(replicate)
for celltype in readdir(replicate; join=true)
@showprogress for celltype in readdir(replicate; join=true)
ct = basename(celltype)
for cell in readdir(celltype; join=true)
@showprogress for cell in readdir(celltype; join=true)
snr = basename(cell)
# pa = copy(parsed_args)
op = pa["outpath"]
Expand Down

0 comments on commit 6fa0735

Please sign in to comment.