sortPed() cannot take pedigree with not recoded ID. For example, pedigree with ID 1:10 will work fine but the same structure with ID 2:11 will not.
id = 2:11
mother = c(0,0,0,0,2,2,3,8,0,8)
father = c(0,0,0,0,4,4,5,6,7,7)
ped = sortPed(id=id, mother=mother, father=father, maxCycle=100)
Columns mother and father should match mother_id and father_id within ped file created.
The issue seems to come from the way of creating 'output', function 'match' seems incorrect for this use.
sortPed() cannot take pedigree with not recoded ID. For example, pedigree with ID 1:10 will work fine but the same structure with ID 2:11 will not.
Error can be produced by
Columns mother and father should match mother_id and father_id within ped file created.
The issue seems to come from the way of creating 'output', function 'match' seems incorrect for this use.