ce579cf021ca1ee0705bd9484aae55e0d110d0e7,cnvlib/commands.py,,_cmd_batch,#Any#,52

Before Change


        pool = parallel.pick_pool(args.processes)
        for bam in args.bam_files:
            pool.apply_async(batch_run_sample,
                             (bam, args.targets, args.antitargets, args.reference,
                              args.output_dir, args.male_reference, args.scatter,
                              args.diagram, args.rlibpath, args.count_reads,
                              args.drop_low_coverage, args.method))
        pool.close()
        pool.join()

After Change


                      else ("%d processes" % args.processes)))
        with parallel.pick_pool(args.processes) as pool:
            for bam in args.bam_files:
                pool.submit(batch_run_sample,
                            bam, args.targets, args.antitargets, args.reference,
                            args.output_dir, args.male_reference, args.scatter,
                            args.diagram, args.rlibpath, args.count_reads,
                            args.drop_low_coverage, args.method)


def batch_make_reference(normal_bams, target_bed, antitarget_bed,
                         male_reference, fasta, annotate, short_names,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: etal/cnvkit
Commit Name: ce579cf021ca1ee0705bd9484aae55e0d110d0e7
Time: 2016-09-08
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: _cmd_batch


Project Name: dask/dask-ml
Commit Name: a770dbd27f41d90205bf69d2cd86991d6f887e90
Time: 2020-05-28
Author: stsievert@users.noreply.github.com
File Name: tests/model_selection/test_incremental.py
Class Name:
Method Name: _test_search_basic


Project Name: idaholab/raven
Commit Name: 8849fe37269d14e3edd740268eb4884a6a487af0
Time: 2020-05-28
Author: congjian.wang@inl.gov
File Name: framework/Models/HybridModels/HybridModel.py
Class Name: HybridModel
Method Name: submit


Project Name: etal/cnvkit
Commit Name: ce579cf021ca1ee0705bd9484aae55e0d110d0e7
Time: 2016-09-08
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: batch_make_reference