Although I already found some ways to annotate genomic positions with rsIDs using e.g. UCSC table browser, I'm not happy with that since I want a one-in-all linux script taking also strand issues (flipped alleles A-T vs- T-A or switched reference alleles) into account.
What I have:
chr position ref alt
10 169560 G T
10 171117 G A
10 171126 G A
10 172995 A C
10 178499 C T
What I want:
chr position ref alt rsID
10 169560 G T rsXXX
10 171117 G A rsXXX, rsXXX
10 171126 G A rsXXX
10 172995 A C rsXXX
10 178499 C T rsXXX
Thanks
Really helpful, thank you! Small addition, cause it took me embarrassingly long to notice why I was getting an error later on (otherwise worked like a charm) - but given the example header the zcat command should place the "." in the third position, i.e.,:
Thank you so much. it worked for me!