c034a486630d90544beb2f42cc05e796e2973138,cnvlib/fix.py,,match_ref_to_probes,#Any#Any#,58

Before Change


    ref_lookup = dict(zip(ref_labels, ref_pset))
    ref_matched_rows = [ref_lookup[label] for label in probe_labels]
    ref_matched = ref_pset.as_rows(ref_matched_rows)
    return ref_matched


def center_by_window(pset, fraction, sort_key):
    Smooth out biases according to the trait specified by sort_key.

After Change


    ref_labeled = ref_pset.data.set_index(ref_pset.labels())
    ref_matched = ref_labeled.reindex(index=probes_labeled.index)
    // Check for signs that the wrong reference was used
    num_missing = pd.isnull(ref_matched.start).sum()
    if num_missing > 0:
        raise ValueError("Reference is missing %d bins found in %s"
                         % (len(num_missing), probes.sample_id))
    return ref_pset.as_dataframe(ref_matched.reset_index(drop=True))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: etal/cnvkit
Commit Name: c034a486630d90544beb2f42cc05e796e2973138
Time: 2015-06-17
Author: eric.talevich@gmail.com
File Name: cnvlib/fix.py
Class Name:
Method Name: match_ref_to_probes


Project Name: J535D165/recordlinkage
Commit Name: 702899ea0aeb57b5761b85c43d1416ca81d4da00
Time: 2019-03-14
Author: jonathandebruinos@gmail.com
File Name: recordlinkage/compare.py
Class Name: String
Method Name: _compute_vectorized


Project Name: instacart/lore
Commit Name: b305569ef7f192b237559a527cd2a9f82901c59d
Time: 2018-04-02
Author: montana@instacart.com
File Name: lore/transformers.py
Class Name: LogPlusOne
Method Name: transform


Project Name: instacart/lore
Commit Name: b305569ef7f192b237559a527cd2a9f82901c59d
Time: 2018-04-02
Author: montana@instacart.com
File Name: lore/transformers.py
Class Name: Distance
Method Name: radians