set_parents function

Set parents for samples