invert_sdp: Calculate SNP genotype matrix from strain distribution patterns
Description
Calculate the matrix of SNP genotypes from a vector of strain distribution patterns (SDPs).
Usage
invert_sdp(sdp, n_strains)
Value
Matrix of SNP genotypes, markers x strains, coded as 1
(AA) and 3 (BB). Markers with values other than 1 or 3 are omitted,
and monomorphic markers, are omitted.
Arguments
sdp
Vector of strain distribution patterns (integers between
1 and \(2^n-2\) where \(n\) is the number of strains.