This is a test version of Biostars. For the public version, visit https://www.biostars.org.
merge vcf file

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

vcf

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!

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.

0 answers

No answers yet.

Log in to answer this question.