emPolarise | R Documentation |
Changes encodings of genomic markers according to user specification.
emPolarise(origM, changePolarity = TRUE)
origM |
A character vector of genotypes comprising of _012 encodings. |
changePolarity |
A logical scalar, indicating whether to leave the marker as is
( |
Returns a character vector with polarised markers.
Note that diem and importPolarized accept also a U
encoding for an unknown or third allele, but emPolarise
requires all U
to
be replaced with _
.
diem
for determining appropriate marker polarity with
respect to a barrier to geneflow.
emPolarise(c("0", "0", "1", "2", "2"), TRUE)
# [1] "2" "2" "1" "0" "0"
emPolarise(c("0", "_", "2", "2", "1"), FALSE)
# [1] "0" "_" "2" "2" "1"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.