Hi, Pierre
I tried both ways you suggested.
The SelectVariants in GATK gave me the full set of SNPs in my input, suggesting all SNPs violated the Mendel heritability rule.
I also tried VCFTrio, in the result file, I saw comments of tag "MENDEL" in the header, but for each SNP, I did not see "MENDEL" in the INFO field. So I cannot filter sites which violate Mendelian rules based on the INFO field.
I am wondering if it is true that all of sites violate or I did anything wrong in my command. My SNP set is from SNP calling for the whole genome in GATK. So, I doubted none of the SNPs obey the Mendelian Rules based on the provided pedigree. Here is my command for both analyses:
java -Xmx240g -jar GenomeAnalysisTK.jar \
--pedigreeValidationType SILENT \
-R Glycine_max.V2.fasta \
-T SelectVariants \
--variant:VCF combined.REDUCED.1.realign.123013.uniq.sorted.SNPsOnly.vcf \
-ped soybean.ped \
-mvq 50 \
-o violations.vcf
java -jar ./jvarkit/dist-1.128/vcftrio.jar \
-p soybean.ped.vcftrio.txt \
../vcfFiles/combined.REDUCED.1.realign.123013.uniq.sorted.SNPsOnly.vcf > vcftrio.result
Hi, Pierre
Could you follow up with this question? How to subtract variants in violations.vcf from all variants? Any existing tools? I checked the
-selectVariantin GATK, it seems that it can go for the common or shared ones, not the unique ones.Thanks
Li