From f346596d89b3e5ecc8c6edd779a73461b29354f7 Mon Sep 17 00:00:00 2001 From: PMBio Date: Wed, 6 Dec 2023 10:30:48 +0000 Subject: [PATCH] fixup! Format Python code with psf/black pull_request --- deeprvat/preprocessing/preprocess.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/deeprvat/preprocessing/preprocess.py b/deeprvat/preprocessing/preprocess.py index 5d79b64f..23c08ea1 100644 --- a/deeprvat/preprocessing/preprocess.py +++ b/deeprvat/preprocessing/preprocess.py @@ -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))