Skip to content

CalcParentProbs error when only parents of 1 sex #26

@JiscaH

Description

@JiscaH

When CalcParentProbs() is run on a pedigree with only dams or only sires, it gives an error with 'arguments imply differing number of rows: 0,1'.

This is a bug in version 3.2.0, and likely also in 3.1 and 3.0, that will be fixed in the next version (not scheduled for anytime soon).

A workaround until then is to use CalcPairLL() with as Pairs dataframe the id's and single non-empty parent column, and then run LLtoProb() on the resulting likelihoods. See ?LLtoProb for example code.

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