Description Usage Arguments Examples
View source: R/hello.R View source: R/misc_functions.R
str2lfmm recodes biallelic SNP loci in STRUCTURE format to a format suitable for LFMM. An arbitrary vector of reference alleles is automatically chosen, though the reference can be specified by the user if known. str2lfmm accepts both diploid and haploid SNP data. Each diploid individual must be coded on two lines. Ambiguity codes must be removed and nucleotides must be coded as integers (e.g. A, T, C, G as 1, 2, 3, 4). Trait data (either phenotype or environmental variables) can also be included. Samples may be excluded by specifying using 'exclude,'
1 | str2lfmm(str.data, trait.data, exclude)
|
str.data |
SNP data in STRUCTURE format |
trait.data |
Phenotype or environment data |
exclude |
Vector of sample IDs to exclude |
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.