From 13377946175bf1e8e56b08d183c01d1c5850725f Mon Sep 17 00:00:00 2001 From: "Pavel V. Dimens" Date: Fri, 20 Jan 2023 12:27:24 -0500 Subject: [PATCH] Update FstPermutations.jl fix progressbar --- src/FStatistics/FstPermutations.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FStatistics/FstPermutations.jl b/src/FStatistics/FstPermutations.jl index f75c7c1ae..208182cd8 100644 --- a/src/FStatistics/FstPermutations.jl +++ b/src/FStatistics/FstPermutations.jl @@ -48,10 +48,10 @@ function _fst_permutation(data::PopData, method::Function, iterations::Int64) end @inbounds results[i,j] = fst_val @inbounds results[j,i] = (pval + 1) / iterations - progress.update!(job) + pbar.update!(job) end end stop!(pbar) println("Below diagonal: FST values | Above diagonal: P values") return PairwiseFST(DataFrame(results, Symbol.(pops)), "$method estimator (with p-values)") -end \ No newline at end of file +end