Dear All,
It would be great if someone would help me in rearranging the following file absed on the similarity between the column,
My file looks like this,
CD79B-GH1 ID* 3/2
CD79B-GH1 ID 3/3
CIRBP-C19orf24 RM 2/6
CIRBP-C19orf24 RM* 4/4
DCAKD-NCL RL 1/2
HMGB2-EHMT2 RL* 5/3
KANSL1-ARL17A IM 5/13
KANSL1-ARL17B IM* 4/13
LSM7-PARP6 RE 2/2
RASSF4-ZNF22 RE* 2/1
DCAKD-NCL RL 1/2
HMGB2-EHMT2 RL* 5/3
KANSL1-ARL17A IM 5/13
KANSL1-ARL17B IM* 4/13
LSM7-PARP6 RE 2/2
RASSF4-ZNF22 RE* 2/1
I wanted to get this file in this format where the second coulumn will form a row without duplicates. Andhence my output shold look like a ,like this
ID ID* RM RM* RL RL* RE RE* IM IM*
CD79B-GH1 3/2 0 0 0 0 0 0 0 0 0
CD79B-GH1 0 3/3 0 0u 0 00 0 0
CIRBP-C19orf240 0 2/6 0
-C19orf24 0 0 0 4/4
like this fill for every new column based on there respective values,and remaning those which doesnt have any value with zero.
Thanks a lot in advance for help.