vcf2smartsnp
vcf2smartsnp.Rd
converts vcfR format data to smartsnp tabular format infile
in part based on vcfR2genlight function (vcfR package)
Details
This function converts the vcfR object to a genotype table formatted input file For use in smartsnp, but keeps sample names as column names The function will remove indels, and multiallelic loci, and optionally loci with missing data
Examples
vcf2smartsnp(vcf = my_vcf, ind_pop = ind_pop, keep_pop = keepers, inc_missing = TRUE, out_file = "SmartSNP_infile.txt")
#> Error: object 'my_vcf' not found
vcf2smartsnp(my_vcf, ind_pop, keepers, out_file = "SmartSNP_infile.txt")
#> Error: object 'my_vcf' not found
vcf2smartsnp(my_vcf, ind_pop, keepers)
#> Error: object 'my_vcf' not found