f4935d64c6072443eb3d73eded63d256205c021d,cnvlib/reference.py,,reference2regions,#Any#Any#,233

Before Change



    Like loading two BED files with ngfrills.parse_regions.
    
    cna2rows = (_cna2coords if coord_only else _cna2regions)
    return list(map(cna2rows, _ref_split_targets(reference)))


def _cna2coords(cnarr):

After Change



    Like loading two BED files with ngfrills.parse_regions.
    
    coord_kw = {} if coord_only else {"also": ["gene"]}
    is_bg = (reference["gene"] == "Background")
    targets = reference[~is_bg]
    antitargets = reference[is_bg]
    return targets.coords(**coord_kw), antitargets.coords(**coord_kw)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: etal/cnvkit
Commit Name: f4935d64c6072443eb3d73eded63d256205c021d
Time: 2016-11-19
Author: eric.talevich@gmail.com
File Name: cnvlib/reference.py
Class Name:
Method Name: reference2regions


Project Name: etal/cnvkit
Commit Name: 52796475005cb8828c73dfbb97ba9820667c9d41
Time: 2016-08-28
Author: eric.talevich@gmail.com
File Name: cnvlib/coverage.py
Class Name:
Method Name: interval_coverages_count


Project Name: etal/cnvkit
Commit Name: fa662d348e088ad1709f554aa5268e7a774a0fe8
Time: 2015-08-13
Author: eric.talevich@gmail.com
File Name: cnvlib/coverage.py
Class Name:
Method Name: interval_coverages_count