Hello,
I have file to work with. It has 5 columns. The first three, altogether, constitutes the position. The 4th column contains some values for downstream analysis and the fifth column contains some values that I want to add to 4th column (only if they happen to be in the same position).
My file looks like this:
chr3 10163261 10163262 A>R_32_32_50_22 rs71760202
chr3 10163295 10163296 A>R_28_28_50_20 rs71757232
chr3 10163295 10163296 A>R_28_28_50_20 rs71760202
chr3 10163306 10163307 T>Y_34_34_50_20 rs71757232
chr3 10163306 10163307 T>Y_34_34_50_20 rs71760202
chr3 10163306 10163307 T>Y_34_34_50_20 rs5030624
And I am trying to make it look like this:
chr3 10163261 10163262 A>R_32_32_50_22>rs71760202
chr3 10163295 10163296 A>R_28_28_50_20>rs71757232, rs71760202
chr3 10163306 10163307 T>Y_34_34_50_20>rs71757232, rs71760202, rs5030624
Any help / recommendation / pointer would be appreciated.
Cheers