Learn R Programming

pcadapt (version 3.0.4)

read.pcadapt: File Converter

Description

read.pcadapt converts .vcf and .ped files to an appropriate type of file readable by pcadapt. You may find the converted file in the current directory.

Usage

read.pcadapt(input.filename, type, local.env = FALSE, ploidy = 2, pop.sizes = NULL, allele.sep = "/", blocksize = 10000)

Arguments

input.filename
a character string specifying the name of the file to be converted if local.env = FALSE. If local.env = TRUE, input.filename refers to the genotype matrix in the local environment.
type
a character string specifying the type of data to be converted to the pcadapt format. Supported formats are: ped, vcf, lfmm.
local.env
a logical value indicating whether the input has to be read from the local environment or from the working directory.
ploidy
an integer specifying the ploidy of the individuals.
pop.sizes
a vector specifying the number of individuals for each pool.
allele.sep
a character string specifying the type of allele separator used in VCF files. Set to "/" by default, but can be switched to "|" otherwise.
blocksize
an integer specifying the number of markers to be processed in the mean time.