ncopies = int(round(abs_val))
// Ignore regions of neutral copy number
if show_neutral or ncopies != ploidy:
yield (row["chromosome"], row["start"], row["end"], label, ncopies)
// _____________________________________________________________________________
After Change
absolutes = call.absolute_pure(segments, ploidy, is_reference_male)
out = segments.data.loc[:, ["chromosome", "start", "end"]]
out["label"] = label
out["ncopies"] = np.rint(absolutes)
if not show_neutral:
// Skip regions of normal ploidy
out = out[out["ncopies"] != ploidy]
return out