writeCoancestry: Function will write 'genind' object to Coancestry file...

Description Usage Arguments Value Author(s)

Description

Using genind object, function will try hard to format and write the data so that it will be accepted by Coancestry program (http://www.zsl.org/science/software/coancestry). Function can write a list of genind objects, in which case, each list element will be considered a population. In that case, user should provide a vector (factor) designating individual affiliation.

Usage

1
writeCoancestry(gi, file, pop.inside = NULL)

Arguments

gi

A genind object to be written to a file.

file

Character. A file name of the created file.

pop.inside

Factor. If NULL (default), pop(x) is used to find population. If user wishes to use a different population designation, he or she should provide a factor.

Value

A file is written to disk. Result will be quietly sorted according to the population.

Author(s)

Roman Lustrik (roman.lustrik@biolitika.si)


romunov/zvau documentation built on May 27, 2019, 1:50 p.m.