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

Before Change


                         % (len(missing_keys), probes.sample_id))

    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


    
    probes_labeled = probes.data.set_index(probes.labels())
    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"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: etal/cnvkit
Commit Name: aef8b785f1ee6882b768f80261019943bea64d7c
Time: 2016-05-19
Author: michael.p.schroeder@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: do_gainloss


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