% (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"