vcf2df
vcf2df.Rd
converts vcfR format data to DataFrame infile
adds last column of an individual's group origin
motivated to provide a dataframe for plotting PCA results
for use by modified PCA function from adegenet
Usage
vcf2df(
vcf,
ind_pop,
keep_pop,
alleles = TRUE,
inc_missing = TRUE,
out_file = "dataframe_infile.txt"
)
Details
This function converts the vcfR object to a DataFrame formatted input file This function adds group (population) membership as last column The function will remove indels, and multiallelic loci, and optionally loci with missing data
Examples
vcf2df(vcf = my_vcf, ind_pop = ind_pop, keep_pop = keepers, alleles = TRUE, inc_missing = TRUE, out_file = "dataframe_infile.txt")
#> Error: object 'my_vcf' not found
vcf2df(my_vcf, ind_pop, keepers, out_file = "dataframe_infile.txt")
#> Error: object 'my_vcf' not found
vcf2df(my_vcf, ind_pop, keepers)
#> Error: object 'my_vcf' not found