Entering edit mode
7.3 years ago
kk.mahsa
▴
150
hi
how i can extract homozygous SNPs for first individual (vcf file) when second individual has no SNPs in the same position?
thanks in advance
thanks for your quick answer dear Pierre, i think my question is not clear. i have two vcf file and my goal is extraction Homozygous snps for first vcf file when second vcf file has no snp (hom or het) in that position.
merge the two vcfs : https://www.google.fr/search?q=merge+vcf+site%3Abiostars.org
and the filter with my command above.
i installed your program but there is not vcffilterjdk.jar file in dist folder. thare are three files including: vcffilterjs.jar, annotproc.jar and vcffilterjs.
so i try:
vcf-merge input_1.vcf input_2.vcf > merged.vcf
java -jar dist/vcffilterjs.jar -e 'return variant.getGenotype(0).isHomVar() && (variant.getGenotype(1).isHomRef() || !variant.getGenotype(1).isCalled());' merged.vcf
and get this error (https://ufile.io/h94hj)