jendelman / GWASpoly

GWAS software that can handle autopolyploids
GNU General Public License v3.0
26 stars 12 forks source link

How to extract the geno.code file for VCF2dosage? #11

Closed SHU-YUN closed 2 years ago

SHU-YUN commented 2 years ago

Dear, I am trying to apply this wonderful package for GWAS analysis in orchids, an autotetraploid population. The first thing I am going to do is prepare the dosage file by the "VCF2dosage" function which is described as VCF2dosage(VCF.file, dosage.file, geno.code, ploidy, samples=NULL,min.DP=1, max.missing, min.minor=5) in the manuscript. The following command "vcftools --vcf --extract-FORMAT-info GT --out " was applied to create the geno.code file from the vcf file (##fileformat=VCFv4.2). However, I got a warning sign as followed "Error in VCF2dosage("/Volumes/Storge_room/NCHU/sample_all_joint_variant_SNPs_filtered_bqsr_snps_subset_0.0012.vcf", : geno.code %in% c("GT", "DS") is not TRUE" Did the geno.code file I applied is not right? how to fix the problem? Really appreciated any suggestions.

The

Best, Shu-Yun Chen

jendelman commented 2 years ago

Hello, There are two options for the geno.code argument. It must be either "GT" or "DS", depending on whether you want to use the "GT" or "DS" field for each sample in the VCF file. It looks like you are intending to use GT, but perhaps you did not specify geno.code="GT" ?

Jeff