1dba0aaea818505ac4e22cd779995b46454207bb,cnvlib/segmentation/__init__.py,,do_segmentation,#Any#Any#Any#Any#Any#Any#Any#Any#Any#,19

Before Change


                                skip_low, skip_outliers,
                                save_dataframe, rlibpath)

    chroms = cnarr.chromosome.unique()
    rets = []
    // TODO: handle save_dataframe=True
    with futures.ProcessPoolExecutor(processes) as pool:
        for ret in pool.map(_ds, ((cnarr[cnarr.chromosome == c], method,
                                   threshold, variants, skip_low, skip_outliers,
                                   False, rlibpath) for c in chroms)):
            rets.append(ret)
    data = pd.concat([r.data for r in rets])
    meta = rets[0].meta
    for r in rets[1:]:
        meta.update(r.meta)

After Change


    rets = []
    // TODO: handle save_dataframe=True
    with futures.ProcessPoolExecutor(processes) as pool:
        rets = list(pool.map(_ds, ((ca, method,
                                   threshold, variants, skip_low, skip_outliers,
                                   save_dataframe, rlibpath) for _, ca in cnarr.by_chromosome())))
    if save_dataframe:
        rstr = [rets[0][1]]
        for ret in rets[1:]:
            r = ret[1]
            rstr.append(r[r.index("\n") + 1:])
        rets = [ret[0] for ret in rets]

    data = pd.concat([r.data for r in rets])
    meta = rets[0].meta
    for r in rets[1:]:
        meta.update(r.meta)
    cna = CNA(data, meta)
    if save_dataframe:
        return cna, "".join(rstr)
    return cna
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: etal/cnvkit
Commit Name: 1dba0aaea818505ac4e22cd779995b46454207bb
Time: 2016-08-30
Author: bpederse@gmail.com
File Name: cnvlib/segmentation/__init__.py
Class Name:
Method Name: do_segmentation


Project Name: rkcosmos/deepcut
Commit Name: 0347e36737b25671dff14c6c1bbbe5d090d71a06
Time: 2017-06-28
Author: titipata@allenai.org
File Name: deepcut/train.py
Class Name:
Method Name: train_model


Project Name: dmnfarrell/pandastable
Commit Name: a4d2eb8dc0b30794437d1c81d64ff4abee1e2515
Time: 2015-05-19
Author: farrell.damien@gmail.com
File Name: plotting.py
Class Name: PlotViewer
Method Name: factorPlot


Project Name: CellProfiler/CellProfiler
Commit Name: 27e908fddd8ef35d2e99a0f08b6baffec2a29d48
Time: 2011-07-11
Author: leek@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/objects.py
Class Name: Objects
Method Name: relate_ijv