invert_sdp | R Documentation |
Calculate the matrix of SNP genotypes from a vector of strain distribution patterns (SDPs).
invert_sdp(sdp, n_strains)
sdp |
Vector of strain distribution patterns (integers between
1 and |
n_strains |
Number of strains |
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.
sdp2char()
, calc_sdp()
sdp <- c(m1=1, m2=12, m3=240)
invert_sdp(sdp, 8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.