str2lfmm: Prepare Input Files for Latent Factor Mixed Modeling (LFMM)

Description Usage Arguments Examples

Description

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,'

Usage

1
str2lfmm(str.data, trait.data, exclude)

Arguments

str.data

SNP data in STRUCTURE format

trait.data

Phenotype or environment data

exclude

Vector of sample IDs to exclude

Examples

1
2
3
str2lfmm(str.data = str.data,
trait.data = trait.data,
exclude = NULL)

bouzidnm/simascripts documentation built on June 1, 2019, 3:55 a.m.