View source: R/tree-sequences.R
ts_eigenstrat | R Documentation |
EIGENSTRAT data produced by this function can be used by the admixr R package (https://bodkan.net/admixr/).
ts_eigenstrat(ts, prefix, chrom = "chr1", outgroup = NULL)
ts |
Tree sequence object of the class |
prefix |
EIGENSTRAT trio prefix |
chrom |
The name of the chromosome in the EIGENSTRAT snp file (default "chr1") |
outgroup |
Should a formal, artificial outgroup be added? If |
In case an outgroup was not formally specified in a slendr model which
generated the tree sequence data, it is possible to artificially create an
outgroup sample with the name specified by the outgroup
argument,
which will carry all ancestral alleles (i.e. value "2" in a geno file
for each position in a snp file).
Object of the class EIGENSTRAT created by the admixr package
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.