Skip to contents

Count species-2 alleles at diagnostic markers

Usage

orient_genotypes(geno, markers)

Arguments

geno

Genotype matrix as in diagnostic_markers().

markers

Output of diagnostic_markers().

Value

An integer matrix (animals x markers) counting species-2 alleles.

Examples

ex <- hybridclock_example()
mk <- diagnostic_markers(ex$genotypes, ex$groups, "species1", "species2", locus = ex$locus)
dim(orient_genotypes(ex$genotypes, mk))
#> [1] 100 314