Entering edit mode
3.4 years ago
mathavanbioinfo
▴
80
Hi
I have a large file like this
File input
TRINITY_DN728479_c0_g1_i1 GO:0003674
TRINITY_DN728479_c0_g1_i1 GO:0003824
TRINITY_DN728479_c0_g1_i1 GO:0003887
TRINITY_DN728480_c0_g1_i1 GO:0003891
TRINITY_DN728480_c0_g1_i1 GO:0003892
I want the output
TRINITY_DN728479_c0_g1_i1 GO:0003674, GO:0003824, GO:0003887
TRINITY_DN728480_c0_g1_i1 GO:0003891,GO:0003892
please help how to change it
What have you tried? This problem has been addressed on the forum before, and is straightforward to do using R or awk.
(or any other programming language)
I have tried awk and csvtk but I am unable to get it
What did you try with AWK? show us your command