I want to find the snps for 10 cultivars of almond. Which of the following is correct:
1. Use haplotypecaller to find snps for each cultivar (based on the reference genome), then use selectvariants to find true snps and finally filter the snps with variant filter
or
2.Use haplotypecaller to find snps using as input the bam files for ALL cultivars, then use selectvariants to find true snps and finally filter the snps with variant filter
How to extract gvcf from haplotype caller?
https://software.broadinstitute.org/gatk/documentation/tooldocs/3.8-0/org_broadinstitute_gatk_tools_walkers_haplotypecaller_HaplotypeCaller.php#--emitRefConfidence