Entering edit mode
8.3 years ago
cristina_sabiers
▴
110
well I read in one of the post I could do like this, merge both vcf files
cat 2.vcf 4.vcf > 24.vcf
but when I check at my 24.vcf file I miss some of the chr positions from 4.vcf...
so I asume this code is not valid for vcf files right?
Thanks
Yes, you might try using vcftools merge https://vcftools.github.io/examples.html
ok thanks..I was just wondering if was possible or not....
I try now merge with vcftools
What would be the opposite of merge?
I mean for example I want take out from 4.vcf all gens in comon with 2.vcf
Thanks!
http://vcftools.sourceforge.net/perl_module.html#vcf-merge
https://samtools.github.io/bcftools/bcftools.html#merge
thanks genomax!
What would be the opposite of merge?
I mean for example I want take out from 4.vcf all gens in comon with 2.vcf
Google "vcf intersect". That is the operation you're looking for. bedtools should have it.
ok! thanks a lot ram!