Entering edit mode
2.1 years ago
tasnimul35-241
•
0
Hi ,
I have a multisample VCF file containing nearly 6k variants. I want to pick randomly 1 variant at each iteration from total 10000 iteration and check whether this variant is present in another two vcf file. If its present in first vcf file and not in the second one, how I can count them?
Hi! What is the question exactly? How to pick a random variant in a VCF? How to make an iteration? How to find a variant in a VCF? How to count the matches?
Yes. Kind of all of them
What exactly does it mean for the VCF to have a variant? That one or more samples have the variant? Why not just combine these VCF files and count samples that are not 0/0 or ./.?
It would be a great help if you please share a pseudocode for this.