Skip to content

sortPed() with not recoded pedigree #6

Description

@AudreyAAMartin

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions