Convert multiple rows value retrieved from ensemble biomart to comma separated list for a common ensemble gene ID.

1

I have retrieved the gene ontology data from ensemble as a data frame, as shown bellow

Gene ontology data table I retrieved from biomart
enter image description here

and I want to add those details to my DEG list which have unique ensemble id in each row , so I want to convert the ensemble dataframe to match this format.
where each unique gene id will be linked to multiple GO separated by comma.

This format I want
enter image description here

If anyone can suggest some code to do it in R it will be very helpful. Thanks.


ensemble


R


geneontology


Biomart

• 673 views



Source link