Hello,
I don't have problems with the merging process, just on how to flag the non shared ones
I did create a text file called "shared_sites.txt", which contains the shared sites taken from shared.bim.
I wrote this script to prepare for merging (I will merge in VCFtools):
plink --bfile dataset1 --recode vcf --a2-allele reference_allele.list --keep-clusters shared_sites.txt --out dataset1.filtered
I have put --keep-clusters shared_sites.txt to try flagging the shared sites to keep, while --a2-allele reference_allele.list is meant to reorder the snps according to the list.
Is the keep cluster command going to work for this purpose?