Dear Chris:
Thank you so much for your reponse and detailed exaplanation. I did not receive an email notification, and thought that nobody responded to my post.
1. It seems that --bmerge is still fit for some operations. Can "--pmerge-list merge-list.txt" pretty much do all the things that "--bmerge" would do? In the case of merging only two files using "--pmerge-list", I will only include 2 files in the merge-list.txt file.
2. Thist is amazing. neither bcftools "merge" or "concatenate" will work when samples or SNPs are not exactly the same.
3. Yes, I tried again and this time it worked. Somehow, in my previous script, i used "--update-name MY.file 2 1" instead of "1 2" and the names of my SNP are not updated. Again, this is really amazing!
4. Yes, "export A" could indeed output dosage. Previoulsy, the first few genotype of my extracted SNP happen to be all 0/1/2. That made me think that "export A" only exports hard calls. I think that is the default (exporting hard calls) for the previous version. You said that "--export A" exports the most precise value that is available. What if I just want to export the hard calls (instead of dosage)?
5. --delete-pmerge-result works great! thanks!
BTW, below is my command log. Although the .raw file is generated successfully, the screenshot shows that the first line is messed up. There are "^A" and "<86>". My ukb.vip.snp file is separeted by tab, without any special character, as shown in the 3rd screenshot below.
Thanks!
Jie