1281963269c819f22fed98583526df8946d18b4a,cnvlib/commands.py,,do_import_theta,#Any#Any#Any#,1660

Before Change


        // Drop any segments where the C value is None
        new_segs = []
        for seg, ncop in zip(segarr.copy(), copies):
            if ncop is None:
                continue
            new_segs.append(seg._replace(
                log2=math.log((ncop or 0.5) / ploidy, 2)))
        yield segarr.as_rows(new_segs)

After Change


    for copies in theta["C"]:
        // Drop any segments where the C value is None
        mask_drop = np.array([c is None for c in copies], dtype="bool")
        segarr = segarr[~mask_drop].copy()
        ok_copies = np.array([c for c in copies if c is not None], dtype="int")
        // Replace remaining segment values with these integers
        segarr["cn"] = ok_copies.copy()
        ok_copies[ok_copies == 0] = 0.5
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: etal/cnvkit
Commit Name: 1281963269c819f22fed98583526df8946d18b4a
Time: 2016-04-20
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: do_import_theta


Project Name: home-assistant/home-assistant
Commit Name: 17f0fb69bd9449cdafce9e236e342929fdcc6b5b
Time: 2016-11-29
Author: pascal.vizeli@syshack.ch
File Name: homeassistant/components/homematic.py
Class Name:
Method Name: _system_callback_handler


Project Name: PaddlePaddle/edl
Commit Name: ed9fb224f3aa4336d066cbbe4b9abf26b24f8535
Time: 2020-09-02
Author: weibao.gong@gmail.com
File Name: python/edl/utils/watcher.py
Class Name: Watcher
Method Name: _watcher