INNER CODE UNIT · Python
remove
brentp/peddy · peddy/cli.py:63
remove = (df.pedigree_relatedness == -1) & (~df.parent_error) & (~df.sample_duplication_error)
df = df[~remove]
if check == "ped_check":
# makes the plot nicer
df.sort_values(inplace=True, by=["pedigree_relatedness"])
return (check, df, background_df) #
def correct_sex_errors(ped_df):
excl = []
if not 'sex_error' in ped_df.columns:
return excl
if np.any(ped_df['sex_error']):
try:
ped_df.pop(u'sex_fixed')
except KeyError: