R语言读入gmt文件后转换为list
2023-06-28 本文已影响0人
yingyonghui
inflam.path <- scan('mh.all.v2023.1.Mm.symbols.gmt',sep='\n',what="c")
inflam.path <- strsplit(inflam.path, "\t")
names(inflam.path) <- sapply(inflam.path, `[[`, 1)
inflam.path <- lapply(inflam.path, `[`, c(-1,-2))