b474d26084c73214007c0a12d469a99f26488494,cnvlib/export.py,,segments2vcf,#Any#Any#Any#Any#,262

Before Change


    // Reformat this data to create INFO and genotype
    // TODO be more clever about this
    for out_row, abs_row in zip(out_dframe.itertuples(index=False),
                                abs_dframe.itertuples(index=False)):
        if (out_row.ncopies == abs_row.expect or
            // Survive files from buggy v0.7.1 (/ኑ)
            not str(out_row.probes).isdigit()):

After Change


    Convert copy number segments to VCF records.
    out_dframe = segments.data.loc[:, ["chromosome", "end", "log2", "probes"]]
    if "cn" in segments:
        out_dframe["ncopies"] = segments["cn"]
        abs_expect = call.absolute_expect(segments, ploidy, is_sample_female)

    else:
        abs_dframe = call.absolute_dataframe(segments, ploidy, 1.0,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: etal/cnvkit
Commit Name: b474d26084c73214007c0a12d469a99f26488494
Time: 2016-03-01
Author: eric.talevich@gmail.com
File Name: cnvlib/export.py
Class Name:
Method Name: segments2vcf


Project Name: has2k1/plotnine
Commit Name: 44682f54140e61f260878ad2d2703eecba91e1e9
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/facets/locate.py
Class Name:
Method Name: locate_wrap


Project Name: has2k1/plotnine
Commit Name: 44682f54140e61f260878ad2d2703eecba91e1e9
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/facets/locate.py
Class Name:
Method Name: locate_grid