Hello everyone! I'm following a tutorial for ClusterProfiler where I have to read a .gmt file in R using this command:
pwl1 <- read.gmt(file)
However, when I check the pwl1 file, it looks like this:
The output for this file on the video that I saw only has two columns (term and gene). From my understanding, that's how a .gmt file would look like normally. My file looks like a list of different vectors each has a list of gene names. I have been trying to search for a solution but found nothing. Can anyone pin point what the problem is or how to fix it? or a specific error term for this issue so I can do another google search?
Thanks in advance!
Please show us your
sessionInfo()
and mention which library the functionread.gmt()
is from.