Skip to content

Commit

Permalink
fixup! Format Python code with psf/black pull_request
Browse files Browse the repository at this point in the history
  • Loading branch information
PMBio authored and PMBio committed Dec 6, 2023
1 parent 4f0b640 commit f346596
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions deeprvat/preprocessing/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,16 +299,20 @@ 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 = 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.append(
process_sparse_gt_file(
f.as_posix(), variants_chrom, samples, calls_to_exclude
)
)

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

0 comments on commit f346596

Please sign in to comment.