I have four vcf files resulting from mutect2 function. There is one treatment and three control samples. I need to get variants that are unique to the treatment plus variants that are common in all four vcf files files(treatment and control samples). To do so, I first the following command:
bcftools isec -n~1000 -c both treatment.vcf.gz control1.vcf.gz control2.gz control3.vcf.gz -p result
The output contaigns four files from 0000 to 0003. And then
bcftools isec -n~1111 -c both treatment.vcf.gz control1.vcf.gz control2.gz control3.vcf.gz -p result2
And then merge the results of these commands to single vcf file. But as there are four vcf files from each commadn I dont know which one shpould I choose. Any idea
There should be a
README.txt
file in the results directory that describes the files. Did you check it?Yes, it tells each file is stripped from comparing pairwise of treatment sample with each control seperately. I thought it would return a strict vcf file including the comparison between treatment and all three controls