cead97ee9d4855dce7f39fe1e828ce6dee88992e,cnvlib/export.py,,segments2bed,#Any#Any#Any#Any#Any#,180

Before Change


        ncopies = int(round(abs_val))
        // Ignore regions of neutral copy number
        if show_neutral or ncopies != ploidy:
            yield (row["chromosome"], row["start"], row["end"], label, ncopies)


// _____________________________________________________________________________

After Change


    absolutes = call.absolute_pure(segments, ploidy, is_reference_male)
    out = segments.data.loc[:, ["chromosome", "start", "end"]]
    out["label"] = label
    out["ncopies"] = np.rint(absolutes)
    if not show_neutral:
        // Skip regions of normal ploidy
        out = out[out["ncopies"] != ploidy]
    return out
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: etal/cnvkit
Commit Name: cead97ee9d4855dce7f39fe1e828ce6dee88992e
Time: 2015-08-27
Author: eric.talevich@gmail.com
File Name: cnvlib/export.py
Class Name:
Method Name: segments2bed


Project Name: deepfakes/faceswap
Commit Name: d93e7b11140c11b43113686849a1c5c74d3a06f2
Time: 2019-10-18
Author: 36920800+torzdf@users.noreply.github.com
File Name: plugins/extract/align/_base.py
Class Name: Aligner
Method Name: finalize


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: export_bed