I was looking at separate function but it's not quite what I want. Do I need to split with stringr first? I can't quite connect the dots so I would appreciate any pointers in the right direction.
look up tidyr::separate_rows
if the number of genes are not fixed or equal you might have to resort to stringr:str_split
I would start with stringr::str_split so for instance stringr::str_split("foo,bar,baz",pattern = ",", simplify = T) will give you