Skip to content

Commit

Permalink
Revert "Remoce joblib temporary"
Browse files Browse the repository at this point in the history
This reverts commit f3cba5d.
  • Loading branch information
endast committed Dec 6, 2023
1 parent f3cba5d commit b0ef600
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions deeprvat/preprocessing/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,19 +299,12 @@ def process_sparse_gt(

logging.info(f"sparse gt chrom(es) are: {sparse_gt_chrom}")

# processed = Parallel(n_jobs=threads, verbose=50)(
# delayed(process_sparse_gt_file)(
# f.as_posix(), variants_chrom, samples, calls_to_exclude
# )
# for f in sparse_gt_chrom
# )
processed = []
for f in sparse_gt_chrom:
processed.append(
process_sparse_gt_file(
f.as_posix(), variants_chrom, samples, calls_to_exclude
)
processed = Parallel(n_jobs=threads, verbose=50)(
delayed(process_sparse_gt_file)(
f.as_posix(), variants_chrom, samples, calls_to_exclude
)
for f in sparse_gt_chrom
)

postprocessed_gt = postprocess_sparse_gt(processed, 1, len(samples))
postprocessed_variants = postprocess_sparse_gt(processed, 0, len(samples))
Expand Down

0 comments on commit b0ef600

Please sign in to comment.